ATLAS Offline Software
Functions
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. More...
 

Function Documentation

◆ ATLAS_NOT_THREAD_SAFE()

StatusCode TrigMonTHistSvc::initialize ATLAS_NOT_THREAD_SAFE ( )
inline

Install fatal handler with default options.

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

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 }
ATH_MSG_INFO
#define ATH_MSG_INFO(x)
Definition: AthMsgStreamMacros.h:31
sendEI_SPB.root
root
Definition: sendEI_SPB.py:34
ATH_MSG_VERBOSE
#define ATH_MSG_VERBOSE(x)
Definition: AthMsgStreamMacros.h:28
PrepareReferenceFile.regex
regex
Definition: PrepareReferenceFile.py:43
instance
std::map< std::string, double > instance
Definition: Run_To_Get_Tags.h:8
gErrorIgnoreLevel
int gErrorIgnoreLevel
oh_lock_histogram_mutex::set_histogram_mutex
static void set_histogram_mutex(std::mutex &mutex)
Set mutex to be used in oh_lock_histogram.
Definition: OHLockedHist.h:36