ATLAS Offline Software
Loading...
Searching...
No Matches
TrigMonTHistSvc.cxx File Reference
#include "TrigMonTHistSvc.h"
#include "GaudiKernel/ISvcLocator.h"
#include "CxxUtils/checker_macros.h"
#include "AthenaMonitoringKernel/OHLockedHist.h"
#include "hltinterface/IInfoRegister.h"
#include "TError.h"
#include "TGraph.h"
#include "TH1.h"
#include "TH2.h"
#include "TH3.h"
#include "TObject.h"
#include "TROOT.h"
#include "TTree.h"

Go to the source code of this file.

Functions

StatusCode TrigMonTHistSvc::initialize ATLAS_NOT_THREAD_SAFE ()
 Install fatal handler with default options.

Function Documentation

◆ ATLAS_NOT_THREAD_SAFE()

StatusCode TrigMonTHistSvc::initialize ATLAS_NOT_THREAD_SAFE ( void )
inline

Install fatal handler with default options.

This is meant to be easy to call from python via ctypes.

Install fatal handler with default options.

Definition at line 26 of file TrigMonTHistSvc.cxx.

27{
28 // Protect against multiple instances of TROOT
29 if (0 == gROOT) {
30 static TROOT root("root", "ROOT I/O");
31 }
32 else {
33 ATH_MSG_VERBOSE("ROOT already initialized, debug = " << gDebug);
34 }
35 gErrorIgnoreLevel = kBreak; // ignore warnings see TError.h in ROOT base src
36
37 // compile regexes
38 m_excludeTypeRegex = boost::regex(m_excludeType.value());
39 m_includeTypeRegex = boost::regex(m_includeType.value());
40 m_excludeNameRegex = boost::regex(m_excludeName.value());
41 m_includeNameRegex = boost::regex(m_includeName.value());
42
43 // Retrieve and set OH mutex
44 ATH_MSG_INFO("Enabling use of OH histogram mutex");
46 hltinterface::IInfoRegister::instance()->getPublicationMutex());
47
48 return StatusCode::SUCCESS;
49}
#define ATH_MSG_INFO(x)
#define ATH_MSG_VERBOSE(x)
static void set_histogram_mutex(std::mutex &mutex)
Set mutex to be used in oh_lock_histogram.