ATLAS Offline Software
Public Types | Public Member Functions | Static Public Member Functions | Protected Types | Protected Member Functions | Protected Attributes | Private Types | Private Member Functions | Private Attributes | List of all members
GeneratorPhysVal::GeneratorPhysValMonitoringTool Class Reference

#include <GeneratorPhysValMonitoringTool.h>

Inheritance diagram for GeneratorPhysVal::GeneratorPhysValMonitoringTool:
Collaboration diagram for GeneratorPhysVal::GeneratorPhysValMonitoringTool:

Public Types

enum  Interval_t {
  file = 0, eventsBlock, lumiBlock, lowStat,
  medStat, higStat, run, fill,
  all
}
 An enumeration describing how detailed a particular monitoring object is. More...
 
enum  MgmtAttr_t { ATTRIB_MANAGED = 0, ATTRIB_UNMANAGED = 1, ATTRIB_X_VS_LB = 2 }
 An enumeration describing how the class handles the histogram. More...
 

Public Member Functions

 GeneratorPhysValMonitoringTool (const std::string &type, const std::string &name, const IInterface *parent)
 
virtual ~GeneratorPhysValMonitoringTool ()
 
virtual StatusCode initialize ()
 
virtual StatusCode bookHistograms ()
 An inheriting class should either override this function or bookHists(). More...
 
virtual StatusCode fillHistograms ()
 An inheriting class should either override this function or fillHists(). More...
 
virtual StatusCode procHistograms ()
 An inheriting class should either override this function or finalHists(). More...
 
virtual StreamNameFcnstreamNameFunction ()
 Returns the function object that converts logical paramters into a physical stream name. More...
 
virtual StatusCode bookHists ()
 Calls bookHists( true, true, true ) and initializes lumiBlock and run numbers. More...
 
virtual StatusCode fillHists ()
 Calls fillHists( bool, bool, bool ); if an eventBlock,lumiBlock, or run has turned over, calls procHists( bool, bool, bool ) and bookHists( bool, bool, bool ). More...
 
virtual StatusCode finalHists ()
 Calls procHists( true, true, true ). More...
 
virtual StatusCode convertLWHists ()
 Deal with the LW histograms. More...
 
virtual StatusCode bookHistogramsRecurrent ()
 An inheriting class should either override this function, bookHists() or bookHistograms(). More...
 
virtual void setMonManager (AthenaMonManager *manager)
 Takes a pointer to a managing object to get information from it when needed. More...
 
virtual StatusCode regHist (TH1 *h, const std::string &system, Interval_t interval, MgmtAttr_t histo_mgmt=ATTRIB_MANAGED, const std::string &chain="", const std::string &merge="")
 Registers a TH1 (including TH2, TH3, and TProfile) to be included in the output stream using logical parameters that describe the histogram. More...
 
virtual StatusCode regHist (TH1 *h, const MonGroup &group)
 Registers a TH1 (including TH2, TH3, and TProfile) to be included in the output stream using logical parameters that describe the histogram. More...
 
virtual StatusCode regHist (LWHist *h, const std::string &system, Interval_t interval, MgmtAttr_t histo_mgmt=ATTRIB_MANAGED, const std::string &chain="", const std::string &merge="")
 Support for lightweight histograms: More...
 
virtual StatusCode regHist (LWHist *h, const MonGroup &group)
 
virtual StatusCode getHist (TH1 *&h, const std::string &hName, const std::string &system, Interval_t interval)
 Returns a TH1 via the pointer passed as the first argument. More...
 
virtual StatusCode getHist (TH1 *&h, const std::string &hName, const MonGroup &group)
 Returns a TH1 via the pointer passed as the first argument. More...
 
virtual StatusCode getHist (TH2 *&h, const std::string &hName, const std::string &system, Interval_t interval)
 Returns a TH2 via the pointer passed as the first argument. More...
 
virtual StatusCode getHist (TH2 *&h, const std::string &hName, const MonGroup &group)
 Returns a TH2 via the pointer passed as the first argument. More...
 
virtual StatusCode getHist (LWHist *&h, const std::string &hName, const std::string &system, Interval_t interval)
 
virtual StatusCode getHist (LWHist *&h, const std::string &hName, const MonGroup &group)
 
virtual StatusCode regEfficiency (TEfficiency *e, const MonGroup &group)
 Registers a TEfficiency to be included in the output stream using logical parameters that describe the plot. More...
 
virtual StatusCode regGraph (TGraph *g, const std::string &system, Interval_t interval, MgmtAttr_t histo_mgmt=ATTRIB_MANAGED, const std::string &chain="", const std::string &merge="")
 Registers a TGraph to be included in the output stream using logical parameters that describe the graph. More...
 
virtual StatusCode regGraph (TGraph *g, const MonGroup &group)
 Registers a TGraph to be included in the output stream using logical parameters that describe the graph. More...
 
virtual StatusCode regTree (TTree *t, const std::string &system, Interval_t interval, MgmtAttr_t histo_mgmt=ATTRIB_MANAGED, const std::string &chain="", const std::string &merge="")
 Registers a TTree to be included in the output stream using logical parameters that describe it. More...
 
virtual StatusCode regTree (TTree *t, const MonGroup &group)
 Registers a TTree to be included in the output stream using logical parameters that describe it. More...
 
virtual StatusCode deregHist (LWHist *h)
 
virtual StatusCode deregHist (TH1 *h)
 De-registers a TH1 from the THistSvc, but does NOT delete the object. More...
 
virtual StatusCode writeAndDelete (TH1 *h, const MonGroup &group)
 Write out histogram and delete it. More...
 
virtual StatusCode deregGraph (TGraph *g)
 De-registers a TGraph from the THistSvc, but does NOT delete the object. More...
 
virtual StatusCode deregObject (const std::string &objName, const std::string &system, Interval_t interval)
 De-registers a TObject from the THistSvc, but does NOT delete the object. More...
 
virtual StatusCode deregObject (const std::string &objName, const MonGroup &group)
 De-registers a TObject from the THistSvc, but does NOT delete the object. More...
 
virtual StatusCode setupOutputStreams (std::vector< std::string > Mapping=std::vector< std::string >())
 This implementation does nothing—streams in this class should be managed by the AthenaMonManager. More...
 
virtual StatusCode runStat ()
 This implementation does nothing; equivalent functionality may be provided by procHists( true, true, true ). More...
 
virtual StatusCode checkHists (bool calledFromFinalize)
 This implementation does nothing; equivalent functionality may be provided by procHists(...) with appropriate arguments. More...
 
virtual bool preSelector ()
 
virtual float lbAverageInteractionsPerCrossing (const EventContext &ctx=Gaudi::Hive::currentContext()) const
 Average mu, i.e. More...
 
virtual float lbInteractionsPerCrossing (const EventContext &ctx=Gaudi::Hive::currentContext()) const
 Instantaneous number of interactions, i.e. More...
 
virtual float lbAverageLuminosity (const EventContext &ctx=Gaudi::Hive::currentContext()) const
 Average luminosity (in ub-1 s-1 => 10^30 cm-2 s-1) More...
 
virtual float lbLuminosityPerBCID (const EventContext &ctx=Gaudi::Hive::currentContext()) const
 Instantaneous luminosity. More...
 
virtual double lbDuration (const EventContext &ctx=Gaudi::Hive::currentContext()) const
 Luminosity block time (in seconds) More...
 
virtual float lbAverageLivefraction (const EventContext &ctx=Gaudi::Hive::currentContext()) const
 Average luminosity livefraction. More...
 
virtual float livefractionPerBCID (const EventContext &ctx=Gaudi::Hive::currentContext()) const
 Livefraction per bunch crossing ID. More...
 
virtual double lbLumiWeight (const EventContext &ctx=Gaudi::Hive::currentContext()) const
 Average Integrated Luminosity Live Fraction. More...
 
 MMTB_DEPRECATED (newLowStatInterval)
 
 MMTB_DEPRECATED (newMedStatInterval)
 
 MMTB_DEPRECATED (newHigStatInterval)
 
 MMTB_DEPRECATED (newLowStat)
 
 MMTB_DEPRECATED (newLumiBlock)
 
 MMTB_DEPRECATED (newRun)
 
 MMTB_DEPRECATED (newEventsBlock)
 
 MMTB_DEPRECATED (endOfEventsBlock)
 
 MMTB_DEPRECATED (endOfLowStat)
 
 MMTB_DEPRECATED (endOfLumiBlock)
 
 MMTB_DEPRECATED (endOfRun)
 
ServiceHandle< StoreGateSvc > & evtStore ()
 The standard StoreGateSvc (event store) Returns (kind of) a pointer to the StoreGateSvc. More...
 
const ServiceHandle< StoreGateSvc > & evtStore () const
 The standard StoreGateSvc (event store) Returns (kind of) a pointer to the StoreGateSvc. More...
 
const ServiceHandle< StoreGateSvc > & detStore () const
 The standard StoreGateSvc/DetectorStore Returns (kind of) a pointer to the StoreGateSvc. More...
 
virtual StatusCode sysInitialize () override
 Perform system initialization for an algorithm. More...
 
virtual StatusCode sysStart () override
 Handle START transition. More...
 
virtual std::vector< Gaudi::DataHandle * > inputHandles () const override
 Return this algorithm's input handles. More...
 
virtual std::vector< Gaudi::DataHandle * > outputHandles () const override
 Return this algorithm's output handles. More...
 
Gaudi::Details::PropertyBase & declareProperty (Gaudi::Property< T > &t)
 
Gaudi::Details::PropertyBase * declareProperty (const std::string &name, SG::VarHandleKey &hndl, const std::string &doc, const SG::VarHandleKeyType &)
 Declare a new Gaudi property. More...
 
Gaudi::Details::PropertyBase * declareProperty (const std::string &name, SG::VarHandleBase &hndl, const std::string &doc, const SG::VarHandleType &)
 Declare a new Gaudi property. More...
 
Gaudi::Details::PropertyBase * declareProperty (const std::string &name, SG::VarHandleKeyArray &hndArr, const std::string &doc, const SG::VarHandleKeyArrayType &)
 
Gaudi::Details::PropertyBase * declareProperty (const std::string &name, T &property, const std::string &doc, const SG::NotHandleType &)
 Declare a new Gaudi property. More...
 
Gaudi::Details::PropertyBase * declareProperty (const std::string &name, T &property, const std::string &doc="none")
 Declare a new Gaudi property. More...
 
void updateVHKA (Gaudi::Details::PropertyBase &)
 
MsgStream & msg () const
 
MsgStream & msg (const MSG::Level lvl) const
 
bool msgLvl (const MSG::Level lvl) const
 

Static Public Member Functions

static std::string intervalEnumToString (Interval_t interval)
 Converts a LevelOfDetail_t to a string of the same name. More...
 
static Interval_t intervalStringToEnum (const std::string &str)
 Converts a string to the corresponding Interval_t. More...
 
static const InterfaceID & interfaceID ()
 

Protected Types

typedef std::map< std::string, OutputMetadata * > MDMap_t
 

Protected Member Functions

StatusCode regManagedHistograms (std::vector< MgmtParams< TH1 > > &templateHistograms)
 
StatusCode regManagedGraphs (std::vector< MgmtParams< TGraph > > &templateGraphs)
 
StatusCode regManagedTrees (std::vector< MgmtParams< TTree > > &templateTrees)
 
StatusCode regManagedLWHistograms (std::vector< MgmtParams< LWHist > > &templateLWHistograms)
 
StatusCode regManagedEfficiencies (std::vector< MgmtParams< TEfficiency > > &templateEfficiencies)
 
StatusCode parseList (const std::string &, std::vector< std::string > &)
 
void updateTriggersForGroups (std::vector< std::string > &)
 
StatusCode registerMetadata (const std::string &streamName, const std::string &hName, const MonGroup &group)
 
StatusCode THistSvc_deReg_fixTGraph (TFile *file, TGraph *theGraph, std::string &directoryName)
 Fixes THistSvc->deReg(obj) when obj is TGraph instance. More...
 
unsigned int get_nEvents () const
 
long get_procNEventsProp () const
 
virtual bool trigChainsArePassed (std::vector< std::string > &)
 
virtual StreamNameFcngetNewStreamNameFcn () const
 
bool newLowStatIntervalFlag () const
 Flag functions allowing clients to determine when to book new and process old histograms; values are updated by fillHists() based on counting lumiBlocks, and are correctly set when fillHistograms(), bookHistograms() and procHistograms() are called. More...
 
bool newMedStatIntervalFlag () const
 
bool newHigStatIntervalFlag () const
 
bool newLowStatFlag () const
 
bool newLumiBlockFlag () const
 
bool newRunFlag () const
 
bool newEventsBlockFlag () const
 
bool endOfEventsBlockFlag () const
 
bool endOfLowStatFlag () const
 
bool endOfLumiBlockFlag () const
 
bool endOfRunFlag () const
 
void renounceArray (SG::VarHandleKeyArray &handlesArray)
 remove all handles from I/O resolution More...
 
std::enable_if_t< std::is_void_v< std::result_of_t< decltype(&T::renounce)(T)> > &&!std::is_base_of_v< SG::VarHandleKeyArray, T > &&std::is_base_of_v< Gaudi::DataHandle, T >, void > renounce (T &h)
 
void extraDeps_update_handler (Gaudi::Details::PropertyBase &ExtraDeps)
 Add StoreName to extra input/output deps as needed. More...
 

Protected Attributes

std::map< Interval_t, std::vector< MgmtParams< TH1 > > > m_templateHistograms
 
std::map< Interval_t, std::vector< MgmtParams< TGraph > > > m_templateGraphs
 
std::map< Interval_t, std::vector< MgmtParams< TTree > > > m_templateTrees
 
std::map< Interval_t, std::vector< MgmtParams< LWHist > > > m_templateLWHistograms
 
std::map< Interval_t, std::vector< MgmtParams< TEfficiency > > > m_templateEfficiencies
 
std::vector< std::string > m_vTrigChainNames
 
std::vector< std::string > m_vTrigGroupNames
 
MDMap_t m_metadataMap
 
std::set< LWHist * > m_lwhists
 
AthenaMonManagerm_manager
 
std::string m_managerNameProp
 
std::string m_fileKey
 
std::string m_dataTypeStr
 
std::string m_environmentStr
 
unsigned int m_detailLevel
 
AthenaMonManager::DataType_t m_dataType
 
AthenaMonManager::Environment_t m_environment
 
StreamNameFcnm_streamNameFcn
 
ServiceHandle< ITHistSvc > m_THistSvc
 
PublicToolHandle< Trig::ITrigDecisionToolm_trigDecTool {this, "TrigDecisionTool",""}
 
PublicToolHandle< ITriggerTranslatorToolm_trigTranslator {this,"TriggerTranslatorTool",""}
 
ToolHandleArray< IDQFilterToolm_DQFilterTools {this,"FilterTools",{}}
 
long m_procNEventsProp
 
std::string m_path
 
long m_preScaleProp
 
std::string m_triggerChainProp
 
std::string m_triggerGroupProp
 
bool m_useTrigger
 
unsigned int m_lastLumiBlock
 
unsigned int m_lastRun
 
int m_lastLowStatInterval
 
int m_lastMedStatInterval
 
int m_lastHigStatInterval
 
unsigned int m_nEvents
 
unsigned int m_nEventsIgnoreTrigger
 
unsigned int m_nLumiBlocks
 
bool m_haveClearedLastEventBlock
 

Private Types

typedef ServiceHandle< StoreGateSvcStoreGateSvc_t
 

Private Member Functions

 GeneratorPhysValMonitoringTool ()
 
StatusCode book (PlotBase &plots)
 
Gaudi::Details::PropertyBase & declareGaudiProperty (Gaudi::Property< T > &hndl, const SG::VarHandleKeyType &)
 specialization for handling Gaudi::Property<SG::VarHandleKey> More...
 
Gaudi::Details::PropertyBase & declareGaudiProperty (Gaudi::Property< T > &hndl, const SG::VarHandleKeyArrayType &)
 specialization for handling Gaudi::Property<SG::VarHandleKeyArray> More...
 
Gaudi::Details::PropertyBase & declareGaudiProperty (Gaudi::Property< T > &hndl, const SG::VarHandleType &)
 specialization for handling Gaudi::Property<SG::VarHandleBase> More...
 
Gaudi::Details::PropertyBase & declareGaudiProperty (Gaudi::Property< T > &t, const SG::NotHandleType &)
 specialization for handling everything that's not a Gaudi::Property<SG::VarHandleKey> or a <SG::VarHandleKeyArray> More...
 

Private Attributes

GeneratorPhysVal::GeneratorPlots m_testPlots
 
GeneratorPhysVal::GeneratorPlots m_ChargedParticlePlots
 
GeneratorPhysVal::GeneratorPlots m_GeneratorLevelPlots
 
GeneratorPhysVal::GeneratorPlots m_SimulationLevelPlots
 
GeneratorPhysVal::GeneratorProductionVertexPlots m_ProductionVertexPlots
 
GeneratorPhysVal::GeneratorEventInfo m_EventInfoPlots
 
TH1Dm_number = nullptr
 
TH1Dm_number_GeneratorLevel = nullptr
 
TH1Dm_number_SimulationLevel = nullptr
 
GeneratorSelectorm_GeneratorSelector
 
int m_ref_mcChannelNumber = 0
 
Gaudi::Property< std::vector< float > > m_binning_N_TruthParticle {this, "binning_N_TruthParticle", {600,0.,6000},"binning_N_TruthParticle"}
 
Gaudi::Property< std::vector< float > > m_binning_N_GeneratorLevelParticle {this, "binning_N_GeneratorLevelParticle", {10,-5.,5},"binning_N_GeneratorLevelParticle"}
 
Gaudi::Property< std::vector< float > > m_binning_N_SimulationLevelParticle {this, "binning_N_SimulationLevelParticle", {2000,0,2000},"binning_N_SimulationLevelParticle"}
 
SG::ReadHandleKey< xAOD::EventInfom_evtInfoKey
 
bool m_newLowStatInterval
 
bool m_newMedStatInterval
 
bool m_newHigStatInterval
 
bool m_newLowStat
 
bool m_newLumiBlock
 
bool m_newRun
 
bool m_newEventsBlock
 
bool m_endOfEventsBlock
 
bool m_endOfLowStat
 
bool m_endOfLumiBlock
 
bool m_endOfRun
 
SG::ReadCondHandleKey< LuminosityCondDatam_lumiDataKey {this,"LuminosityCondDataKey","LuminosityCondData","SG Key of LuminosityCondData object"}
 
SG::ReadCondHandleKey< LBDurationCondDatam_lbDurationDataKey {this,"LBDurationCondDataKey","LBDurationCondData","SG Key of LBDurationCondData object"}
 
SG::ReadCondHandleKey< TrigLiveFractionCondDatam_trigLiveFractionDataKey {this,"TrigLiveFractionCondDataKey","TrigLiveFractionCondData","SG Key of TrigLiveFractionCondData object"}
 
bool m_bookHistogramsInitial
 
bool m_useLumi
 
float m_defaultLBDuration
 
std::set< Interval_tm_supportedIntervalsForRebooking
 
Impm_d
 
StoreGateSvc_t m_evtStore
 Pointer to StoreGate (event store by default) More...
 
StoreGateSvc_t m_detStore
 Pointer to StoreGate (detector store by default) More...
 
std::vector< SG::VarHandleKeyArray * > m_vhka
 
bool m_varHandleArraysDeclared
 

Detailed Description

Definition at line 41 of file GeneratorPhysValMonitoringTool.h.

Member Typedef Documentation

◆ MDMap_t

typedef std::map<std::string,OutputMetadata*> ManagedMonitorToolBase::MDMap_t
protectedinherited

Definition at line 888 of file ManagedMonitorToolBase.h.

◆ StoreGateSvc_t

typedef ServiceHandle<StoreGateSvc> AthCommonDataStore< AthCommonMsg< AlgTool > >::StoreGateSvc_t
privateinherited

Definition at line 388 of file AthCommonDataStore.h.

Member Enumeration Documentation

◆ Interval_t

An enumeration describing how detailed a particular monitoring object is.

summary: used to summarize the state of the system

runstat: same as summary

shift: used to flag potential problems

expert: essential for diagnosing problems identified by shift-level objects

debug: useful for standalone debugging, but not for routine monitoring; not essential for diagnosing problems during normal running

transient: too detailed to ever be written; always summarized by the user by means of another object An enumeration describing the interval over which a particular monitoring object is filled (i.e., interval over which the method Fill(...) is called). This information may be stored with the monitoring object if an application is only able to partially fill the object (i.e., a job sees only part of a run or fill). This information may be ignored in some running Environments. The 'fill' interval corresponds to a fill of the LHC. The 'all' interval corresponds to all available data. The 'lumiBlock' and 'fill' intervals are only valid for the 'collisions' DataType_t.

Enumerator
file 
eventsBlock 
lumiBlock 
lowStat 
medStat 
higStat 
run 
fill 
all 

Definition at line 114 of file ManagedMonitorToolBase.h.

114  { file = 0, eventsBlock, lumiBlock,
116  run, fill, all };

◆ MgmtAttr_t

An enumeration describing how the class handles the histogram.

attrib_unmanaged: histograms with this attribute will not be rebooked automatically and must be managed by the user code.

attrib_x_is_lb: indicates that the x-axis of the histogram is the luminosity block number and that the histogram should be rebooked as necessary if the current LB exceeds the range.

Enumerator
ATTRIB_MANAGED 
ATTRIB_UNMANAGED 
ATTRIB_X_VS_LB 

Definition at line 131 of file ManagedMonitorToolBase.h.

Constructor & Destructor Documentation

◆ GeneratorPhysValMonitoringTool() [1/2]

GeneratorPhysVal::GeneratorPhysValMonitoringTool::GeneratorPhysValMonitoringTool ( const std::string &  type,
const std::string &  name,
const IInterface *  parent 
)

Definition at line 20 of file GeneratorPhysValMonitoringTool.cxx.

23  m_testPlots(0, "test/", "test"), // for testing
24  m_ChargedParticlePlots(0,"ChargedParticle/","ChargedParticle"), // save charged particles
25  m_GeneratorLevelPlots(0,"GeneratorLevel/","GeneratorLevel"), // save generator level particle
26  m_SimulationLevelPlots(0,"SimulationLevel/","SimulationLevel"), // save simulation level particle
27  m_ProductionVertexPlots(0,"ProductionVertex/","ProductionVertex"), // save production vertex
28  m_EventInfoPlots(0,"EventInfo/","EventInfo"), // save EventInfo
29  m_number(nullptr),
30  m_number_GeneratorLevel(nullptr),
31  m_number_SimulationLevel(nullptr),
33 
34  {
35 
36  }

◆ ~GeneratorPhysValMonitoringTool()

GeneratorPhysVal::GeneratorPhysValMonitoringTool::~GeneratorPhysValMonitoringTool ( )
virtual

Definition at line 38 of file GeneratorPhysValMonitoringTool.cxx.

39  {}

◆ GeneratorPhysValMonitoringTool() [2/2]

GeneratorPhysVal::GeneratorPhysValMonitoringTool::GeneratorPhysValMonitoringTool ( )
private

Member Function Documentation

◆ book()

StatusCode GeneratorPhysVal::GeneratorPhysValMonitoringTool::book ( PlotBase plots)
private

Definition at line 49 of file GeneratorPhysValMonitoringTool.cxx.

50 {
51  plots.initialize();
52  std::vector<HistData> hists = plots.retrieveBookedHistograms();
53 
54  for (auto& hist : hists)
55  {
56  ATH_MSG_INFO("Initializing " << hist.first << " " << hist.first->GetName() << " " << hist.second << "...");
57  ATH_CHECK(regHist(hist.first, hist.second, all));
58  }
59  return StatusCode::SUCCESS;
60 }

◆ bookHistograms()

StatusCode GeneratorPhysVal::GeneratorPhysValMonitoringTool::bookHistograms ( )
virtual

An inheriting class should either override this function or bookHists().

Reimplemented from ManagedMonitorToolBase.

Definition at line 61 of file GeneratorPhysValMonitoringTool.cxx.

62  {
63  ATH_MSG_INFO("Booking hists " << name() << "...");
64  std::string dir_test("nplots/");
65  ATH_CHECK(regHist(m_number = new TH1D("N_TruthParticle","Number of Truth Particles; n ;Events" ,m_binning_N_TruthParticle[0], m_binning_N_TruthParticle[1], m_binning_N_TruthParticle[2]), dir_test, all));
66  ATH_CHECK(regHist(m_number_GeneratorLevel = new TH1D("N_GeneratorLevelParticle","Number of Generator Level Particles; n ;Events" ,m_binning_N_GeneratorLevelParticle[0], m_binning_N_GeneratorLevelParticle[1], m_binning_N_GeneratorLevelParticle[2]), dir_test, all));
67  ATH_CHECK(regHist(m_number_SimulationLevel = new TH1D("N_SimulationLevelParticle","Number of Simulation Level Particles; n ;Events" ,m_binning_N_SimulationLevelParticle[0], m_binning_N_SimulationLevelParticle[1], m_binning_N_SimulationLevelParticle[2]), dir_test, all));
68 
75  return StatusCode::SUCCESS;
76  }

◆ bookHistogramsRecurrent()

StatusCode ManagedMonitorToolBase::bookHistogramsRecurrent ( )
virtualinherited

An inheriting class should either override this function, bookHists() or bookHistograms().

Reimplemented in RpcLv1RawDataEfficiency, MdtRawDataValAlg, RpcLv1RawDataValAlg, RpcLv1RawDataSectorLogic, MdtVsTgcRawDataValAlg, MdtVsRpcRawDataValAlg, ManagedMonitorToolTest, HIMonitoringEventShapeTool, HIMonitoringZdcTool, HIMonitoringElectronsTool, HIMonitoringPhotonsTool, and HIMonitoringMuonsTool.

Definition at line 1393 of file ManagedMonitorToolBase.cxx.

1395 {
1396  if( m_newEventsBlock ) { }
1397  if( m_newLumiBlock ) { }
1398  if( m_newRun ) { }
1399 
1400  return StatusCode::SUCCESS;
1401 }

◆ bookHists()

StatusCode ManagedMonitorToolBase::bookHists ( )
virtualinherited

Calls bookHists( true, true, true ) and initializes lumiBlock and run numbers.

Implements IMonitorToolBase.

Reimplemented in TileRawChannelMonTool, and TileDigitsMonTool.

Definition at line 781 of file ManagedMonitorToolBase.cxx.

783 {
784  // The Run/LumiBlock numbers are not set when beginRun() is called. Therefore,
785  // book histograms on the first call to fillHists(), which is called from execute().
786  return StatusCode::SUCCESS;
787 }

◆ checkHists()

StatusCode ManagedMonitorToolBase::checkHists ( bool  calledFromFinalize)
virtualinherited

This implementation does nothing; equivalent functionality may be provided by procHists(...) with appropriate arguments.

Implements IMonitorToolBase.

Reimplemented in TileRawChannelMonTool, TileDigitsMonTool, TileCellNoiseMonTool, CscCalibMonToolBase, CscPrdValAlg, and CscRdoValAlg.

Definition at line 1900 of file ManagedMonitorToolBase.cxx.

1902 {
1903  // Histograms will be checked using the data-quality monitoring framework (DQMF)
1904 
1905  return StatusCode::SUCCESS;
1906 }

◆ convertLWHists()

StatusCode ManagedMonitorToolBase::convertLWHists ( )
virtualinherited

Deal with the LW histograms.

Implements IMonitorToolBase.

Definition at line 1376 of file ManagedMonitorToolBase.cxx.

1378 {
1379  // note that managed histograms will be converted by regMonitoredLWHistograms
1380  // hence they are not in m_lwhists
1381  if (m_manager) {
1383  for (;it!=itE;++it)
1385  m_lwhists.clear();
1386  }
1387  return StatusCode::SUCCESS;
1388 
1389 }

◆ declareGaudiProperty() [1/4]

Gaudi::Details::PropertyBase& AthCommonDataStore< AthCommonMsg< AlgTool > >::declareGaudiProperty ( Gaudi::Property< T > &  hndl,
const SG::VarHandleKeyArrayType  
)
inlineprivateinherited

specialization for handling Gaudi::Property<SG::VarHandleKeyArray>

Definition at line 170 of file AthCommonDataStore.h.

172  {
173  return *AthCommonDataStore<PBASE>::declareProperty(hndl.name(),
174  hndl.value(),
175  hndl.documentation());
176 
177  }

◆ declareGaudiProperty() [2/4]

Gaudi::Details::PropertyBase& AthCommonDataStore< AthCommonMsg< AlgTool > >::declareGaudiProperty ( Gaudi::Property< T > &  hndl,
const SG::VarHandleKeyType  
)
inlineprivateinherited

specialization for handling Gaudi::Property<SG::VarHandleKey>

Definition at line 156 of file AthCommonDataStore.h.

158  {
159  return *AthCommonDataStore<PBASE>::declareProperty(hndl.name(),
160  hndl.value(),
161  hndl.documentation());
162 
163  }

◆ declareGaudiProperty() [3/4]

Gaudi::Details::PropertyBase& AthCommonDataStore< AthCommonMsg< AlgTool > >::declareGaudiProperty ( Gaudi::Property< T > &  hndl,
const SG::VarHandleType  
)
inlineprivateinherited

specialization for handling Gaudi::Property<SG::VarHandleBase>

Definition at line 184 of file AthCommonDataStore.h.

186  {
187  return *AthCommonDataStore<PBASE>::declareProperty(hndl.name(),
188  hndl.value(),
189  hndl.documentation());
190  }

◆ declareGaudiProperty() [4/4]

Gaudi::Details::PropertyBase& AthCommonDataStore< AthCommonMsg< AlgTool > >::declareGaudiProperty ( Gaudi::Property< T > &  t,
const SG::NotHandleType  
)
inlineprivateinherited

specialization for handling everything that's not a Gaudi::Property<SG::VarHandleKey> or a <SG::VarHandleKeyArray>

Definition at line 199 of file AthCommonDataStore.h.

200  {
201  return PBASE::declareProperty(t);
202  }

◆ declareProperty() [1/6]

Gaudi::Details::PropertyBase* AthCommonDataStore< AthCommonMsg< AlgTool > >::declareProperty ( const std::string &  name,
SG::VarHandleBase hndl,
const std::string &  doc,
const SG::VarHandleType  
)
inlineinherited

Declare a new Gaudi property.

Parameters
nameName of the property.
hndlObject holding the property value.
docDocumentation string for the property.

This is the version for types that derive from SG::VarHandleBase. The property value object is put on the input and output lists as appropriate; then we forward to the base class.

Definition at line 245 of file AthCommonDataStore.h.

249  {
250  this->declare(hndl.vhKey());
251  hndl.vhKey().setOwner(this);
252 
253  return PBASE::declareProperty(name,hndl,doc);
254  }

◆ declareProperty() [2/6]

Gaudi::Details::PropertyBase* AthCommonDataStore< AthCommonMsg< AlgTool > >::declareProperty ( const std::string &  name,
SG::VarHandleKey hndl,
const std::string &  doc,
const SG::VarHandleKeyType  
)
inlineinherited

Declare a new Gaudi property.

Parameters
nameName of the property.
hndlObject holding the property value.
docDocumentation string for the property.

This is the version for types that derive from SG::VarHandleKey. The property value object is put on the input and output lists as appropriate; then we forward to the base class.

Definition at line 221 of file AthCommonDataStore.h.

225  {
226  this->declare(hndl);
227  hndl.setOwner(this);
228 
229  return PBASE::declareProperty(name,hndl,doc);
230  }

◆ declareProperty() [3/6]

Gaudi::Details::PropertyBase* AthCommonDataStore< AthCommonMsg< AlgTool > >::declareProperty ( const std::string &  name,
SG::VarHandleKeyArray hndArr,
const std::string &  doc,
const SG::VarHandleKeyArrayType  
)
inlineinherited

Definition at line 259 of file AthCommonDataStore.h.

263  {
264 
265  // std::ostringstream ost;
266  // ost << Algorithm::name() << " VHKA declareProp: " << name
267  // << " size: " << hndArr.keys().size()
268  // << " mode: " << hndArr.mode()
269  // << " vhka size: " << m_vhka.size()
270  // << "\n";
271  // debug() << ost.str() << endmsg;
272 
273  hndArr.setOwner(this);
274  m_vhka.push_back(&hndArr);
275 
276  Gaudi::Details::PropertyBase* p = PBASE::declareProperty(name, hndArr, doc);
277  if (p != 0) {
278  p->declareUpdateHandler(&AthCommonDataStore<PBASE>::updateVHKA, this);
279  } else {
280  ATH_MSG_ERROR("unable to call declareProperty on VarHandleKeyArray "
281  << name);
282  }
283 
284  return p;
285 
286  }

◆ declareProperty() [4/6]

Gaudi::Details::PropertyBase* AthCommonDataStore< AthCommonMsg< AlgTool > >::declareProperty ( const std::string &  name,
T &  property,
const std::string &  doc,
const SG::NotHandleType  
)
inlineinherited

Declare a new Gaudi property.

Parameters
nameName of the property.
propertyObject holding the property value.
docDocumentation string for the property.

This is the generic version, for types that do not derive from SG::VarHandleKey. It just forwards to the base class version of declareProperty.

Definition at line 333 of file AthCommonDataStore.h.

337  {
338  return PBASE::declareProperty(name, property, doc);
339  }

◆ declareProperty() [5/6]

Gaudi::Details::PropertyBase* AthCommonDataStore< AthCommonMsg< AlgTool > >::declareProperty ( const std::string &  name,
T &  property,
const std::string &  doc = "none" 
)
inlineinherited

Declare a new Gaudi property.

Parameters
nameName of the property.
propertyObject holding the property value.
docDocumentation string for the property.

This dispatches to either the generic declareProperty or the one for VarHandle/Key/KeyArray.

Definition at line 352 of file AthCommonDataStore.h.

355  {
356  typedef typename SG::HandleClassifier<T>::type htype;
357  return declareProperty (name, property, doc, htype());
358  }

◆ declareProperty() [6/6]

Gaudi::Details::PropertyBase& AthCommonDataStore< AthCommonMsg< AlgTool > >::declareProperty ( Gaudi::Property< T > &  t)
inlineinherited

Definition at line 145 of file AthCommonDataStore.h.

145  {
146  typedef typename SG::HandleClassifier<T>::type htype;
148  }

◆ deregGraph()

StatusCode ManagedMonitorToolBase::deregGraph ( TGraph *  g)
virtualinherited

De-registers a TGraph from the THistSvc, but does NOT delete the object.

Definition at line 1842 of file ManagedMonitorToolBase.cxx.

1844 {
1845  return m_THistSvc->deReg( g );
1846 }

◆ deregHist() [1/2]

StatusCode ManagedMonitorToolBase::deregHist ( LWHist h)
virtualinherited

Definition at line 1825 of file ManagedMonitorToolBase.cxx.

1826 {
1828  if (it==m_lwhists.end())
1829  return StatusCode::FAILURE;
1831  m_lwhists.erase(it);
1832  if (h->usingROOTBackend()) {
1833  h->setOwnsROOTHisto(true);
1834  return m_THistSvc->deReg( h->getROOTHistBase() );
1835  }
1836 
1837  return StatusCode::SUCCESS;
1838 }

◆ deregHist() [2/2]

StatusCode ManagedMonitorToolBase::deregHist ( TH1 h)
virtualinherited

De-registers a TH1 from the THistSvc, but does NOT delete the object.

Definition at line 1818 of file ManagedMonitorToolBase.cxx.

1820 {
1821  return m_THistSvc->deReg( h );
1822 }

◆ deregObject() [1/2]

StatusCode ManagedMonitorToolBase::deregObject ( const std::string &  objName,
const MonGroup group 
)
virtualinherited

De-registers a TObject from the THistSvc, but does NOT delete the object.

(NB: LightWeight histograms are not even registered until readout).

Definition at line 1860 of file ManagedMonitorToolBase.cxx.

1862 {
1863  std::string streamName = streamNameFunction()->getStreamName( this, group, objName );
1865  for (;it!=itE;++it) {
1866  LWHist * hlw = *it;
1867  if (LWHistAthMonWrapper::key(hlw)==objName) {
1868  m_lwhists.erase(it);
1869  if (hlw->usingROOTBackend()) {
1870  hlw->setOwnsROOTHisto(true);
1871  return m_THistSvc->deReg( hlw->getROOTHistBase() );
1872  }
1873  return StatusCode::SUCCESS;
1874  }
1875  }
1876  return m_THistSvc->deReg( streamName );
1877 }

◆ deregObject() [2/2]

StatusCode ManagedMonitorToolBase::deregObject ( const std::string &  objName,
const std::string &  system,
Interval_t  interval 
)
virtualinherited

De-registers a TObject from the THistSvc, but does NOT delete the object.

(NB: LightWeight histograms are not even registered until readout).

Definition at line 1850 of file ManagedMonitorToolBase.cxx.

1853 {
1854  MonGroup group( this, system, interval );
1855  return deregObject( objName, group );
1856 }

◆ detStore()

const ServiceHandle<StoreGateSvc>& AthCommonDataStore< AthCommonMsg< AlgTool > >::detStore ( ) const
inlineinherited

The standard StoreGateSvc/DetectorStore Returns (kind of) a pointer to the StoreGateSvc.

Definition at line 95 of file AthCommonDataStore.h.

95 { return m_detStore; }

◆ endOfEventsBlockFlag()

bool ManagedMonitorToolBase::endOfEventsBlockFlag ( ) const
inlineprotectedinherited

Definition at line 856 of file ManagedMonitorToolBase.h.

856 { return m_endOfEventsBlock; }

◆ endOfLowStatFlag()

bool ManagedMonitorToolBase::endOfLowStatFlag ( ) const
inlineprotectedinherited

Definition at line 857 of file ManagedMonitorToolBase.h.

857 { return m_endOfLowStat; }

◆ endOfLumiBlockFlag()

bool ManagedMonitorToolBase::endOfLumiBlockFlag ( ) const
inlineprotectedinherited

Definition at line 858 of file ManagedMonitorToolBase.h.

858 { return m_endOfLumiBlock; }

◆ endOfRunFlag()

bool ManagedMonitorToolBase::endOfRunFlag ( ) const
inlineprotectedinherited

Definition at line 859 of file ManagedMonitorToolBase.h.

859 { return m_endOfRun; }

◆ evtStore() [1/2]

ServiceHandle<StoreGateSvc>& AthCommonDataStore< AthCommonMsg< AlgTool > >::evtStore ( )
inlineinherited

The standard StoreGateSvc (event store) Returns (kind of) a pointer to the StoreGateSvc.

Definition at line 85 of file AthCommonDataStore.h.

85 { return m_evtStore; }

◆ evtStore() [2/2]

const ServiceHandle<StoreGateSvc>& AthCommonDataStore< AthCommonMsg< AlgTool > >::evtStore ( ) const
inlineinherited

The standard StoreGateSvc (event store) Returns (kind of) a pointer to the StoreGateSvc.

Definition at line 90 of file AthCommonDataStore.h.

90 { return m_evtStore; }

◆ extraDeps_update_handler()

void AthCommonDataStore< AthCommonMsg< AlgTool > >::extraDeps_update_handler ( Gaudi::Details::PropertyBase &  ExtraDeps)
protectedinherited

Add StoreName to extra input/output deps as needed.

use the logic of the VarHandleKey to parse the DataObjID keys supplied via the ExtraInputs and ExtraOuputs Properties to add the StoreName if it's not explicitly given

◆ fillHistograms()

StatusCode GeneratorPhysVal::GeneratorPhysValMonitoringTool::fillHistograms ( )
virtual

An inheriting class should either override this function or fillHists().

Reimplemented from ManagedMonitorToolBase.

Definition at line 78 of file GeneratorPhysValMonitoringTool.cxx.

79  {
80 
81  const EventContext& ctx = Gaudi::Hive::currentContext();
83 
86 
87  const xAOD::TruthParticleContainer *TruthParticles(nullptr);
88  if (!TruthParticles)
89  {
90  TruthParticles = evtStore()->tryConstRetrieve<xAOD::TruthParticleContainer>("TruthParticles");
91  }
92 
93  const std::vector< TLorentzVector > SelectedGeneratorLevel = m_GeneratorSelector->GetGeneratorLevel(TruthParticles);
94  const std::vector< TLorentzVector > SelectedSimulationLevel = m_GeneratorSelector->GetSimulationLevel(TruthParticles);
95 
96 
97  for (const auto &particle : *TruthParticles)
98  {
99 
100  if (particle->charge()){
102  }
103 
105 
106  const xAOD::TruthVertex* vtx = particle->prodVtx();
107  if (vtx) {
109  }
110  }
111 
112  m_number_GeneratorLevel->Fill((double)SelectedGeneratorLevel.size());
113  m_number_SimulationLevel->Fill((double)SelectedSimulationLevel.size());
114  m_GeneratorLevelPlots.fill(SelectedGeneratorLevel);
115  m_SimulationLevelPlots.fill(SelectedSimulationLevel);
116 
117  m_number->Fill((double)TruthParticles->size());
118  return StatusCode::SUCCESS;
119  }

◆ fillHists()

StatusCode ManagedMonitorToolBase::fillHists ( )
virtualinherited

Calls fillHists( bool, bool, bool ); if an eventBlock,lumiBlock, or run has turned over, calls procHists( bool, bool, bool ) and bookHists( bool, bool, bool ).

Implements IMonitorToolBase.

Reimplemented in TileRawChannelMonTool, and TileDigitsMonTool.

Definition at line 791 of file ManagedMonitorToolBase.cxx.

793 {
794 
797  msg(MSG::WARNING) << "ManagedMonitorToolBase::initialize() never called from reimplementation!" << endmsg;
798  }
799 
800 
801  bool isNewEventsBlock = ( m_procNEventsProp > 0 && ((m_nEvents % m_procNEventsProp) == 1) && m_haveClearedLastEventBlock );
802  if (isNewEventsBlock) m_haveClearedLastEventBlock = false;
803 
804  m_newLowStat = false;
805  m_newLumiBlock = false;
806  m_newRun = false;
807  newLowStat = false;
808  newLumiBlock = false;
809  newRun = false;
810 
811  m_newLowStatInterval = false;
812  m_newMedStatInterval = false;
813  m_newHigStatInterval = false;
814  newLowStatInterval = false;
815  newMedStatInterval = false;
816  newHigStatInterval = false;
817 
818  m_useTrigger = ( (m_triggerChainProp != "" || m_triggerGroupProp != "") && (!m_trigDecTool.empty()) );
819 
820  if( m_manager != 0 ) {
823  newLumiBlock = m_newLumiBlock;
824  newRun = m_newRun;
825 
826  if(m_newRun) {
827  m_newLumiBlock = true;
828  newLumiBlock = m_newLumiBlock;
829  isNewEventsBlock = true;
830  }
831 
832  m_newEventsBlock = isNewEventsBlock;
833  newEventsBlock = m_newEventsBlock;
834 
835  if( m_newLumiBlock ) {
836  // check if a new LB interval has started
837  // lowest lumiBlockNumber() is 1
838  // m_lastLowStatInterval is -1 initially
839  int currentLB = m_manager->lumiBlockNumber();
840  int LBsLowStat = m_manager->getLBsLowStat();
841  int LBsMedStat = m_manager->getLBsMedStat();
842  int LBsHigStat = m_manager->getLBsHigStat();
843 
844  if( LBsLowStat*LBsMedStat*LBsHigStat == 0) {
845  msg(MSG::WARNING) << "zero LBs requested for interval" << endmsg;
846  }
847  else {
848  if( ((currentLB-1)/LBsLowStat) != m_lastLowStatInterval ) m_newLowStatInterval = true;
849  if( ((currentLB-1)/LBsMedStat) != m_lastMedStatInterval ) m_newMedStatInterval = true;
850  if( ((currentLB-1)/LBsHigStat) != m_lastHigStatInterval ) m_newHigStatInterval = true;
851  newLowStatInterval = m_newLowStatInterval;
852  newMedStatInterval = m_newHigStatInterval;
853  newHigStatInterval = m_newHigStatInterval;
854  }
855  }
856 
857  // Allow inheriting classes the option of using the lastLumiBloc/lastRun values
858  // before updating them
859  }
860 
861 
862  StatusCode sc0( StatusCode::SUCCESS );
863  StatusCode sc1( StatusCode::SUCCESS );
864  StatusCode sc2( StatusCode::SUCCESS );
865  StatusCode sc3( StatusCode::SUCCESS );
866 
867  // Set end of LowStat, LumiBlock and Run variables
868  // These are needed to be used in procHistograms().
873  endOfEventsBlock = m_newEventsBlock;
874  endOfLowStat = m_newLowStatInterval;
875  endOfLumiBlock = m_newLumiBlock;
876  endOfRun = m_newRun;
877 
878  // just duplicates m_newLowStatInterval
880  newLowStat = m_newLowStatInterval;
881 
883  ATH_MSG_DEBUG("Interval transition processing");
884  // Process histograms from the previous lumiBlock/run
885  if( m_nEvents != 1 ) {
887  sc0 = procHistograms();
889  }
890  // Re-book new histograms
892 
894  sc1 = bookHistograms();
896  } else {
897  std::vector<Interval_t> intervals_to_process;
898  if (m_newEventsBlock) intervals_to_process.push_back(eventsBlock);
899  if (m_newLumiBlock) intervals_to_process.push_back(lumiBlock);
900  if (m_newLowStatInterval) intervals_to_process.push_back(lowStat);
901  if (m_newRun) intervals_to_process.push_back(run);
902  for (const auto interval: intervals_to_process) {
907  }
908  }
909  for (const auto& interval: std::vector<Interval_t>{ eventsBlock, lumiBlock, lowStat, run }) {
910  for (const auto& it: m_templateHistograms[interval]) {
911  // is histogram too small in x axis for LB range?
912  if (it.m_group.histo_mgmt() == ATTRIB_X_VS_LB) {
913  //ATH_MSG_WARNING("We are rebinning for " << it.m_templateHist->GetName());
914  while ( it.m_templateHist->GetXaxis()->GetXmax() <= AthenaMonManager::lumiBlockNumber() ) {
915  it.m_templateHist->LabelsInflate("X");
916  }
917  }
918  }
919  for (auto& it: m_templateEfficiencies[interval]) {
920  if (it.m_group.histo_mgmt() == ATTRIB_X_VS_LB) {
921  // get the underlying passed and total TH1's from the TEfficiency
922  TH1* passedHist = it.m_templateHist->GetCopyPassedHisto();
923  TH1* totalHist = it.m_templateHist->GetCopyTotalHisto();
924  // inflate them until they exceed the lumi-block number
925  while (passedHist->GetXaxis()->GetXmax() <= AthenaMonManager::lumiBlockNumber() ) {
926  passedHist->LabelsInflate("X");
927  totalHist->LabelsInflate("X");
928  }
929  // Replace them in the TEfficiency. First one has force ("f") option, since the
930  // histograms will not be consistent. This is corrected in the next line, so we
931  // do check for consistency then.
932  it.m_templateHist->SetPassedHistogram(*passedHist, "f");
933  it.m_templateHist->SetTotalHistogram(*totalHist, " ");
934  delete passedHist; // not owned by THistSvc, so need to be deleted.
935  delete totalHist;
936  }
937  }
938  }
939 
940  if (auto streamname = dynamic_cast<OfflineStream*>(streamNameFunction())) {
941  streamname->updateRunLB();
942  }
943 
944  sc3 = bookHistogramsRecurrent( );
945 
947 
948  if (m_manager->forkedProcess()) {
949  ATH_MSG_INFO("Child process: Resetting all " << m_lwhists.size() << " LW Histograms");
950  for (LWHist* h : m_lwhists) {
951  h->Reset();
952  }
953  }
954  }//end if new RUN/LB/Block
955 
956  // check filters
957  bool filterresult(true);
958  if (! m_DQFilterTools.empty()) {
959  ToolHandleArray<IDQFilterTool>::const_iterator ifilter(m_DQFilterTools.begin()), filterend(m_DQFilterTools.end());
960  for (; filterresult && (ifilter != filterend);
961  ++ifilter) {
962  filterresult = (filterresult && (*ifilter)->accept());
963  }
964  }
965 
966 
967  // ...and fill as normal
968  if(filterresult &&
969  (!m_useTrigger
972  ATH_MSG_DEBUG("Passed trigger, presumably");
974  fillHistograms().ignore();
977  ++m_nEvents;
978  } else { ATH_MSG_DEBUG("Failed trigger, presumably"); }
979 
981  if( m_newLumiBlock && (m_nEventsIgnoreTrigger != 1) ) {
982  ++m_nLumiBlocks;
983  }
984  if( m_manager != 0 ) {
986  if( m_newLumiBlock ) {
988 
989  int LBsLowStat = m_manager->getLBsLowStat();
990  int LBsMedStat = m_manager->getLBsMedStat();
991  int LBsHigStat = m_manager->getLBsHigStat();
992  if( LBsLowStat*LBsMedStat*LBsHigStat > 0) {
996  }
997  }
998  }
999 
1000  return StatusCode::SUCCESS;
1001 }

◆ finalHists()

StatusCode ManagedMonitorToolBase::finalHists ( )
virtualinherited

Calls procHists( true, true, true ).

Implements IMonitorToolBase.

Reimplemented in TileRawChannelMonTool, TileDigitsMonTool, and TileCellNoiseMonTool.

Definition at line 1332 of file ManagedMonitorToolBase.cxx.

1334 {
1335 
1336  // This assumes that the end of a file will naturally end a run, which is not always true.
1337  // A merging application run afterwards should be able to put parts of a run together.
1338  if( m_nEvents != 1 ) {
1340 
1341  // Set end flags for the LowStat, LumiBlock and Run variables.
1342  // This is needed to be used in the procHistograms method below.
1343  m_endOfEventsBlock = true;
1344  m_endOfLowStat = true;
1345  m_endOfLumiBlock = true;
1346  m_endOfRun = true;
1347  endOfEventsBlock = true;
1348  endOfLowStat = true;
1349  endOfLumiBlock = true;
1350  endOfRun = true;
1351 
1353 
1354 /*
1355  StatusCode sc1( StatusCode::SUCCESS );
1356 
1357 #if 0
1358  for (const auto interval: m_supportedIntervalsForRebooking) {
1359  //sc1 = regManagedHistograms(m_templateHistograms[interval], false);
1360  //sc1 = regManagedGraphs(m_templateGraphs[interval], false);
1361  //sc1 = regManagedTrees(m_templateTrees[interval], false);
1362 
1363  // Yura: commented out when fixing online environment
1364  //sc1 = regManagedLWHistograms(m_templateLWHistograms[interval], false, true);
1365  }
1366 */
1367 
1369  return sc;
1370  }
1371  return StatusCode::SUCCESS;
1372 }

◆ get_nEvents()

unsigned int ManagedMonitorToolBase::get_nEvents ( ) const
inlineprotectedinherited

Definition at line 754 of file ManagedMonitorToolBase.h.

754  {
755  return m_nEvents;
756  }

◆ get_procNEventsProp()

long ManagedMonitorToolBase::get_procNEventsProp ( ) const
inlineprotectedinherited

Definition at line 758 of file ManagedMonitorToolBase.h.

758  {
759  return m_procNEventsProp;
760  }

◆ getHist() [1/6]

StatusCode ManagedMonitorToolBase::getHist ( LWHist *&  h,
const std::string &  hName,
const MonGroup group 
)
virtualinherited

Definition at line 1613 of file ManagedMonitorToolBase.cxx.

1614 {
1615  h = 0;
1616  std::string streamName = streamNameFunction()->getStreamName( this, group, hName );
1618  for (;it!=itE;++it) {
1620  h = *it;
1621  return StatusCode::SUCCESS;
1622  }
1623  }
1624  return StatusCode::FAILURE;
1625 }

◆ getHist() [2/6]

StatusCode ManagedMonitorToolBase::getHist ( LWHist *&  h,
const std::string &  hName,
const std::string &  system,
Interval_t  interval 
)
virtualinherited

Definition at line 1605 of file ManagedMonitorToolBase.cxx.

1607 {
1608  MonGroup group( this, system, interval );
1609  return getHist( h, hName, group );
1610 }

◆ getHist() [3/6]

StatusCode ManagedMonitorToolBase::getHist ( TH1 *&  h,
const std::string &  hName,
const MonGroup group 
)
virtualinherited

Returns a TH1 via the pointer passed as the first argument.

The histogram name, without the leading path or stream name, must be given as the second argument.

Definition at line 1597 of file ManagedMonitorToolBase.cxx.

1599 {
1600  std::string streamName = streamNameFunction()->getStreamName( this, group, hName );
1601  return m_THistSvc->getHist( streamName, h );
1602 }

◆ getHist() [4/6]

StatusCode ManagedMonitorToolBase::getHist ( TH1 *&  h,
const std::string &  hName,
const std::string &  system,
Interval_t  interval 
)
virtualinherited

Returns a TH1 via the pointer passed as the first argument.

The histogram name, without the leading path or stream name, must be given as the second argument.

Definition at line 1587 of file ManagedMonitorToolBase.cxx.

1590 {
1591  MonGroup group( this, system, interval );
1592  return getHist( h, hName, group );
1593 }

◆ getHist() [5/6]

StatusCode ManagedMonitorToolBase::getHist ( TH2 *&  h,
const std::string &  hName,
const MonGroup group 
)
virtualinherited

Returns a TH2 via the pointer passed as the first argument.

The histogram name, without the leading path or stream name, must be given as the second argument.

Definition at line 1639 of file ManagedMonitorToolBase.cxx.

1641 {
1642  std::string streamName = streamNameFunction()->getStreamName( this, group, hName );
1643  return m_THistSvc->getHist( streamName, h );
1644 }

◆ getHist() [6/6]

StatusCode ManagedMonitorToolBase::getHist ( TH2 *&  h,
const std::string &  hName,
const std::string &  system,
Interval_t  interval 
)
virtualinherited

Returns a TH2 via the pointer passed as the first argument.

The histogram name, without the leading path or stream name, must be given as the second argument.

Definition at line 1629 of file ManagedMonitorToolBase.cxx.

1632 {
1633  MonGroup group( this, system, interval );
1634  return getHist( h, hName, group );
1635 }

◆ getNewStreamNameFcn()

ManagedMonitorToolBase::StreamNameFcn * ManagedMonitorToolBase::getNewStreamNameFcn ( ) const
protectedvirtualinherited

Definition at line 2386 of file ManagedMonitorToolBase.cxx.

2388 {
2389  StreamNameFcn* fcn(0);
2390 
2391  switch( m_environment ) {
2393  fcn = new NoOutputStream();
2394  break;
2396  fcn = new OnlineStream();
2397  break;
2399  fcn = new DefaultStream( m_fileKey );
2400  break;
2404  case AthenaMonManager::AOD:
2406  default:
2407  fcn = new OfflineStream( m_fileKey, m_dataType, m_environment );
2408  }
2409 
2410  return fcn;
2411 }

◆ initialize()

StatusCode GeneratorPhysVal::GeneratorPhysValMonitoringTool::initialize ( )
virtual

Reimplemented from ManagedMonitorToolBase.

Definition at line 41 of file GeneratorPhysValMonitoringTool.cxx.

42  {
43  ATH_MSG_INFO("Initializing " << name() << "...");
46 
47  return StatusCode::SUCCESS;
48  }

◆ inputHandles()

virtual std::vector<Gaudi::DataHandle*> AthCommonDataStore< AthCommonMsg< AlgTool > >::inputHandles ( ) const
overridevirtualinherited

Return this algorithm's input handles.

We override this to include handle instances from key arrays if they have not yet been declared. See comments on updateVHKA.

◆ interfaceID()

static const InterfaceID& IMonitorToolBase::interfaceID ( )
inlinestaticinherited

Definition at line 29 of file IMonitorToolBase.h.

29 { return IID_IMonitorToolBase; }

◆ intervalEnumToString()

std::string ManagedMonitorToolBase::intervalEnumToString ( Interval_t  interval)
staticinherited

Converts a LevelOfDetail_t to a string of the same name.

Converts a string to the corresponding LevelOfDetail_t. Converts a Interval_t to a string of the same name.

Definition at line 587 of file ManagedMonitorToolBase.cxx.

589 {
590  std::string str("file");
591 
592  switch( interval ) {
593  case all:
594  str = "all";
595  break;
596  case fill:
597  str = "fill";
598  break;
599  case run:
600  str = "run";
601  break;
602  case lowStat:
603  str = "lowStat";
604  break;
605  case medStat:
606  str = "medStat";
607  break;
608  case higStat:
609  str = "higStat";
610  break;
611  case lumiBlock:
612  str = "lumiBlock";
613  break;
614  case eventsBlock:
615  str = "eventsBlock";
616  break;
617  case file:
618  str = "file";
619  break;
620  default:
621  str = "unknown";
622  }
623 
624  return str;
625 }

◆ intervalStringToEnum()

ManagedMonitorToolBase::Interval_t ManagedMonitorToolBase::intervalStringToEnum ( const std::string &  str)
staticinherited

Converts a string to the corresponding Interval_t.

Definition at line 629 of file ManagedMonitorToolBase.cxx.

631 {
632  std::string lcstr( strToLower(str) );
633 
634  if( lcstr == "all" )
635  return all;
636  else if( lcstr == "fill" )
637  return fill;
638  else if( lcstr == "run" )
639  return run;
640  else if( lcstr == "lowStat" )
641  return lowStat;
642  else if( lcstr == "medStat" )
643  return medStat;
644  else if( lcstr == "higStat" )
645  return higStat;
646  else if( lcstr == "lumiBlock" )
647  return lumiBlock;
648  else if( lcstr == "eventsBlock" )
649  return eventsBlock;
650  else if( lcstr == "file" )
651  return file;
652 
653  if( Imp::s_svcLocator ) {
654  SmartIF<IMessageSvc> ms{Imp::s_svcLocator.load()->service( "MessageSvc" )};
655  if( ms.isValid() ) {
656  MsgStream log( ms, "ManagedMonitorToolBase::intervalStringToEnum()" );
657  log << MSG::WARNING << "Unknown ManagedMonitorToolBase::Interval_t \""
658  << str << "\", returning \"file\"" << endmsg;
659  }
660  }
661 
662  return file;
663 }

◆ lbAverageInteractionsPerCrossing()

float ManagedMonitorToolBase::lbAverageInteractionsPerCrossing ( const EventContext &  ctx = Gaudi::Hive::currentContext()) const
virtualinherited

Average mu, i.e.

<mu>

Definition at line 1922 of file ManagedMonitorToolBase.cxx.

1924 {
1925  if (!m_lumiDataKey.empty()) {
1927  return lumi->lbAverageInteractionsPerCrossing();
1928  } else {
1929  //ATH_MSG_FATAL("! Luminosity tool has been disabled ! lbAverageInteractionsPerCrossing() can't work properly! ");
1930  ATH_MSG_DEBUG("Warning: lbAverageInteractionsPerCrossing() - luminosity tools are not retrieved or turned on (i.e. EnableLumi = False)");
1931  return -1.0;
1932  }
1933  // not reached
1934 }

◆ lbAverageLivefraction()

float ManagedMonitorToolBase::lbAverageLivefraction ( const EventContext &  ctx = Gaudi::Hive::currentContext()) const
virtualinherited

Average luminosity livefraction.

Definition at line 1991 of file ManagedMonitorToolBase.cxx.

1993 {
1995  return 1.0;
1996 
1999  return live->lbAverageLiveFraction();
2000  } else {
2001  //ATH_MSG_FATAL("! Luminosity tool has been disabled ! lbAverageLivefraction() can't work properly! ");
2002  ATH_MSG_DEBUG("Warning: lbAverageLivefraction() - luminosity not availble (i.e. EnableLumi = False)");
2003  return -1.0;
2004  }
2005  // not reached
2006 }

◆ lbAverageLuminosity()

float ManagedMonitorToolBase::lbAverageLuminosity ( const EventContext &  ctx = Gaudi::Hive::currentContext()) const
virtualinherited

Average luminosity (in ub-1 s-1 => 10^30 cm-2 s-1)

Definition at line 1958 of file ManagedMonitorToolBase.cxx.

1960 {
1961  if (!m_lumiDataKey.empty()) {
1963  return lumi->lbAverageLuminosity();
1964  } else {
1965  //ATH_MSG_FATAL("! Luminosity tool has been disabled ! lbAverageLuminosity() can't work properly! ");
1966  ATH_MSG_DEBUG("Warning: lbAverageLuminosity() - luminosity tools are not retrieved or turned on (i.e. EnableLumi = False)");
1967  return -1.0;
1968  }
1969  // not reached
1970 }

◆ lbDuration()

double ManagedMonitorToolBase::lbDuration ( const EventContext &  ctx = Gaudi::Hive::currentContext()) const
virtualinherited

Luminosity block time (in seconds)

Definition at line 2045 of file ManagedMonitorToolBase.cxx.

2047 {
2049  return m_defaultLBDuration;
2050  }
2051  if (!m_lbDurationDataKey.empty()) {
2053  return dur->lbDuration();
2054  } else {
2055  //ATH_MSG_FATAL("! Luminosity tool has been disabled ! lbDuration() can't work properly! ");
2056  ATH_MSG_DEBUG("Warning: lbDuration() - luminosity tools are not retrieved or turned on (i.e. EnableLumi = False)");
2057  return m_defaultLBDuration;
2058  }
2059  // not reached
2060 }

◆ lbInteractionsPerCrossing()

float ManagedMonitorToolBase::lbInteractionsPerCrossing ( const EventContext &  ctx = Gaudi::Hive::currentContext()) const
virtualinherited

Instantaneous number of interactions, i.e.

mu

Definition at line 1938 of file ManagedMonitorToolBase.cxx.

1940 {
1941  if (!m_lumiDataKey.empty()) {
1943  float muToLumi = lumi->muToLumi();
1944  if (muToLumi > 0) {
1945  return lumi->lbLuminosityPerBCIDVector().at (ctx.eventID().bunch_crossing_id()) / muToLumi;
1946  }
1947  return 0;
1948  } else {
1949  //ATH_MSG_FATAL("! Luminosity tool has been disabled ! lbInteractionsPerCrossing() can't work properly! ");
1950  ATH_MSG_DEBUG("Warning: lbInteractionsPerCrossing() - luminosity tools are not retrieved or turned on (i.e. EnableLumi = False)");
1951  return -1.0;
1952  }
1953  // not reached
1954 }

◆ lbLuminosityPerBCID()

float ManagedMonitorToolBase::lbLuminosityPerBCID ( const EventContext &  ctx = Gaudi::Hive::currentContext()) const
virtualinherited

Instantaneous luminosity.

Definition at line 1974 of file ManagedMonitorToolBase.cxx.

1976 {
1977  if (!m_lumiDataKey.empty()) {
1979  return lumi->lbLuminosityPerBCIDVector().at (ctx.eventID().bunch_crossing_id());
1980  } else {
1981  //ATH_MSG_FATAL("! Luminosity tool has been disabled ! lbLuminosityPerBCID() can't work properly! ");
1982  ATH_MSG_DEBUG("Warning: lbLuminosityPerBCID() - luminosity tools are not retrieved or turned on (i.e. EnableLumi = False)");
1983  return -1.0;
1984  }
1985  // not reached
1986 }

◆ lbLumiWeight()

double ManagedMonitorToolBase::lbLumiWeight ( const EventContext &  ctx = Gaudi::Hive::currentContext()) const
virtualinherited

Average Integrated Luminosity Live Fraction.

Definition at line 2029 of file ManagedMonitorToolBase.cxx.

2031 {
2032  if (!m_lumiDataKey.empty()) {
2033  return (lbAverageLuminosity(ctx)*lbDuration(ctx))*lbAverageLivefraction(ctx);
2034  } else{
2035  //ATH_MSG_FATAL("! Luminosity tool has been disabled ! lbLumiWeight() can't work properly! ");
2036  ATH_MSG_DEBUG("Warning: lbLumiWeight() - luminosity tools are not retrieved or turned on (i.e. EnableLumi = False)");
2037  return -1.0;
2038  }
2039  // not reached
2040 }

◆ livefractionPerBCID()

float ManagedMonitorToolBase::livefractionPerBCID ( const EventContext &  ctx = Gaudi::Hive::currentContext()) const
virtualinherited

Livefraction per bunch crossing ID.

Definition at line 2010 of file ManagedMonitorToolBase.cxx.

2012 {
2014  return 1.0;
2015 
2018  return live->l1LiveFractionVector().at (ctx.eventID().bunch_crossing_id());
2019  } else {
2020  //ATH_MSG_FATAL("! Luminosity tool has been disabled ! livefractionPerBCID() can't work properly! ");
2021  ATH_MSG_DEBUG("Warning: livefractionPerBCID() - luminosity retrieved available (i.e. EnableLumi = False)");
2022  return -1.0;
2023  }
2024  // not reached
2025 }

◆ MMTB_DEPRECATED() [1/11]

ManagedMonitorToolBase::MMTB_DEPRECATED ( endOfEventsBlock  )
inherited

◆ MMTB_DEPRECATED() [2/11]

ManagedMonitorToolBase::MMTB_DEPRECATED ( endOfLowStat  )
inherited

◆ MMTB_DEPRECATED() [3/11]

ManagedMonitorToolBase::MMTB_DEPRECATED ( endOfLumiBlock  )
inherited

◆ MMTB_DEPRECATED() [4/11]

ManagedMonitorToolBase::MMTB_DEPRECATED ( endOfRun  )
inherited

◆ MMTB_DEPRECATED() [5/11]

ManagedMonitorToolBase::MMTB_DEPRECATED ( newEventsBlock  )
inherited

◆ MMTB_DEPRECATED() [6/11]

ManagedMonitorToolBase::MMTB_DEPRECATED ( newHigStatInterval  )
inherited

◆ MMTB_DEPRECATED() [7/11]

ManagedMonitorToolBase::MMTB_DEPRECATED ( newLowStat  )
inherited

◆ MMTB_DEPRECATED() [8/11]

ManagedMonitorToolBase::MMTB_DEPRECATED ( newLowStatInterval  )
inherited

◆ MMTB_DEPRECATED() [9/11]

ManagedMonitorToolBase::MMTB_DEPRECATED ( newLumiBlock  )
inherited

◆ MMTB_DEPRECATED() [10/11]

ManagedMonitorToolBase::MMTB_DEPRECATED ( newMedStatInterval  )
inherited

◆ MMTB_DEPRECATED() [11/11]

ManagedMonitorToolBase::MMTB_DEPRECATED ( newRun  )
inherited

◆ msg() [1/2]

MsgStream& AthCommonMsg< AlgTool >::msg ( ) const
inlineinherited

Definition at line 24 of file AthCommonMsg.h.

24  {
25  return this->msgStream();
26  }

◆ msg() [2/2]

MsgStream& AthCommonMsg< AlgTool >::msg ( const MSG::Level  lvl) const
inlineinherited

Definition at line 27 of file AthCommonMsg.h.

27  {
28  return this->msgStream(lvl);
29  }

◆ msgLvl()

bool AthCommonMsg< AlgTool >::msgLvl ( const MSG::Level  lvl) const
inlineinherited

Definition at line 30 of file AthCommonMsg.h.

30  {
31  return this->msgLevel(lvl);
32  }

◆ newEventsBlockFlag()

bool ManagedMonitorToolBase::newEventsBlockFlag ( ) const
inlineprotectedinherited

Definition at line 855 of file ManagedMonitorToolBase.h.

855 { return m_newEventsBlock; }

◆ newHigStatIntervalFlag()

bool ManagedMonitorToolBase::newHigStatIntervalFlag ( ) const
inlineprotectedinherited

Definition at line 851 of file ManagedMonitorToolBase.h.

851 { return m_newHigStatInterval; }

◆ newLowStatFlag()

bool ManagedMonitorToolBase::newLowStatFlag ( ) const
inlineprotectedinherited

Definition at line 852 of file ManagedMonitorToolBase.h.

852 { return m_newLowStat; }

◆ newLowStatIntervalFlag()

bool ManagedMonitorToolBase::newLowStatIntervalFlag ( ) const
inlineprotectedinherited

Flag functions allowing clients to determine when to book new and process old histograms; values are updated by fillHists() based on counting lumiBlocks, and are correctly set when fillHistograms(), bookHistograms() and procHistograms() are called.

Definition at line 849 of file ManagedMonitorToolBase.h.

849 { return m_newLowStatInterval; }

◆ newLumiBlockFlag()

bool ManagedMonitorToolBase::newLumiBlockFlag ( ) const
inlineprotectedinherited

Definition at line 853 of file ManagedMonitorToolBase.h.

853 { return m_newLumiBlock; }

◆ newMedStatIntervalFlag()

bool ManagedMonitorToolBase::newMedStatIntervalFlag ( ) const
inlineprotectedinherited

Definition at line 850 of file ManagedMonitorToolBase.h.

850 { return m_newMedStatInterval; }

◆ newRunFlag()

bool ManagedMonitorToolBase::newRunFlag ( ) const
inlineprotectedinherited

Definition at line 854 of file ManagedMonitorToolBase.h.

854 { return m_newRun; }

◆ outputHandles()

virtual std::vector<Gaudi::DataHandle*> AthCommonDataStore< AthCommonMsg< AlgTool > >::outputHandles ( ) const
overridevirtualinherited

Return this algorithm's output handles.

We override this to include handle instances from key arrays if they have not yet been declared. See comments on updateVHKA.

◆ parseList()

StatusCode ManagedMonitorToolBase::parseList ( const std::string &  line,
std::vector< std::string > &  result 
)
protectedinherited

Definition at line 2342 of file ManagedMonitorToolBase.cxx.

2343  {
2344  std::string item;
2345  std::stringstream ss(line);
2346 
2347  if (msgLvl(MSG::DEBUG)) msg(MSG::DEBUG) << "ManagedMonitorToolBase::parseList:";
2348 
2349  while ( std::getline(ss, item, ',') ) {
2350  std::stringstream iss(item); // remove
2351  iss >> item; // whitespace
2352  if (msgLvl(MSG::DEBUG)) msg(MSG::DEBUG) << " " << item;
2353  result.push_back(item);
2354  }
2355 
2356  msg(MSG::DEBUG) << endmsg;
2357  return StatusCode::SUCCESS;
2358 }

◆ preSelector()

bool ManagedMonitorToolBase::preSelector ( )
virtualinherited

Implements IMonitorToolBase.

Definition at line 1910 of file ManagedMonitorToolBase.cxx.

1912 {
1913  if( m_preScaleProp > 1 ) {
1914  return ( (m_nEvents % m_preScaleProp) == 1 );
1915  }
1916  return true;
1917 }

◆ procHistograms()

StatusCode GeneratorPhysVal::GeneratorPhysValMonitoringTool::procHistograms ( )
virtual

An inheriting class should either override this function or finalHists().

Reimplemented from ManagedMonitorToolBase.

Definition at line 121 of file GeneratorPhysValMonitoringTool.cxx.

122  {
123  ATH_MSG_INFO("Finalising hists " << name() << "...");
130  return StatusCode::SUCCESS;
131 
132  }

◆ regEfficiency()

StatusCode ManagedMonitorToolBase::regEfficiency ( TEfficiency *  e,
const MonGroup group 
)
virtualinherited

Registers a TEfficiency to be included in the output stream using logical parameters that describe the plot.

Definition at line 1647 of file ManagedMonitorToolBase.cxx.

1647  {
1648  if (!e)
1649  return StatusCode::FAILURE;
1650 
1651  TGraph* g = reinterpret_cast<TGraph*>(e);
1652  std::string name = e->GetName();
1653 
1654  // MANAGED
1655  if ( group.histo_mgmt() != ATTRIB_UNMANAGED ) {
1656  // warn about not using merge algorithms
1657  if (group.histo_mgmt() == ATTRIB_X_VS_LB && group.merge().empty()) {
1658  ATH_MSG_WARNING("HEY! Attempting to register "<<name<<" as a per-LB histogram, but not setting the merge algorithm! Use \"merge\", at least.");
1659  }
1660  // add the efficiency to rebooking vector
1661  if (m_supportedIntervalsForRebooking.count(group.interval())) {
1662  m_templateEfficiencies[group.interval()].push_back( MgmtParams<TEfficiency>(e, group) );
1663  } else {
1664  ATH_MSG_ERROR("Attempt to book managed graph " << name << " with invalid interval type " << intervalEnumToString(group.interval()));
1665  return StatusCode::FAILURE;
1666  }
1667 
1668  MonGroup group_unmanaged( this, group.system(), group.interval(), ATTRIB_UNMANAGED, group.chain(), group.merge());
1669  std::string streamName = streamNameFunction()->getStreamName( this, group_unmanaged, name, false );
1670  registerMetadata(streamName, name, group).ignore();
1671  return m_THistSvc->regGraph( streamName, g );
1672  } else {
1673  // UNMANAGED
1674  if( m_manager != 0 ) {
1675  std::string genericName = NoOutputStream().getStreamName( this, group, name );
1676  m_manager->writeAndDelete( genericName );
1677  m_manager->passOwnership( e, genericName );
1678  }
1679 
1680  std::string streamName = streamNameFunction()->getStreamName( this, group, name, false );
1682  if (smd != StatusCode::SUCCESS)
1683  return StatusCode::FAILURE;
1684 
1685  return m_THistSvc->regGraph( streamName, g );
1686  }
1687 }

◆ regGraph() [1/2]

StatusCode ManagedMonitorToolBase::regGraph ( TGraph *  g,
const MonGroup group 
)
virtualinherited

Registers a TGraph to be included in the output stream using logical parameters that describe the graph.

Definition at line 1701 of file ManagedMonitorToolBase.cxx.

1703 {
1704  if (!g)
1705  return StatusCode::FAILURE;
1706 
1707  // This part of the code deals with MANAGED type
1708  if ( group.histo_mgmt() != ATTRIB_UNMANAGED ) {
1709  // Create an unmanaged group based on the original MonGroup instance passed
1710  // This is needed because managed graph is presented as a number of unmanaged
1711  // graphs (one per each interval)
1712  MonGroup group_unmanaged( this, group.system(), group.interval(), ATTRIB_UNMANAGED, group.chain(), group.merge());
1713 
1714  if (m_supportedIntervalsForRebooking.count(group.interval())) {
1715  m_templateGraphs[group.interval()].push_back( MgmtParams<TGraph>(g, group_unmanaged) );
1716  } else {
1717  ATH_MSG_ERROR("Attempt to book managed graph " << g->GetName() << " with invalid interval type " << intervalEnumToString(group.interval()));
1718  return StatusCode::FAILURE;
1719  }
1720 
1721  std::string name = g->GetName();
1722  std::string streamName = streamNameFunction()->getStreamName( this, group_unmanaged, name, false );
1723  registerMetadata(streamName, name, group).ignore();
1724  return m_THistSvc->regGraph( streamName, g );
1725  //return m_THistSvc->regGraph( streamName );
1726  }
1727 
1728  // This part of the code deals with UNMANAGED type
1729  std::string gName = g->GetName();
1730 
1731  if( m_manager != 0 ) {
1732  std::string genericName = NoOutputStream().getStreamName( this, group, gName );
1733  m_manager->writeAndDelete( genericName );
1734  m_manager->passOwnership( g, genericName );
1735  }
1736 
1737  std::string streamName = streamNameFunction()->getStreamName( this, group, gName, false );
1738 
1740  if (smd != StatusCode::SUCCESS) return StatusCode::FAILURE;
1741 
1742  return m_THistSvc->regGraph( streamName, g );
1743 }

◆ regGraph() [2/2]

StatusCode ManagedMonitorToolBase::regGraph ( TGraph *  g,
const std::string &  system,
Interval_t  interval,
MgmtAttr_t  histo_mgmt = ATTRIB_MANAGED,
const std::string &  chain = "",
const std::string &  merge = "" 
)
virtualinherited

Registers a TGraph to be included in the output stream using logical parameters that describe the graph.

Definition at line 1691 of file ManagedMonitorToolBase.cxx.

1694 {
1695  MonGroup group( this, system, interval, histo_mgmt, chain, merge );
1696  return regGraph( g, group );
1697 }

◆ regHist() [1/4]

StatusCode ManagedMonitorToolBase::regHist ( LWHist h,
const MonGroup group 
)
virtualinherited

Definition at line 1521 of file ManagedMonitorToolBase.cxx.

1522 {
1523  // You may want to setROOTBackend to true in online environment
1524  //LWHistControls::setROOTBackend(true);
1525 
1526  if (!h)
1527  return StatusCode::FAILURE;
1528 
1529  if (!m_bookHistogramsInitial) {
1530  ATH_MSG_DEBUG("Yura: very first time");
1531  if ( group.histo_mgmt() != ATTRIB_UNMANAGED ) {
1532 
1533  ATH_MSG_DEBUG("Yura: we have managed histograms");
1534  if (m_supportedIntervalsForRebooking.count(group.interval())) {
1535  ATH_MSG_DEBUG(" Yura: adding histogram" << h->GetName());
1536  m_templateLWHistograms[group.interval()].push_back( MgmtParams<LWHist>(h, group) );
1537  } else {
1538  ATH_MSG_ERROR("Attempt to book managed histogram " << h->GetName() << " with invalid interval type " << intervalEnumToString(group.interval()));
1539  return StatusCode::FAILURE;
1540  }
1541  //return StatusCode::SUCCESS;
1542  }
1543  }
1544 
1545  //FIXME: Code copied more or less verbatim from above. Collect most code (espc. for streamname) in common helpers!!
1546  std::string hName = h->GetName();
1547 
1548  if( m_manager )
1549  {
1550  std::string genericName = NoOutputStream().getStreamName(this, group, hName );
1551  LWHistAthMonWrapper::setKey(h,genericName);
1552  LWHist* prevLWHist = m_manager->ownedLWHistOfKey(genericName);
1553  if (prevLWHist)
1554  {
1555  std::set<LWHist*>::iterator it = m_lwhists.find(prevLWHist);
1556  if (it!=m_lwhists.end())
1557  {
1558  if ( group.histo_mgmt() != ATTRIB_UNMANAGED ) {
1559  m_manager->writeAndResetLWHist( genericName, LWHistAthMonWrapper::streamName(prevLWHist) );
1560  } else {
1561  m_manager->writeAndDeleteLWHist( genericName, LWHistAthMonWrapper::streamName(prevLWHist) );
1562  }
1563  m_lwhists.erase(it);
1564  }
1565  }
1566  m_manager->passOwnership( h, genericName );
1567  }
1568  m_lwhists.insert(h);
1569 
1570  std::string streamName = streamNameFunction()->getStreamName( this, group, hName );
1572  registerMetadata(streamName, hName, group).ignore();
1573 
1574  //Delay registration with THistSvc (unless root backend):
1575  //m_lwhistMap.insert(std::pair<LWHist*,std::string>(h,streamName));
1576  if (h->usingROOTBackend())
1577  {
1578  h->setOwnsROOTHisto(false);//Since might end up with thist svc
1579  return m_THistSvc->regHist( streamName, h->getROOTHistBase() );
1580  }
1581 
1582  return StatusCode::SUCCESS;
1583 
1584 }

◆ regHist() [2/4]

StatusCode ManagedMonitorToolBase::regHist ( LWHist h,
const std::string &  system,
Interval_t  interval,
MgmtAttr_t  histo_mgmt = ATTRIB_MANAGED,
const std::string &  chain = "",
const std::string &  merge = "" 
)
virtualinherited

Support for lightweight histograms:

Definition at line 1514 of file ManagedMonitorToolBase.cxx.

1516 {
1517  MonGroup group( this, system, interval, histo_mgmt, chain, merge );
1518  return regHist( h, group );
1519 }

◆ regHist() [3/4]

StatusCode ManagedMonitorToolBase::regHist ( TH1 h,
const MonGroup group 
)
virtualinherited

Registers a TH1 (including TH2, TH3, and TProfile) to be included in the output stream using logical parameters that describe the histogram.

A histogram is passed via reference to a pointer.

Definition at line 1461 of file ManagedMonitorToolBase.cxx.

1463 {
1464 // ManagedMonitorToolBase_addHistStatistics(this,h);
1465 
1466  if (!h)
1467  return StatusCode::FAILURE;
1468 
1469  // This part of the code deals with MANAGED type
1470  if ( group.histo_mgmt() != ATTRIB_UNMANAGED ) {
1471  /*
1472  Create an unmanaged group based on the original MonGroup instance passed
1473  It is needed because managed histogram is presented as a number of unmanaged
1474  histograms (one per each interval)
1475  Update (PUEO) - I don't think it actually matters, and need to keep
1476  track of "proper" attribute for X_VS_LB
1477  */
1478 
1479  if (group.histo_mgmt() == ATTRIB_X_VS_LB && group.merge().empty()) {
1480  ATH_MSG_WARNING("HEY! You're attempting to register " << h->GetName() << " as a per-LB histogram, but you're not setting the merge algorithm! This is a SUPER-BAD idea! Use \"merge\", at least.");
1481  }
1482 
1483  if (m_supportedIntervalsForRebooking.count(group.interval())) {
1484  m_templateHistograms[group.interval()].push_back( MgmtParams<TH1>(h, group) );
1485  } else {
1486  ATH_MSG_ERROR("Attempt to book managed histogram " << h->GetName() << " with invalid interval type " << intervalEnumToString(group.interval()));
1487  return StatusCode::FAILURE;
1488  }
1489 
1490  std::string hName = h->GetName();
1491  MonGroup group_unmanaged( this, group.system(), group.interval(), ATTRIB_UNMANAGED, group.chain(), group.merge());
1492  std::string streamName = streamNameFunction()->getStreamName( this, group_unmanaged, hName, false );
1493  registerMetadata(streamName, hName, group).ignore();
1494  return m_THistSvc->regHist( streamName, h );
1495  }
1496 
1497  // This part of the code deals with UNMANAGED type
1498  std::string hName = h->GetName();
1499 
1500  if( m_manager != 0 ) {
1501  std::string genericName = NoOutputStream().getStreamName( this, group, hName );
1502  m_manager->writeAndDelete( genericName );
1503  m_manager->passOwnership( h, genericName );
1504  }
1505 
1506  std::string streamName = streamNameFunction()->getStreamName( this, group, hName, false );
1507 
1509  if (smd != StatusCode::SUCCESS) return StatusCode::FAILURE;
1510 
1511  return m_THistSvc->regHist( streamName, h );
1512 }

◆ regHist() [4/4]

StatusCode ManagedMonitorToolBase::regHist ( TH1 h,
const std::string &  system,
Interval_t  interval,
MgmtAttr_t  histo_mgmt = ATTRIB_MANAGED,
const std::string &  chain = "",
const std::string &  merge = "" 
)
virtualinherited

Registers a TH1 (including TH2, TH3, and TProfile) to be included in the output stream using logical parameters that describe the histogram.

Definition at line 1452 of file ManagedMonitorToolBase.cxx.

1455 {
1456  MonGroup group( this, system, interval, histo_mgmt, chain, merge );
1457  return regHist( h, group );
1458 }

◆ registerMetadata()

StatusCode ManagedMonitorToolBase::registerMetadata ( const std::string &  streamName,
const std::string &  hName,
const MonGroup group 
)
protectedinherited

Definition at line 1004 of file ManagedMonitorToolBase.cxx.

1006  {
1008  TTree* metadata(0);
1009  std::string mdStreamName( streamName );
1010  size_t found=mdStreamName.rfind('/');
1011 
1012  if ( found != std::string::npos )
1013  mdStreamName.replace( found, mdStreamName.length(), "/metadata" );
1014 
1015  MDMap_t::iterator i = m_metadataMap.find( mdStreamName );
1016  if( i == m_metadataMap.end() ) {
1017  metadata = new TTree( "metadata", "Monitoring Metadata" );
1018  if (! metadata) return StatusCode::FAILURE;
1019  StatusCode scmd = m_THistSvc->regTree( mdStreamName, metadata );
1020  if (scmd == StatusCode::FAILURE) return StatusCode::FAILURE;
1021  MDMap_t::value_type valToInsert( mdStreamName, new OutputMetadata(metadata) );
1022  i = m_metadataMap.insert( valToInsert ).first;
1023  }
1024 
1025  i->second->fill( hName, group.interval(), group.chain(), group.merge() );
1026  }
1027  return StatusCode::SUCCESS;
1028 }

◆ regManagedEfficiencies()

StatusCode ManagedMonitorToolBase::regManagedEfficiencies ( std::vector< MgmtParams< TEfficiency > > &  templateEfficiencies)
protectedinherited

Definition at line 1199 of file ManagedMonitorToolBase.cxx.

1199  {
1200  bool allIsOk = true;
1201  for( auto& it : templateEfficiencies ) {
1202  // get components of MgmtParams and copy efficiency
1203  MonGroup group = it.m_group;
1204  TEfficiency* theEfficiency = it.m_templateHist;
1205  TEfficiency* e = static_cast<TEfficiency*>(theEfficiency->Clone());
1206  int nbins = theEfficiency->GetTotalHistogram()->GetNbinsX();
1207  int xlow = theEfficiency->GetTotalHistogram()->GetXaxis()->GetXmin();
1208  int xhigh = theEfficiency->GetTotalHistogram()->GetXaxis()->GetXmax();
1209  e->SetBins(nbins,xlow,xhigh); // reset histogram
1210  std::string name = e->GetName();
1211 
1212  // make TGraph casts of TEfficiencies
1213  TGraph* theGraph = reinterpret_cast<TGraph*>(theEfficiency);
1214  TGraph* g = reinterpret_cast<TGraph*>(e);
1215 
1216  // Get the streamName for the previous interval
1217  std::string streamName = streamNameFunction()->getStreamName( this, group, name, true );
1218 
1219  // RE-REGISTER
1220  // 1) De-register the original graph with the THistSvc
1221  StatusCode sc1 = m_THistSvc->deReg( theGraph );
1222  if (sc1 == StatusCode::FAILURE) allIsOk = false;
1223  // 2) Fix THistSvc->deReg for TGraphs
1224  bool doneCleaning = false;
1225  std::string directoryName = streamNameFunction()->getDirectoryName( this, group, name, true );
1226  TSeqCollection *filelist=gROOT->GetListOfFiles();
1227  for (int i=0; i<filelist->GetEntries(); i++) {
1228  ATH_MSG_DEBUG( "List of files: " << filelist->At(i)->GetName());
1229  TFile* file = static_cast<TFile*>(filelist->At(i));
1230  StatusCode sc2 = THistSvc_deReg_fixTGraph(file, theGraph, directoryName);
1231  if (sc2 == StatusCode::SUCCESS) doneCleaning = true;
1232  }
1233  // 3) Check if TGraph fix has been applied successfully
1234  if (!doneCleaning) {
1235  ATH_MSG_ERROR("THistSvc_deReg_fixTGraph: failed to apply TGraph fix for the THist Svc!");
1236  allIsOk = false;
1237  }
1238  // 4) Register cloned histogram under previous interval streamName
1239  StatusCode sc3 = m_THistSvc->regGraph( streamName, g );
1240  if (sc3 == StatusCode::FAILURE)
1241  allIsOk = false;
1242 
1243  // get streamname for interval
1244  streamName = streamNameFunction()->getStreamName( this, group, name, false );
1245  // store metadata
1247  if (smd != StatusCode::SUCCESS) allIsOk = false;
1248  // Re-register the original graph
1249  StatusCode sc4 = m_THistSvc->regGraph( streamName, theGraph );
1250  if (sc4 == StatusCode::FAILURE) allIsOk = false;
1251  }
1252 
1253  if (!allIsOk) return StatusCode::FAILURE;
1254  return StatusCode::SUCCESS;
1255 }

◆ regManagedGraphs()

StatusCode ManagedMonitorToolBase::regManagedGraphs ( std::vector< MgmtParams< TGraph > > &  templateGraphs)
protectedinherited

Definition at line 1128 of file ManagedMonitorToolBase.cxx.

1130 {
1131  // See the description for the regManagedHistograms method
1132  bool allIsOk = true;
1133 
1134  for( std::vector< MgmtParams<TGraph> >::iterator it = templateGraphs.begin(); it != templateGraphs.end(); ++it ) {
1135  MonGroup group = (*it).m_group;
1136 
1137  // Get a handle to the graph
1138  TGraph* theGraph = (*it).m_templateHist;
1139 
1140  // Clone the graph
1141  TGraph* g = static_cast<TGraph*>(theGraph->Clone());
1142  theGraph->Set(0); // equivalent to Reset() for TH1
1143 
1144  // Get name
1145  std::string gName = g->GetName();
1146 
1147  // Get the streamName for the previous interval
1148  std::string streamName = streamNameFunction()->getStreamName( this, group, gName, true );
1149 
1150  // De-register the original graph with the THistSvc
1151  StatusCode sc1 = m_THistSvc->deReg( theGraph );
1152  if (sc1 == StatusCode::FAILURE)
1153  allIsOk = false;
1154 
1155  // *** begin ***
1156  // Fix THistSvc->deReg for TGraphs
1157  bool doneCleaning = false;
1158  std::string directoryName = streamNameFunction()->getDirectoryName( this, group, gName, true );
1159  TSeqCollection *filelist=gROOT->GetListOfFiles();
1160  for (int i=0; i<filelist->GetEntries(); i++) {
1161  ATH_MSG_DEBUG( "List of files: " << filelist->At(i)->GetName());
1162  TFile* file = static_cast<TFile*>(filelist->At(i));
1163  StatusCode sc2 = THistSvc_deReg_fixTGraph(file, theGraph, directoryName);
1164  if (sc2 == StatusCode::SUCCESS)
1165  doneCleaning = true;
1166  }
1167 
1168  // Check if TGraph fix has been applied successfully
1169  if (!doneCleaning) {
1170  ATH_MSG_ERROR("THistSvc_deReg_fixTGraph: failed to apply TGraph fix for the THist Svc!");
1171  allIsOk = false;
1172  }
1173  // *** end ***
1174 
1175  // Register clonned histogram under previous interval streamName
1176  StatusCode sc3 = m_THistSvc->regGraph( streamName, g );
1177  if (sc3 == StatusCode::FAILURE)
1178  allIsOk = false;
1179 
1180  // Get streamName for the current interval
1181  streamName = streamNameFunction()->getStreamName( this, group, gName, false );
1182  // Register metadata information with the current interval streamname
1184  if (smd != StatusCode::SUCCESS)
1185  allIsOk = false;
1186 
1187  // Re-register the original graph with the current interval streamName
1188  StatusCode sc4 = m_THistSvc->regGraph( streamName, theGraph );
1189  if (sc4 == StatusCode::FAILURE)
1190  allIsOk = false;
1191 
1192  }
1193 
1194  if (!allIsOk) return StatusCode::FAILURE;
1195 
1196  return StatusCode::SUCCESS;
1197 }

◆ regManagedHistograms()

StatusCode ManagedMonitorToolBase::regManagedHistograms ( std::vector< MgmtParams< TH1 > > &  templateHistograms)
protectedinherited

Definition at line 1031 of file ManagedMonitorToolBase.cxx.

1033 {
1034  // The method registers histograms with the THistSvc and saves them to file.
1035 
1036  // The funky business with registering and deregistering the histogram is needed
1037  // to get the correct directory when saving histograms. THistSvc deals with ROOT
1038  // to set up proper TDirectory, so we rely on it.
1039  // E.g.
1040  // m_THistSvc->regHist( streamName, h ): sets the correct TDirectory with streamName
1041  // m_THistSvc->deReg( h ) - deregister from THistSvc otherwise THistSvc will try to save it
1042  // at the end of execution
1043  // use passownership of the histogram and save it to file
1044  // m_manager->passOwnership( h, genericName );
1045  // m_manager->writeAndDelete( genericName );
1046  bool allIsOk = true;
1047 
1048  for( std::vector< MgmtParams<TH1> >::iterator it = templateHistograms.begin(); it != templateHistograms.end(); ++it ) {
1049  MonGroup& group = (*it).m_group;
1050 
1051  // Get a handle to the histogram
1052  TH1* theHist = (*it).m_templateHist;
1053 
1054  // Clone the histogram
1055  TH1* h = static_cast<TH1*>(theHist->Clone());
1056  theHist->Reset();
1057 
1058  // Get name
1059  std::string hName = h->GetName();
1060 
1061  // Get the streamName for the previous interval
1062  std::string streamName = streamNameFunction()->getStreamName( this, group, hName, true );
1063 
1064  // Register the histogram with the THistSvc
1065  StatusCode sc1 = m_THistSvc->deReg( theHist );
1066  if (sc1 == StatusCode::FAILURE) allIsOk = false;
1067 
1068  // Register clonned histogram under previous interval streamName
1069  StatusCode sc2 = m_THistSvc->regHist( streamName, h );
1070  if (sc2 == StatusCode::FAILURE) allIsOk = false;
1071 
1072  if( m_manager != 0 ) {
1073  std::string genericName = NoOutputStream().getStreamName( this, group, hName );
1074  m_manager->passOwnership( h, genericName );
1075  m_manager->writeAndDelete( genericName );
1076  }
1077 
1078  // Get streamName for the current interval
1079  streamName = streamNameFunction()->getStreamName( this, group, hName, false );
1080  // Register metadata information with the current interval streamname
1082  if (smd != StatusCode::SUCCESS) allIsOk = false;
1083 
1084  // Re-register the original histogram with the current interval streamName
1085  StatusCode sc3 = m_THistSvc->regHist( streamName, theHist );
1086  if (sc3 == StatusCode::FAILURE) allIsOk = false;
1087 
1088  }
1089 
1090  if (!allIsOk) return StatusCode::FAILURE;
1091 
1092  return StatusCode::SUCCESS;
1093 }

◆ regManagedLWHistograms()

StatusCode ManagedMonitorToolBase::regManagedLWHistograms ( std::vector< MgmtParams< LWHist > > &  templateLWHistograms)
protectedinherited

Definition at line 1313 of file ManagedMonitorToolBase.cxx.

1315 {
1316  StatusCode sc1;
1317 
1318  for( std::vector< MgmtParams<LWHist> >::iterator it = templateLWHistograms.begin(); it != templateLWHistograms.end(); ++it ) {
1319  // Get histogram group
1320  MonGroup group = (*it).m_group;
1321 
1322  // Get handle to the histogram
1323  LWHist* h = (*it).m_templateHist;
1324 
1325  sc1 = regHist(h, group);
1326  }
1327 
1328  return sc1;
1329 }

◆ regManagedTrees()

StatusCode ManagedMonitorToolBase::regManagedTrees ( std::vector< MgmtParams< TTree > > &  templateTrees)
protectedinherited

Definition at line 1259 of file ManagedMonitorToolBase.cxx.

1261 {
1262  // See the description for the regManagedHistograms method
1263  bool allIsOk = true;
1264 
1265  for( std::vector< MgmtParams<TTree> >::iterator it = templateTrees.begin(); it != templateTrees.end(); ++it ) {
1266  MonGroup group = (*it).m_group;
1267 
1268  // Get a handle to the original tree
1269  TTree* theTree = (*it).m_templateHist;
1270 
1271  // Clone the tree
1272  TTree* t = static_cast<TTree*>(theTree->Clone());
1273  theTree->Reset();
1274 
1275  // Dumping the tree
1276  std::string name = t->GetName();
1277 
1278  // Get the streamName for the previous interval
1279  std::string streamName = streamNameFunction()->getStreamName( this, group, name, true );
1280 
1281  // De-register original tree with the THistSvc
1282  StatusCode sc1 = m_THistSvc->deReg( theTree );
1283  if (sc1 == StatusCode::FAILURE) allIsOk = false;
1284 
1285  // Register clonned tree under previous interval streamName
1286  StatusCode sc2 = m_THistSvc->regTree( streamName, t );
1287  if (sc2 == StatusCode::FAILURE) allIsOk = false;
1288 
1289  if( m_manager != 0 ) {
1290  std::string genericName = NoOutputStream().getStreamName( this, group, name );
1291  m_manager->passOwnership( t, genericName );
1292  m_manager->writeAndDelete( genericName );
1293  }
1294 
1295  // Get streamName for the current interval
1296  streamName = streamNameFunction()->getStreamName( this, group, name, false );
1297  // Register metadata information with the current interval streamname
1299  if (smd != StatusCode::SUCCESS) allIsOk = false;
1300 
1301  // Re-register the original graph with the current interval streamName
1302  StatusCode sc3 = m_THistSvc->regTree( streamName, theTree );
1303  if (sc3 == StatusCode::FAILURE) allIsOk = false;
1304 
1305  }
1306 
1307  if (!allIsOk) return StatusCode::FAILURE;
1308 
1309  return StatusCode::SUCCESS;
1310 }

◆ regTree() [1/2]

StatusCode ManagedMonitorToolBase::regTree ( TTree *  t,
const MonGroup group 
)
virtualinherited

Registers a TTree to be included in the output stream using logical parameters that describe it.

Definition at line 1757 of file ManagedMonitorToolBase.cxx.

1759 {
1760 
1761  // This part of the code deals with MANAGED type
1762  if ( group.histo_mgmt() != ATTRIB_UNMANAGED ) {
1763  // Create an unmanaged group based on the original MonGroup instance passed
1764  // This is needed because managed tree is presented as a number of unmanaged
1765  // trees (one per each interval)
1766  MonGroup group_unmanaged( this, group.system(), group.interval(), ATTRIB_UNMANAGED, group.chain(), group.merge());
1767 
1768  if (m_supportedIntervalsForRebooking.count(group.interval())) {
1769  m_templateTrees[group.interval()].push_back( MgmtParams<TTree>(t, group_unmanaged) );
1770  } else {
1771  ATH_MSG_ERROR("Attempt to book managed tree " << t->GetName() << " with invalid interval type " << intervalEnumToString(group.interval()));
1772  return StatusCode::FAILURE;
1773  }
1774 
1775  std::string name = t->GetName();
1776  std::string genericName = NoOutputStream().getStreamName( this, group_unmanaged, name );
1777  std::string streamName = streamNameFunction()->getStreamName( this, group_unmanaged, name, false );
1778  registerMetadata(streamName, name, group).ignore();
1779  return m_THistSvc->regTree( streamName, t );
1780  }
1781 
1782 
1783  // This part of the code deals with UNMANAGED type
1784  std::string tName = t->GetName();
1785 
1786  if( m_manager != 0 ) {
1787  std::string genericName = NoOutputStream().getStreamName( this, group, tName );
1788  m_manager->writeAndDelete( genericName );
1789  m_manager->passOwnership( t, genericName );
1790  }
1791 
1792  std::string streamName = streamNameFunction()->getStreamName( this, group, tName, false );
1793 
1795  if (smd != StatusCode::SUCCESS) return StatusCode::FAILURE;
1796 
1797  return m_THistSvc->regTree( streamName, t );
1798 }

◆ regTree() [2/2]

StatusCode ManagedMonitorToolBase::regTree ( TTree *  t,
const std::string &  system,
Interval_t  interval,
MgmtAttr_t  histo_mgmt = ATTRIB_MANAGED,
const std::string &  chain = "",
const std::string &  merge = "" 
)
virtualinherited

Registers a TTree to be included in the output stream using logical parameters that describe it.

Definition at line 1747 of file ManagedMonitorToolBase.cxx.

1750 {
1751  MonGroup group( this, system, interval, histo_mgmt, chain, merge );
1752  return regTree( t, group );
1753 }

◆ renounce()

std::enable_if_t<std::is_void_v<std::result_of_t<decltype(&T::renounce)(T)> > && !std::is_base_of_v<SG::VarHandleKeyArray, T> && std::is_base_of_v<Gaudi::DataHandle, T>, void> AthCommonDataStore< AthCommonMsg< AlgTool > >::renounce ( T &  h)
inlineprotectedinherited

Definition at line 380 of file AthCommonDataStore.h.

381  {
382  h.renounce();
383  PBASE::renounce (h);
384  }

◆ renounceArray()

void AthCommonDataStore< AthCommonMsg< AlgTool > >::renounceArray ( SG::VarHandleKeyArray handlesArray)
inlineprotectedinherited

remove all handles from I/O resolution

Definition at line 364 of file AthCommonDataStore.h.

364  {
365  handlesArray.renounce();
366  }

◆ runStat()

StatusCode ManagedMonitorToolBase::runStat ( )
virtualinherited

This implementation does nothing; equivalent functionality may be provided by procHists( true, true, true ).

Implements IMonitorToolBase.

Definition at line 1892 of file ManagedMonitorToolBase.cxx.

1894 {
1895  return StatusCode::SUCCESS;
1896 }

◆ setMonManager()

void ManagedMonitorToolBase::setMonManager ( AthenaMonManager manager)
virtualinherited

Takes a pointer to a managing object to get information from it when needed.

Definition at line 1434 of file ManagedMonitorToolBase.cxx.

1436 {
1437  ATH_MSG_DEBUG( "ManagedMonitorToolBase::setMonManager():");
1438  m_manager = manager;
1439  if( m_manager != 0 ) {
1440  ATH_MSG_DEBUG( " --> Setting manager");
1441  m_managerNameProp = m_manager->name();
1445  delete m_streamNameFcn;
1447  }
1448  ATH_MSG_DEBUG( " --> Exiting successfully");
1449 }

◆ setupOutputStreams()

StatusCode ManagedMonitorToolBase::setupOutputStreams ( std::vector< std::string >  Mapping = std::vector<std::string>())
virtualinherited

This implementation does nothing—streams in this class should be managed by the AthenaMonManager.

Consider using MonitorToolBase for user-managed streams.

Implements IMonitorToolBase.

Definition at line 1881 of file ManagedMonitorToolBase.cxx.

1883 {
1884  // All instances should write to the stream(s) defined by the
1885  // AthenaMonManager.
1886 
1887  return StatusCode::SUCCESS;
1888 }

◆ streamNameFunction()

ManagedMonitorToolBase::StreamNameFcn * ManagedMonitorToolBase::streamNameFunction ( )
virtualinherited

Returns the function object that converts logical paramters into a physical stream name.

Definition at line 502 of file ManagedMonitorToolBase.cxx.

504 {
505  if( m_streamNameFcn == 0 ) {
506  msg(MSG::ERROR) << "!! streamNameFunction() has not been initialized !!" << endmsg;
507  msg(MSG::ERROR) << " --> neither ManagedMonitorToolBase::initialize() nor" << endmsg;
508  msg(MSG::ERROR) << " --> ManagedMonitorToolBase::setMonManager() has been called." << endmsg;
509  msg(MSG::ERROR) << " --> Correct configuration cannot be guaranteed from this point." << endmsg;
511  }
512  return m_streamNameFcn;
513 }

◆ sysInitialize()

virtual StatusCode AthCommonDataStore< AthCommonMsg< AlgTool > >::sysInitialize ( )
overridevirtualinherited

Perform system initialization for an algorithm.

We override this to declare all the elements of handle key arrays at the end of initialization. See comments on updateVHKA.

Reimplemented in DerivationFramework::CfAthAlgTool, AthCheckedComponent< AthAlgTool >, AthCheckedComponent<::AthAlgTool >, and asg::AsgMetadataTool.

◆ sysStart()

virtual StatusCode AthCommonDataStore< AthCommonMsg< AlgTool > >::sysStart ( )
overridevirtualinherited

Handle START transition.

We override this in order to make sure that conditions handle keys can cache a pointer to the conditions container.

◆ THistSvc_deReg_fixTGraph()

StatusCode ManagedMonitorToolBase::THistSvc_deReg_fixTGraph ( TFile *  file,
TGraph *  theGraph,
std::string &  directoryName 
)
protectedinherited

Fixes THistSvc->deReg(obj) when obj is TGraph instance.

Read more in source file about this bug.

Definition at line 1096 of file ManagedMonitorToolBase.cxx.

1098 {
1099  // THistSvc employs TDirectory Append method when registering TGraph.
1100  // When deReg is used to de-register TGraph object, THistSvc only removes the object
1101  // from its internal management but forgets to delete from TDirectory.
1102  // The current method fixes this problem by removing the TGraph object manually
1103  // after THistSvc->deReg(TGraph* obj) is called.
1104 
1105  // Saves and restores gFile and gDirectory
1106  GlobalDirectoryRestore restore;
1107 
1108  // This check is true when TGraph object is removed successfully
1109  bool graphRemoved = false;
1110 
1111  file->cd("/");
1112  TDirectory* dir = file->GetDirectory(directoryName.c_str());
1113  if (dir != 0) {
1114  dir->cd();
1115  TObject* obj = dir->Remove(theGraph);
1116  if (obj != 0)
1117  graphRemoved = true;
1118  }
1119 
1120  if (!graphRemoved) {
1121  return StatusCode::FAILURE;
1122  }
1123 
1124  return StatusCode::SUCCESS;
1125 }

◆ trigChainsArePassed()

bool ManagedMonitorToolBase::trigChainsArePassed ( std::vector< std::string > &  vTrigNames)
protectedvirtualinherited

Definition at line 2323 of file ManagedMonitorToolBase.cxx.

2325 {
2326  ATH_MSG_DEBUG( "ManagedMonitorToolBase::trigChainsArePassed:");
2327 
2328  for(unsigned int i=0; i<vTrigNames.size(); i++) {
2329  if( m_trigDecTool->isPassed(vTrigNames[i]) ) {
2330  ATH_MSG_DEBUG( " + \"" << vTrigNames[i] << "\" passed, returning \'true\'");
2331  return true;
2332  }
2333  else {
2334  ATH_MSG_DEBUG( " - \"" << vTrigNames[i] << "\" did not pass");
2335  }
2336  }
2337 
2338  return false;
2339 }

◆ updateTriggersForGroups()

void ManagedMonitorToolBase::updateTriggersForGroups ( std::vector< std::string > &  vTrigChainNames)
protectedinherited

Definition at line 2361 of file ManagedMonitorToolBase.cxx.

2362  {
2363  for (size_t i = 0; i < vTrigChainNames.size(); ++i) {
2364  std::string& thisName = vTrigChainNames[i];
2365  if (thisName.compare(0, 9, "CATEGORY_") ==0) {
2366  ATH_MSG_DEBUG("Found a trigger category: " << thisName << ". We will unpack it.");
2367  std::vector<std::string> triggers = m_trigTranslator->translate(thisName.substr(9,std::string::npos));
2368  std::ostringstream oss;
2369  oss << "(";
2370  for (size_t itrig = 0; itrig < triggers.size(); ++itrig) {
2371  if (itrig != 0) {
2372  oss << "|";
2373  }
2374  oss << triggers[itrig];
2375  }
2376  oss << ")";
2377  // replace with new value
2378  std::string newval = oss.str();
2379  ATH_MSG_DEBUG("Replaced with " << newval);
2380  vTrigChainNames[i] = newval;
2381  }
2382  }
2383 }

◆ updateVHKA()

void AthCommonDataStore< AthCommonMsg< AlgTool > >::updateVHKA ( Gaudi::Details::PropertyBase &  )
inlineinherited

Definition at line 308 of file AthCommonDataStore.h.

308  {
309  // debug() << "updateVHKA for property " << p.name() << " " << p.toString()
310  // << " size: " << m_vhka.size() << endmsg;
311  for (auto &a : m_vhka) {
312  std::vector<SG::VarHandleKey*> keys = a->keys();
313  for (auto k : keys) {
314  k->setOwner(this);
315  }
316  }
317  }

◆ writeAndDelete()

StatusCode ManagedMonitorToolBase::writeAndDelete ( TH1 h,
const MonGroup group 
)
virtualinherited

Write out histogram and delete it.

Definition at line 1802 of file ManagedMonitorToolBase.cxx.

1803  {
1804  if (!h)
1805  return StatusCode::FAILURE;
1806 
1807  std::string hName = h->GetName();
1808 
1809  if( m_manager != 0 ) {
1810  std::string genericName = NoOutputStream().getStreamName( this, group, hName );
1811  m_manager->writeAndDelete( genericName );
1812  }
1813  return StatusCode::SUCCESS;
1814 }

Member Data Documentation

◆ m_binning_N_GeneratorLevelParticle

Gaudi::Property<std::vector<float> > GeneratorPhysVal::GeneratorPhysValMonitoringTool::m_binning_N_GeneratorLevelParticle {this, "binning_N_GeneratorLevelParticle", {10,-5.,5},"binning_N_GeneratorLevelParticle"}
private

Definition at line 78 of file GeneratorPhysValMonitoringTool.h.

◆ m_binning_N_SimulationLevelParticle

Gaudi::Property<std::vector<float> > GeneratorPhysVal::GeneratorPhysValMonitoringTool::m_binning_N_SimulationLevelParticle {this, "binning_N_SimulationLevelParticle", {2000,0,2000},"binning_N_SimulationLevelParticle"}
private

Definition at line 79 of file GeneratorPhysValMonitoringTool.h.

◆ m_binning_N_TruthParticle

Gaudi::Property<std::vector<float> > GeneratorPhysVal::GeneratorPhysValMonitoringTool::m_binning_N_TruthParticle {this, "binning_N_TruthParticle", {600,0.,6000},"binning_N_TruthParticle"}
private

Definition at line 77 of file GeneratorPhysValMonitoringTool.h.

◆ m_bookHistogramsInitial

bool ManagedMonitorToolBase::m_bookHistogramsInitial
privateinherited

Definition at line 956 of file ManagedMonitorToolBase.h.

◆ m_ChargedParticlePlots

GeneratorPhysVal::GeneratorPlots GeneratorPhysVal::GeneratorPhysValMonitoringTool::m_ChargedParticlePlots
private

Definition at line 61 of file GeneratorPhysValMonitoringTool.h.

◆ m_d

Imp* ManagedMonitorToolBase::m_d
privateinherited

Definition at line 963 of file ManagedMonitorToolBase.h.

◆ m_dataType

AthenaMonManager::DataType_t ManagedMonitorToolBase::m_dataType
protectedinherited

Definition at line 901 of file ManagedMonitorToolBase.h.

◆ m_dataTypeStr

std::string ManagedMonitorToolBase::m_dataTypeStr
protectedinherited

Definition at line 897 of file ManagedMonitorToolBase.h.

◆ m_defaultLBDuration

float ManagedMonitorToolBase::m_defaultLBDuration
privateinherited

Definition at line 958 of file ManagedMonitorToolBase.h.

◆ m_detailLevel

unsigned int ManagedMonitorToolBase::m_detailLevel
protectedinherited

Definition at line 899 of file ManagedMonitorToolBase.h.

◆ m_detStore

StoreGateSvc_t AthCommonDataStore< AthCommonMsg< AlgTool > >::m_detStore
privateinherited

Pointer to StoreGate (detector store by default)

Definition at line 393 of file AthCommonDataStore.h.

◆ m_DQFilterTools

ToolHandleArray<IDQFilterTool> ManagedMonitorToolBase::m_DQFilterTools {this,"FilterTools",{}}
protectedinherited

Definition at line 912 of file ManagedMonitorToolBase.h.

◆ m_endOfEventsBlock

bool ManagedMonitorToolBase::m_endOfEventsBlock
privateinherited

Definition at line 885 of file ManagedMonitorToolBase.h.

◆ m_endOfLowStat

bool ManagedMonitorToolBase::m_endOfLowStat
privateinherited

Definition at line 885 of file ManagedMonitorToolBase.h.

◆ m_endOfLumiBlock

bool ManagedMonitorToolBase::m_endOfLumiBlock
privateinherited

Definition at line 885 of file ManagedMonitorToolBase.h.

◆ m_endOfRun

bool ManagedMonitorToolBase::m_endOfRun
privateinherited

Definition at line 885 of file ManagedMonitorToolBase.h.

◆ m_environment

AthenaMonManager::Environment_t ManagedMonitorToolBase::m_environment
protectedinherited

Definition at line 902 of file ManagedMonitorToolBase.h.

◆ m_environmentStr

std::string ManagedMonitorToolBase::m_environmentStr
protectedinherited

Definition at line 898 of file ManagedMonitorToolBase.h.

◆ m_EventInfoPlots

GeneratorPhysVal::GeneratorEventInfo GeneratorPhysVal::GeneratorPhysValMonitoringTool::m_EventInfoPlots
private

Definition at line 65 of file GeneratorPhysValMonitoringTool.h.

◆ m_evtInfoKey

SG::ReadHandleKey<xAOD::EventInfo> GeneratorPhysVal::GeneratorPhysValMonitoringTool::m_evtInfoKey
private
Initial value:
{this
, "EventInfo"
, "EventInfo"
, "ReadHandleKey for xAOD::EventInfo" }

Definition at line 83 of file GeneratorPhysValMonitoringTool.h.

◆ m_evtStore

StoreGateSvc_t AthCommonDataStore< AthCommonMsg< AlgTool > >::m_evtStore
privateinherited

Pointer to StoreGate (event store by default)

Definition at line 390 of file AthCommonDataStore.h.

◆ m_fileKey

std::string ManagedMonitorToolBase::m_fileKey
protectedinherited

Definition at line 896 of file ManagedMonitorToolBase.h.

◆ m_GeneratorLevelPlots

GeneratorPhysVal::GeneratorPlots GeneratorPhysVal::GeneratorPhysValMonitoringTool::m_GeneratorLevelPlots
private

Definition at line 62 of file GeneratorPhysValMonitoringTool.h.

◆ m_GeneratorSelector

GeneratorSelector* GeneratorPhysVal::GeneratorPhysValMonitoringTool::m_GeneratorSelector
private

Definition at line 72 of file GeneratorPhysValMonitoringTool.h.

◆ m_haveClearedLastEventBlock

bool ManagedMonitorToolBase::m_haveClearedLastEventBlock
protectedinherited

Definition at line 929 of file ManagedMonitorToolBase.h.

◆ m_lastHigStatInterval

int ManagedMonitorToolBase::m_lastHigStatInterval
protectedinherited

Definition at line 924 of file ManagedMonitorToolBase.h.

◆ m_lastLowStatInterval

int ManagedMonitorToolBase::m_lastLowStatInterval
protectedinherited

Definition at line 924 of file ManagedMonitorToolBase.h.

◆ m_lastLumiBlock

unsigned int ManagedMonitorToolBase::m_lastLumiBlock
protectedinherited

Definition at line 922 of file ManagedMonitorToolBase.h.

◆ m_lastMedStatInterval

int ManagedMonitorToolBase::m_lastMedStatInterval
protectedinherited

Definition at line 924 of file ManagedMonitorToolBase.h.

◆ m_lastRun

unsigned int ManagedMonitorToolBase::m_lastRun
protectedinherited

Definition at line 923 of file ManagedMonitorToolBase.h.

◆ m_lbDurationDataKey

SG::ReadCondHandleKey<LBDurationCondData> ManagedMonitorToolBase::m_lbDurationDataKey {this,"LBDurationCondDataKey","LBDurationCondData","SG Key of LBDurationCondData object"}
privateinherited

Definition at line 951 of file ManagedMonitorToolBase.h.

◆ m_lumiDataKey

SG::ReadCondHandleKey<LuminosityCondData> ManagedMonitorToolBase::m_lumiDataKey {this,"LuminosityCondDataKey","LuminosityCondData","SG Key of LuminosityCondData object"}
privateinherited

Definition at line 949 of file ManagedMonitorToolBase.h.

◆ m_lwhists

std::set<LWHist*> ManagedMonitorToolBase::m_lwhists
protectedinherited

Definition at line 891 of file ManagedMonitorToolBase.h.

◆ m_manager

AthenaMonManager* ManagedMonitorToolBase::m_manager
protectedinherited

Definition at line 892 of file ManagedMonitorToolBase.h.

◆ m_managerNameProp

std::string ManagedMonitorToolBase::m_managerNameProp
protectedinherited

Definition at line 894 of file ManagedMonitorToolBase.h.

◆ m_metadataMap

MDMap_t ManagedMonitorToolBase::m_metadataMap
protectedinherited

Definition at line 889 of file ManagedMonitorToolBase.h.

◆ m_nEvents

unsigned int ManagedMonitorToolBase::m_nEvents
protectedinherited

Definition at line 926 of file ManagedMonitorToolBase.h.

◆ m_nEventsIgnoreTrigger

unsigned int ManagedMonitorToolBase::m_nEventsIgnoreTrigger
protectedinherited

Definition at line 927 of file ManagedMonitorToolBase.h.

◆ m_newEventsBlock

bool ManagedMonitorToolBase::m_newEventsBlock
privateinherited

Definition at line 884 of file ManagedMonitorToolBase.h.

◆ m_newHigStatInterval

bool ManagedMonitorToolBase::m_newHigStatInterval
privateinherited

Definition at line 882 of file ManagedMonitorToolBase.h.

◆ m_newLowStat

bool ManagedMonitorToolBase::m_newLowStat
privateinherited

Definition at line 883 of file ManagedMonitorToolBase.h.

◆ m_newLowStatInterval

bool ManagedMonitorToolBase::m_newLowStatInterval
privateinherited

Definition at line 882 of file ManagedMonitorToolBase.h.

◆ m_newLumiBlock

bool ManagedMonitorToolBase::m_newLumiBlock
privateinherited

Definition at line 883 of file ManagedMonitorToolBase.h.

◆ m_newMedStatInterval

bool ManagedMonitorToolBase::m_newMedStatInterval
privateinherited

Definition at line 882 of file ManagedMonitorToolBase.h.

◆ m_newRun

bool ManagedMonitorToolBase::m_newRun
privateinherited

Definition at line 883 of file ManagedMonitorToolBase.h.

◆ m_nLumiBlocks

unsigned int ManagedMonitorToolBase::m_nLumiBlocks
protectedinherited

Definition at line 928 of file ManagedMonitorToolBase.h.

◆ m_number

TH1D* GeneratorPhysVal::GeneratorPhysValMonitoringTool::m_number = nullptr
private

Definition at line 68 of file GeneratorPhysValMonitoringTool.h.

◆ m_number_GeneratorLevel

TH1D* GeneratorPhysVal::GeneratorPhysValMonitoringTool::m_number_GeneratorLevel = nullptr
private

Definition at line 69 of file GeneratorPhysValMonitoringTool.h.

◆ m_number_SimulationLevel

TH1D* GeneratorPhysVal::GeneratorPhysValMonitoringTool::m_number_SimulationLevel = nullptr
private

Definition at line 70 of file GeneratorPhysValMonitoringTool.h.

◆ m_path

std::string ManagedMonitorToolBase::m_path
protectedinherited

Definition at line 915 of file ManagedMonitorToolBase.h.

◆ m_preScaleProp

long ManagedMonitorToolBase::m_preScaleProp
protectedinherited

Definition at line 916 of file ManagedMonitorToolBase.h.

◆ m_procNEventsProp

long ManagedMonitorToolBase::m_procNEventsProp
protectedinherited

Definition at line 914 of file ManagedMonitorToolBase.h.

◆ m_ProductionVertexPlots

GeneratorPhysVal::GeneratorProductionVertexPlots GeneratorPhysVal::GeneratorPhysValMonitoringTool::m_ProductionVertexPlots
private

Definition at line 64 of file GeneratorPhysValMonitoringTool.h.

◆ m_ref_mcChannelNumber

int GeneratorPhysVal::GeneratorPhysValMonitoringTool::m_ref_mcChannelNumber = 0
private

Definition at line 75 of file GeneratorPhysValMonitoringTool.h.

◆ m_SimulationLevelPlots

GeneratorPhysVal::GeneratorPlots GeneratorPhysVal::GeneratorPhysValMonitoringTool::m_SimulationLevelPlots
private

Definition at line 63 of file GeneratorPhysValMonitoringTool.h.

◆ m_streamNameFcn

StreamNameFcn* ManagedMonitorToolBase::m_streamNameFcn
protectedinherited

Definition at line 904 of file ManagedMonitorToolBase.h.

◆ m_supportedIntervalsForRebooking

std::set<Interval_t> ManagedMonitorToolBase::m_supportedIntervalsForRebooking
privateinherited

Definition at line 959 of file ManagedMonitorToolBase.h.

◆ m_templateEfficiencies

std::map< Interval_t, std::vector< MgmtParams<TEfficiency> > > ManagedMonitorToolBase::m_templateEfficiencies
protectedinherited

Definition at line 738 of file ManagedMonitorToolBase.h.

◆ m_templateGraphs

std::map< Interval_t, std::vector< MgmtParams<TGraph> > > ManagedMonitorToolBase::m_templateGraphs
protectedinherited

Definition at line 726 of file ManagedMonitorToolBase.h.

◆ m_templateHistograms

std::map< Interval_t, std::vector< MgmtParams<TH1> > > ManagedMonitorToolBase::m_templateHistograms
protectedinherited

Definition at line 722 of file ManagedMonitorToolBase.h.

◆ m_templateLWHistograms

std::map< Interval_t, std::vector< MgmtParams<LWHist> > > ManagedMonitorToolBase::m_templateLWHistograms
protectedinherited

Definition at line 734 of file ManagedMonitorToolBase.h.

◆ m_templateTrees

std::map< Interval_t, std::vector< MgmtParams<TTree> > > ManagedMonitorToolBase::m_templateTrees
protectedinherited

Definition at line 730 of file ManagedMonitorToolBase.h.

◆ m_testPlots

GeneratorPhysVal::GeneratorPlots GeneratorPhysVal::GeneratorPhysValMonitoringTool::m_testPlots
private

Definition at line 60 of file GeneratorPhysValMonitoringTool.h.

◆ m_THistSvc

ServiceHandle<ITHistSvc> ManagedMonitorToolBase::m_THistSvc
protectedinherited

Definition at line 906 of file ManagedMonitorToolBase.h.

◆ m_trigDecTool

PublicToolHandle<Trig::ITrigDecisionTool> ManagedMonitorToolBase::m_trigDecTool {this, "TrigDecisionTool",""}
protectedinherited

Definition at line 908 of file ManagedMonitorToolBase.h.

◆ m_triggerChainProp

std::string ManagedMonitorToolBase::m_triggerChainProp
protectedinherited

Definition at line 917 of file ManagedMonitorToolBase.h.

◆ m_triggerGroupProp

std::string ManagedMonitorToolBase::m_triggerGroupProp
protectedinherited

Definition at line 918 of file ManagedMonitorToolBase.h.

◆ m_trigLiveFractionDataKey

SG::ReadCondHandleKey<TrigLiveFractionCondData> ManagedMonitorToolBase::m_trigLiveFractionDataKey {this,"TrigLiveFractionCondDataKey","TrigLiveFractionCondData","SG Key of TrigLiveFractionCondData object"}
privateinherited

Definition at line 953 of file ManagedMonitorToolBase.h.

◆ m_trigTranslator

PublicToolHandle<ITriggerTranslatorTool> ManagedMonitorToolBase::m_trigTranslator {this,"TriggerTranslatorTool",""}
protectedinherited

Definition at line 910 of file ManagedMonitorToolBase.h.

◆ m_useLumi

bool ManagedMonitorToolBase::m_useLumi
privateinherited

Definition at line 957 of file ManagedMonitorToolBase.h.

◆ m_useTrigger

bool ManagedMonitorToolBase::m_useTrigger
protectedinherited

Definition at line 920 of file ManagedMonitorToolBase.h.

◆ m_varHandleArraysDeclared

bool AthCommonDataStore< AthCommonMsg< AlgTool > >::m_varHandleArraysDeclared
privateinherited

Definition at line 399 of file AthCommonDataStore.h.

◆ m_vhka

std::vector<SG::VarHandleKeyArray*> AthCommonDataStore< AthCommonMsg< AlgTool > >::m_vhka
privateinherited

Definition at line 398 of file AthCommonDataStore.h.

◆ m_vTrigChainNames

std::vector<std::string> ManagedMonitorToolBase::m_vTrigChainNames
protectedinherited

Definition at line 742 of file ManagedMonitorToolBase.h.

◆ m_vTrigGroupNames

std::vector<std::string> ManagedMonitorToolBase::m_vTrigGroupNames
protectedinherited

Definition at line 742 of file ManagedMonitorToolBase.h.


The documentation for this class was generated from the following files:
GeneratorSelector::GetGeneratorLevel
const std::vector< TLorentzVector > GetGeneratorLevel(const xAOD::TruthParticleContainer *cont)
Definition: GeneratorSelector.h:22
AthenaMonManager::ownedLWHistOfKey
virtual LWHist * ownedLWHistOfKey(const std::string &key) const
Definition: AthenaMonManager.cxx:708
ManagedMonitorToolBase::m_nEvents
unsigned int m_nEvents
Definition: ManagedMonitorToolBase.h:926
xAOD::iterator
JetConstituentVector::iterator iterator
Definition: JetConstituentVector.cxx:68
LWHist
Definition: LWHist.h:26
AllowedVariables::e
e
Definition: AsgElectronSelectorTool.cxx:37
ManagedMonitorToolBase::THistSvc_deReg_fixTGraph
StatusCode THistSvc_deReg_fixTGraph(TFile *file, TGraph *theGraph, std::string &directoryName)
Fixes THistSvc->deReg(obj) when obj is TGraph instance.
Definition: ManagedMonitorToolBase.cxx:1097
ManagedMonitorToolBase::m_templateEfficiencies
std::map< Interval_t, std::vector< MgmtParams< TEfficiency > > > m_templateEfficiencies
Definition: ManagedMonitorToolBase.h:738
AthenaMonManager::writeAndDeleteLWHist
virtual LWHist * writeAndDeleteLWHist(const std::string &key, const std::string &streamName)
Definition: AthenaMonManager.cxx:725
ManagedMonitorToolBase::streamNameFunction
virtual StreamNameFcn * streamNameFunction()
Returns the function object that converts logical paramters into a physical stream name.
Definition: ManagedMonitorToolBase.cxx:503
ManagedMonitorToolBase::m_newRun
bool m_newRun
Definition: ManagedMonitorToolBase.h:883
ManagedMonitorToolBase::m_supportedIntervalsForRebooking
std::set< Interval_t > m_supportedIntervalsForRebooking
Definition: ManagedMonitorToolBase.h:959
defineDB.smd
string smd
Definition: JetTagCalibration/share/defineDB.py:44
GeneratorPhysVal::GeneratorPhysValMonitoringTool::m_GeneratorSelector
GeneratorSelector * m_GeneratorSelector
Definition: GeneratorPhysValMonitoringTool.h:72
GeneratorPhysVal::GeneratorPhysValMonitoringTool::m_evtInfoKey
SG::ReadHandleKey< xAOD::EventInfo > m_evtInfoKey
Definition: GeneratorPhysValMonitoringTool.h:83
ManagedMonitorToolBase::bookHistograms
virtual StatusCode bookHistograms()
An inheriting class should either override this function or bookHists().
Definition: ManagedMonitorToolBase.cxx:1406
ManagedMonitorToolBase::m_DQFilterTools
ToolHandleArray< IDQFilterTool > m_DQFilterTools
Definition: ManagedMonitorToolBase.h:912
checkFileSG.line
line
Definition: checkFileSG.py:75
Trk::ParticleSwitcher::particle
constexpr ParticleHypothesis particle[PARTICLEHYPOTHESES]
the array of masses
Definition: ParticleHypothesis.h:76
ManagedMonitorToolBase::getHist
virtual StatusCode getHist(TH1 *&h, const std::string &hName, const std::string &system, Interval_t interval)
Returns a TH1 via the pointer passed as the first argument.
Definition: ManagedMonitorToolBase.cxx:1588
GeneratorPhysVal::GeneratorEventInfo::check_eventNumber
void check_eventNumber(SG::ReadHandle< xAOD::EventInfo > evt)
Definition: GeneratorEventInfo.cxx:16
ManagedMonitorToolBase::m_newEventsBlock
bool m_newEventsBlock
Definition: ManagedMonitorToolBase.h:884
ManagedMonitorToolBase::Imp::benchPreProcHistograms
void benchPreProcHistograms()
Definition: ManagedMonitorToolBase.cxx:122
get_generator_info.result
result
Definition: get_generator_info.py:21
python.PerfMonSerializer.p
def p
Definition: PerfMonSerializer.py:743
runLayerRecalibration.chain
chain
Definition: runLayerRecalibration.py:175
PowhegControl_ttHplus_NLO.ss
ss
Definition: PowhegControl_ttHplus_NLO.py:83
GeneratorPhysVal::GeneratorPhysValMonitoringTool::m_GeneratorLevelPlots
GeneratorPhysVal::GeneratorPlots m_GeneratorLevelPlots
Definition: GeneratorPhysValMonitoringTool.h:62
SG::ReadCondHandle
Definition: ReadCondHandle.h:44
ATH_MSG_INFO
#define ATH_MSG_INFO(x)
Definition: AthMsgStreamMacros.h:31
GeneratorPhysVal::GeneratorPhysValMonitoringTool::m_testPlots
GeneratorPhysVal::GeneratorPlots m_testPlots
Definition: GeneratorPhysValMonitoringTool.h:60
ManagedMonitorToolBase::higStat
@ higStat
Definition: ManagedMonitorToolBase.h:115
GeneratorSelector::GetSimulationLevel
const std::vector< TLorentzVector > GetSimulationLevel(const xAOD::TruthParticleContainer *cont)
Definition: GeneratorSelector.h:35
ManagedMonitorToolBase::lumiBlock
@ lumiBlock
Definition: ManagedMonitorToolBase.h:114
ManagedMonitorToolBase::m_endOfLumiBlock
bool m_endOfLumiBlock
Definition: ManagedMonitorToolBase.h:885
GeneratorPhysVal::GeneratorPhysValMonitoringTool::m_number_GeneratorLevel
TH1D * m_number_GeneratorLevel
Definition: GeneratorPhysValMonitoringTool.h:69
SCT_CalibAlgs::nbins
@ nbins
Definition: SCT_CalibNumbers.h:10
SG::ReadHandle
Definition: StoreGate/StoreGate/ReadHandle.h:70
ManagedMonitorToolBase::m_THistSvc
ServiceHandle< ITHistSvc > m_THistSvc
Definition: ManagedMonitorToolBase.h:906
ManagedMonitorToolBase::m_procNEventsProp
long m_procNEventsProp
Definition: ManagedMonitorToolBase.h:914
AthCommonDataStore::declareProperty
Gaudi::Details::PropertyBase & declareProperty(Gaudi::Property< T > &t)
Definition: AthCommonDataStore.h:145
AthenaMonManager::writeAndResetLWHist
virtual LWHist * writeAndResetLWHist(const std::string &key, const std::string &streamName)
Definition: AthenaMonManager.cxx:784
ManagedMonitorToolBase::regTree
virtual StatusCode regTree(TTree *t, const std::string &system, Interval_t interval, MgmtAttr_t histo_mgmt=ATTRIB_MANAGED, const std::string &chain="", const std::string &merge="")
Registers a TTree to be included in the output stream using logical parameters that describe it.
Definition: ManagedMonitorToolBase.cxx:1748
AthenaMonManager::runNumber
static unsigned int runNumber()
Definition: AthenaMonManager.cxx:362
plotmaker.hist
hist
Definition: plotmaker.py:148
AthenaMonManager::fileKey
virtual std::string fileKey() const
Definition: AthenaMonManager.cxx:681
ManagedMonitorToolBase::Imp::benchPreFillHistograms
void benchPreFillHistograms()
Definition: ManagedMonitorToolBase.cxx:97
AthenaMonManager::AOD
@ AOD
Definition: AthenaMonManager.h:50
ManagedMonitorToolBase::regManagedGraphs
StatusCode regManagedGraphs(std::vector< MgmtParams< TGraph > > &templateGraphs)
Definition: ManagedMonitorToolBase.cxx:1129
AthenaMonManager::passOwnership
virtual void passOwnership(TObject *h, const std::string &key)
Pass ownership of a TObject/LWHist to this manager so that it will be deleted appropriately.
Definition: AthenaMonManager.cxx:689
ManagedMonitorToolBase::Imp::benchPostFillHistograms
void benchPostFillHistograms()
Definition: ManagedMonitorToolBase.cxx:106
ManagedMonitorToolBase::regManagedHistograms
StatusCode regManagedHistograms(std::vector< MgmtParams< TH1 > > &templateHistograms)
Definition: ManagedMonitorToolBase.cxx:1032
ManagedMonitorToolBase::lbDuration
virtual double lbDuration(const EventContext &ctx=Gaudi::Hive::currentContext()) const
Luminosity block time (in seconds)
Definition: ManagedMonitorToolBase.cxx:2046
ManagedMonitorToolBase::m_trigDecTool
PublicToolHandle< Trig::ITrigDecisionTool > m_trigDecTool
Definition: ManagedMonitorToolBase.h:908
skel.it
it
Definition: skel.GENtoEVGEN.py:423
GeneratorPhysVal::GeneratorPhysValMonitoringTool::m_binning_N_GeneratorLevelParticle
Gaudi::Property< std::vector< float > > m_binning_N_GeneratorLevelParticle
Definition: GeneratorPhysValMonitoringTool.h:78
TH1D
Definition: rootspy.cxx:342
GeneratorPhysVal::GeneratorPhysValMonitoringTool::m_binning_N_TruthParticle
Gaudi::Property< std::vector< float > > m_binning_N_TruthParticle
Definition: GeneratorPhysValMonitoringTool.h:77
AthCommonDataStore< AthCommonMsg< AlgTool > >::m_evtStore
StoreGateSvc_t m_evtStore
Pointer to StoreGate (event store by default)
Definition: AthCommonDataStore.h:390
GeneratorPhysVal::GeneratorPhysValMonitoringTool::m_ChargedParticlePlots
GeneratorPhysVal::GeneratorPlots m_ChargedParticlePlots
Definition: GeneratorPhysValMonitoringTool.h:61
AthCommonDataStore< AthCommonMsg< AlgTool > >::m_vhka
std::vector< SG::VarHandleKeyArray * > m_vhka
Definition: AthCommonDataStore.h:398
ManagedMonitorToolBase::m_d
Imp * m_d
Definition: ManagedMonitorToolBase.h:962
ManagedMonitorToolBase::m_lastLowStatInterval
int m_lastLowStatInterval
Definition: ManagedMonitorToolBase.h:924
AthCommonMsg< AlgTool >::msgLvl
bool msgLvl(const MSG::Level lvl) const
Definition: AthCommonMsg.h:30
ManagedMonitorToolBase::m_triggerGroupProp
std::string m_triggerGroupProp
Definition: ManagedMonitorToolBase.h:918
LWHistAthMonWrapper::setStreamName
static void setStreamName(LWHist *, const std::string &streamName)
ManagedMonitorToolBase::Imp::benchPostProcHistograms
void benchPostProcHistograms()
Definition: ManagedMonitorToolBase.cxx:130
ManagedMonitorToolBase::m_dataType
AthenaMonManager::DataType_t m_dataType
Definition: ManagedMonitorToolBase.h:901
ManagedMonitorToolBase::regGraph
virtual StatusCode regGraph(TGraph *g, const std::string &system, Interval_t interval, MgmtAttr_t histo_mgmt=ATTRIB_MANAGED, const std::string &chain="", const std::string &merge="")
Registers a TGraph to be included in the output stream using logical parameters that describe the gra...
Definition: ManagedMonitorToolBase.cxx:1692
ManagedMonitorToolBase::m_newLowStatInterval
bool m_newLowStatInterval
Definition: ManagedMonitorToolBase.h:882
ManagedMonitorToolBase::fill
@ fill
Definition: ManagedMonitorToolBase.h:116
read_hist_ntuple.t
t
Definition: read_hist_ntuple.py:5
python.TrigTLAMonitorAlgorithm.triggers
triggers
Definition: TrigTLAMonitorAlgorithm.py:196
ManagedMonitorToolBase::procHistograms
virtual StatusCode procHistograms()
An inheriting class should either override this function or finalHists().
Definition: ManagedMonitorToolBase.cxx:1422
SG::VarHandleKey::empty
bool empty() const
Test if the key is blank.
Definition: AthToolSupport/AsgDataHandles/Root/VarHandleKey.cxx:150
python.SystemOfUnits.ms
int ms
Definition: SystemOfUnits.py:132
ManagedMonitorToolBase::regManagedTrees
StatusCode regManagedTrees(std::vector< MgmtParams< TTree > > &templateTrees)
Definition: ManagedMonitorToolBase.cxx:1260
ManagedMonitorToolBase::registerMetadata
StatusCode registerMetadata(const std::string &streamName, const std::string &hName, const MonGroup &group)
Definition: ManagedMonitorToolBase.cxx:1005
AthenaMonManager::getLBsLowStat
static unsigned int getLBsLowStat()
Definition: AthenaMonManager.cxx:324
ManagedMonitorToolBase::m_newHigStatInterval
bool m_newHigStatInterval
Definition: ManagedMonitorToolBase.h:882
ManagedMonitorToolBase::m_newMedStatInterval
bool m_newMedStatInterval
Definition: ManagedMonitorToolBase.h:882
TruthTest.itE
itE
Definition: TruthTest.py:25
AthenaPoolTestRead.sc
sc
Definition: AthenaPoolTestRead.py:27
SG::VarHandleKeyArray::setOwner
virtual void setOwner(IDataHandleHolder *o)=0
AthenaMonManager::environment
static Environment_t environment()
Returns the running environment of the monitoring application to help ManagedMonitorToolBase objects ...
Definition: AthenaMonManager.cxx:319
LWHistAthMonWrapper::streamName
static const std::string & streamName(LWHist *)
IDTPMcnv.htype
htype
Definition: IDTPMcnv.py:27
GeneratorPhysVal::GeneratorPhysValMonitoringTool::m_number
TH1D * m_number
Definition: GeneratorPhysValMonitoringTool.h:68
python.checkMetadata.metadata
metadata
Definition: checkMetadata.py:175
AthenaMonManager::getLBsMedStat
static unsigned int getLBsMedStat()
Definition: AthenaMonManager.cxx:327
ManagedMonitorToolBase::m_bookHistogramsInitial
bool m_bookHistogramsInitial
Definition: ManagedMonitorToolBase.h:956
ManagedMonitorToolBase::Imp::m_warnAboutMissingInitialize
bool m_warnAboutMissingInitialize
Definition: ManagedMonitorToolBase.cxx:51
LWHist::usingROOTBackend
bool usingROOTBackend() const
Definition: LWHist.h:73
PyPoolBrowser.item
item
Definition: PyPoolBrowser.py:129
ManagedMonitorToolBase::getNewStreamNameFcn
virtual StreamNameFcn * getNewStreamNameFcn() const
Definition: ManagedMonitorToolBase.cxx:2387
ManagedMonitorToolBase::m_preScaleProp
long m_preScaleProp
Definition: ManagedMonitorToolBase.h:916
LWHistAthMonWrapper::removeCustomData
static void removeCustomData(LWHist *)
ManagedMonitorToolBase::trigChainsArePassed
virtual bool trigChainsArePassed(std::vector< std::string > &)
Definition: ManagedMonitorToolBase.cxx:2324
AthCommonDataStore< AthCommonMsg< AlgTool > >::evtStore
ServiceHandle< StoreGateSvc > & evtStore()
The standard StoreGateSvc (event store) Returns (kind of) a pointer to the StoreGateSvc.
Definition: AthCommonDataStore.h:85
ManagedMonitorToolBase::m_fileKey
std::string m_fileKey
Definition: ManagedMonitorToolBase.h:896
ManagedMonitorToolBase::m_lastLumiBlock
unsigned int m_lastLumiBlock
Definition: ManagedMonitorToolBase.h:922
ManagedMonitorToolBase::m_vTrigGroupNames
std::vector< std::string > m_vTrigGroupNames
Definition: ManagedMonitorToolBase.h:742
AthenaMonManager::tier0ESD
@ tier0ESD
Definition: AthenaMonManager.h:50
ManagedMonitorToolBase::lbAverageLivefraction
virtual float lbAverageLivefraction(const EventContext &ctx=Gaudi::Hive::currentContext()) const
Average luminosity livefraction.
Definition: ManagedMonitorToolBase.cxx:1992
ManagedMonitorToolBase::m_templateGraphs
std::map< Interval_t, std::vector< MgmtParams< TGraph > > > m_templateGraphs
Definition: ManagedMonitorToolBase.h:726
AthCommonDataStore
Definition: AthCommonDataStore.h:52
AthenaMonManager::dataType
static DataType_t dataType()
Returns the data type that the monitoring application is running over to help ManagedMonitorToolBase ...
Definition: AthenaMonManager.cxx:336
ATH_MSG_ERROR
#define ATH_MSG_ERROR(x)
Definition: AthMsgStreamMacros.h:33
PlotBase::finalize
void finalize()
Definition: PlotBase.cxx:47
ManagedMonitorToolBase::m_manager
AthenaMonManager * m_manager
Definition: ManagedMonitorToolBase.h:892
ManagedMonitorToolBase::initialize
virtual StatusCode initialize()
Definition: ManagedMonitorToolBase.cxx:668
LWHistAthMonWrapper::key
static const std::string & key(LWHist *)
ManagedMonitorToolBase::m_lumiDataKey
SG::ReadCondHandleKey< LuminosityCondData > m_lumiDataKey
Definition: ManagedMonitorToolBase.h:950
ManagedMonitorToolBase::m_streamNameFcn
StreamNameFcn * m_streamNameFcn
Definition: ManagedMonitorToolBase.h:904
lumiFormat.i
int i
Definition: lumiFormat.py:85
AthenaMonManager::tier0
@ tier0
Definition: AthenaMonManager.h:50
python.CaloCondTools.g
g
Definition: CaloCondTools.py:15
GeneratorPhysVal::GeneratorPlots::fill
void fill(const xAOD::IParticle *part)
Definition: GeneratorPlots.h:27
endmsg
#define endmsg
Definition: AnalysisConfig_Ntuple.cxx:63
EL::StatusCode
::StatusCode StatusCode
StatusCode definition for legacy code.
Definition: PhysicsAnalysis/D3PDTools/EventLoop/EventLoop/StatusCode.h:22
ATH_MSG_DEBUG
#define ATH_MSG_DEBUG(x)
Definition: AthMsgStreamMacros.h:29
AthenaMonManager::online
@ online
Definition: AthenaMonManager.h:50
ManagedMonitorToolBase::file
@ file
Definition: ManagedMonitorToolBase.h:114
AthenaMonManager::writeAndDelete
virtual void writeAndDelete(const std::string &key)
If the TObject is owned by this manager, its Write() method is called and it is deleted.
Definition: AthenaMonManager.cxx:852
getLatestRuns.interval
interval
Definition: getLatestRuns.py:24
GeneratorPhysVal::GeneratorPhysValMonitoringTool::m_ref_mcChannelNumber
int m_ref_mcChannelNumber
Definition: GeneratorPhysValMonitoringTool.h:75
GeneratorPhysVal::GeneratorEventInfo::check_mcChannelNumber
int check_mcChannelNumber(SG::ReadHandle< xAOD::EventInfo > evt, int ref)
Definition: GeneratorEventInfo.cxx:21
ManagedMonitorToolBase::ATTRIB_UNMANAGED
@ ATTRIB_UNMANAGED
Definition: ManagedMonitorToolBase.h:131
ManagedMonitorToolBase::Imp::benchPostBookHistograms
void benchPostBookHistograms()
Definition: ManagedMonitorToolBase.cxx:87
test_pyathena.parent
parent
Definition: test_pyathena.py:15
AthenaMonManager::tier0Raw
@ tier0Raw
Definition: AthenaMonManager.h:50
ManagedMonitorToolBase::m_triggerChainProp
std::string m_triggerChainProp
Definition: ManagedMonitorToolBase.h:917
ATH_CHECK
#define ATH_CHECK
Definition: AthCheckMacros.h:40
MakeTH3DFromTH2Ds.hists
hists
Definition: MakeTH3DFromTH2Ds.py:72
AthenaMonManager::user
@ user
Definition: AthenaMonManager.h:50
GeneratorPhysVal::GeneratorPhysValMonitoringTool::m_ProductionVertexPlots
GeneratorPhysVal::GeneratorProductionVertexPlots m_ProductionVertexPlots
Definition: GeneratorPhysValMonitoringTool.h:64
run
Definition: run.py:1
ManagedMonitorToolBase::ATTRIB_MANAGED
@ ATTRIB_MANAGED
Definition: ManagedMonitorToolBase.h:131
ManagedMonitorToolBase::StreamNameFcn::getStreamName
virtual std::string getStreamName(const ManagedMonitorToolBase *tool, const MonGroup &group, const std::string &objName, bool usePreviousInterval=false)=0
A function that converts a MonGroup of logical parameters into a physical output stream name.
AthCommonDataStore< AthCommonMsg< AlgTool > >::m_detStore
StoreGateSvc_t m_detStore
Pointer to StoreGate (detector store by default)
Definition: AthCommonDataStore.h:393
SG::VarHandleKey::initialize
StatusCode initialize(bool used=true)
If this object is used as a property, then this should be called during the initialize phase.
Definition: AthToolSupport/AsgDataHandles/Root/VarHandleKey.cxx:103
ManagedMonitorToolBase::ManagedMonitorToolBase
ManagedMonitorToolBase(const std::string &type, const std::string &name, const IInterface *parent)
Definition: ManagedMonitorToolBase.cxx:389
ManagedMonitorToolBase::medStat
@ medStat
Definition: ManagedMonitorToolBase.h:115
ManagedMonitorToolBase::m_templateTrees
std::map< Interval_t, std::vector< MgmtParams< TTree > > > m_templateTrees
Definition: ManagedMonitorToolBase.h:730
ManagedMonitorToolBase::m_metadataMap
MDMap_t m_metadataMap
Definition: ManagedMonitorToolBase.h:889
DataVector
Derived DataVector<T>.
Definition: DataVector.h:581
ManagedMonitorToolBase::m_endOfEventsBlock
bool m_endOfEventsBlock
Definition: ManagedMonitorToolBase.h:885
ManagedMonitorToolBase::m_trigLiveFractionDataKey
SG::ReadCondHandleKey< TrigLiveFractionCondData > m_trigLiveFractionDataKey
Definition: ManagedMonitorToolBase.h:954
ManagedMonitorToolBase::m_environment
AthenaMonManager::Environment_t m_environment
Definition: ManagedMonitorToolBase.h:902
beamspotman.dir
string dir
Definition: beamspotman.py:623
SG::VarHandleKeyArray::renounce
virtual void renounce()=0
SG::HandleClassifier::type
std::conditional< std::is_base_of< SG::VarHandleKeyArray, T >::value, VarHandleKeyArrayType, type2 >::type type
Definition: HandleClassifier.h:54
ManagedMonitorToolBase::m_lastRun
unsigned int m_lastRun
Definition: ManagedMonitorToolBase.h:923
ManagedMonitorToolBase::m_newLumiBlock
bool m_newLumiBlock
Definition: ManagedMonitorToolBase.h:883
ManagedMonitorToolBase::m_endOfLowStat
bool m_endOfLowStat
Definition: ManagedMonitorToolBase.h:885
xAOD::TruthVertex_v1
Class describing a truth vertex in the MC record.
Definition: TruthVertex_v1.h:37
ManagedMonitorToolBase::m_lbDurationDataKey
SG::ReadCondHandleKey< LBDurationCondData > m_lbDurationDataKey
Definition: ManagedMonitorToolBase.h:952
merge_scale_histograms.doc
string doc
Definition: merge_scale_histograms.py:9
ManagedMonitorToolBase::bookHistogramsRecurrent
virtual StatusCode bookHistogramsRecurrent()
An inheriting class should either override this function, bookHists() or bookHistograms().
Definition: ManagedMonitorToolBase.cxx:1394
name
std::string name
Definition: Control/AthContainers/Root/debug.cxx:221
AthenaMonManager::getLBsHigStat
static unsigned int getLBsHigStat()
Definition: AthenaMonManager.cxx:330
LWHistAthMonWrapper::setKey
static void setKey(LWHist *, const std::string &key)
ExtractEBRunDetails.endOfRun
endOfRun
Definition: ExtractEBRunDetails.py:245
item
Definition: ItemListSvc.h:43
ManagedMonitorToolBase::lowStat
@ lowStat
Definition: ManagedMonitorToolBase.h:115
LWHist::setOwnsROOTHisto
void setOwnsROOTHisto(bool b)
Definition: LWHist.h:75
ManagedMonitorToolBase::m_lwhists
std::set< LWHist * > m_lwhists
Definition: ManagedMonitorToolBase.h:891
ManagedMonitorToolBase::m_templateLWHistograms
std::map< Interval_t, std::vector< MgmtParams< LWHist > > > m_templateLWHistograms
Definition: ManagedMonitorToolBase.h:734
ManagedMonitorToolBase::m_managerNameProp
std::string m_managerNameProp
Definition: ManagedMonitorToolBase.h:894
ManagedMonitorToolBase::m_nEventsIgnoreTrigger
unsigned int m_nEventsIgnoreTrigger
Definition: ManagedMonitorToolBase.h:927
ManagedMonitorToolBase::run
@ run
Definition: ManagedMonitorToolBase.h:116
ManagedMonitorToolBase::m_endOfRun
bool m_endOfRun
Definition: ManagedMonitorToolBase.h:885
ManagedMonitorToolBase::m_newLowStat
bool m_newLowStat
Definition: ManagedMonitorToolBase.h:883
AthenaPoolExample_Copy.streamName
string streamName
Definition: AthenaPoolExample_Copy.py:39
lumiFormat.lumi
lumi
Definition: lumiFormat.py:106
a
TList * a
Definition: liststreamerinfos.cxx:10
CaloLCW_tf.group
group
Definition: CaloLCW_tf.py:28
ManagedMonitorToolBase::regManagedLWHistograms
StatusCode regManagedLWHistograms(std::vector< MgmtParams< LWHist > > &templateLWHistograms)
Definition: ManagedMonitorToolBase.cxx:1314
h
AthenaMonManager::forkedProcess
bool forkedProcess()
Definition: AthenaMonManager.cxx:343
CondAlgsOpts.found
int found
Definition: CondAlgsOpts.py:101
ManagedMonitorToolBase::m_lastHigStatInterval
int m_lastHigStatInterval
Definition: ManagedMonitorToolBase.h:924
python.CaloScaleNoiseConfig.str
str
Definition: CaloScaleNoiseConfig.py:78
GeneratorPhysVal::GeneratorPhysValMonitoringTool::m_number_SimulationLevel
TH1D * m_number_SimulationLevel
Definition: GeneratorPhysValMonitoringTool.h:70
GeneratorPhysVal::GeneratorPhysValMonitoringTool::book
StatusCode book(PlotBase &plots)
Definition: GeneratorPhysValMonitoringTool.cxx:49
ATH_MSG_WARNING
#define ATH_MSG_WARNING(x)
Definition: AthMsgStreamMacros.h:32
ManagedMonitorToolBase::Imp::benchPreBookHistograms
void benchPreBookHistograms()
Definition: ManagedMonitorToolBase.cxx:78
ManagedMonitorToolBase::m_nLumiBlocks
unsigned int m_nLumiBlocks
Definition: ManagedMonitorToolBase.h:928
AthenaMonManager::altprod
@ altprod
Definition: AthenaMonManager.h:50
ManagedMonitorToolBase::eventsBlock
@ eventsBlock
Definition: ManagedMonitorToolBase.h:114
python.envutil.filelist
filelist
print ("Checking files %s..." % fullfile)
Definition: envutil.py:133
python.CaloScaleNoiseConfig.type
type
Definition: CaloScaleNoiseConfig.py:78
TH1
Definition: rootspy.cxx:268
DEBUG
#define DEBUG
Definition: page_access.h:11
AthCommonMsg< AlgTool >::msg
MsgStream & msg() const
Definition: AthCommonMsg.h:24
python.CaloCondTools.log
log
Definition: CaloCondTools.py:20
GeneratorPhysVal::GeneratorPhysValMonitoringTool::m_EventInfoPlots
GeneratorPhysVal::GeneratorEventInfo m_EventInfoPlots
Definition: GeneratorPhysValMonitoringTool.h:65
ManagedMonitorToolBase::all
@ all
Definition: ManagedMonitorToolBase.h:116
ManagedMonitorToolBase::deregObject
virtual StatusCode deregObject(const std::string &objName, const std::string &system, Interval_t interval)
De-registers a TObject from the THistSvc, but does NOT delete the object.
Definition: ManagedMonitorToolBase.cxx:1851
SG::VarHandleBase::vhKey
SG::VarHandleKey & vhKey()
Return a non-const reference to the HandleKey.
Definition: StoreGate/src/VarHandleBase.cxx:623
covarianceTool.plots
plots
Definition: covarianceTool.py:698
ManagedMonitorToolBase::StreamNameFcn::getDirectoryName
virtual std::string getDirectoryName(const ManagedMonitorToolBase *tool, const MonGroup &group, const std::string &objName, const bool usePreviousInterval)=0
A function that returns TDirectory path in a file that corresponds to a given MonGroup and object nam...
ManagedMonitorToolBase::fillHistograms
virtual StatusCode fillHistograms()
An inheriting class should either override this function or fillHists().
Definition: ManagedMonitorToolBase.cxx:1414
GeneratorPhysVal::GeneratorPhysValMonitoringTool::m_SimulationLevelPlots
GeneratorPhysVal::GeneratorPlots m_SimulationLevelPlots
Definition: GeneratorPhysValMonitoringTool.h:63
ManagedMonitorToolBase::lbAverageLuminosity
virtual float lbAverageLuminosity(const EventContext &ctx=Gaudi::Hive::currentContext()) const
Average luminosity (in ub-1 s-1 => 10^30 cm-2 s-1)
Definition: ManagedMonitorToolBase.cxx:1959
str
Definition: BTagTrackIpAccessor.cxx:11
python.Bindings.keys
keys
Definition: Control/AthenaPython/python/Bindings.py:798
python.Logging.manager
manager
Definition: PhysicsAnalysis/D3PDTools/AnaAlgorithm/python/Logging.py:92
ManagedMonitorToolBase::m_useTrigger
bool m_useTrigger
Definition: ManagedMonitorToolBase.h:920
ManagedMonitorToolBase::m_haveClearedLastEventBlock
bool m_haveClearedLastEventBlock
Definition: ManagedMonitorToolBase.h:929
AthenaMonManager::lumiBlockNumber
static unsigned int lumiBlockNumber()
Definition: AthenaMonManager.cxx:350
GeneratorSelector
Definition: GeneratorSelector.h:15
ManagedMonitorToolBase::m_templateHistograms
std::map< Interval_t, std::vector< MgmtParams< TH1 > > > m_templateHistograms
Definition: ManagedMonitorToolBase.h:722
ManagedMonitorToolBase::ATTRIB_X_VS_LB
@ ATTRIB_X_VS_LB
Definition: ManagedMonitorToolBase.h:131
ManagedMonitorToolBase::Imp::s_svcLocator
static std::atomic< ISvcLocator * > s_svcLocator
Definition: ManagedMonitorToolBase.cxx:41
GeneratorPhysVal::GeneratorPhysValMonitoringTool::m_binning_N_SimulationLevelParticle
Gaudi::Property< std::vector< float > > m_binning_N_SimulationLevelParticle
Definition: GeneratorPhysValMonitoringTool.h:79
python.PyAthena.obj
obj
Definition: PyAthena.py:132
GeneratorPhysVal::GeneratorProductionVertexPlots::fillProdVtx
void fillProdVtx(const xAOD::TruthVertex *vtx)
Definition: GeneratorProductionVertexPlots.h:29
ManagedMonitorToolBase::m_trigTranslator
PublicToolHandle< ITriggerTranslatorTool > m_trigTranslator
Definition: ManagedMonitorToolBase.h:910
LWHist::getROOTHistBase
virtual TH1 * getROOTHistBase()=0
ManagedMonitorToolBase::m_lastMedStatInterval
int m_lastMedStatInterval
Definition: ManagedMonitorToolBase.h:924
ManagedMonitorToolBase::m_vTrigChainNames
std::vector< std::string > m_vTrigChainNames
Definition: ManagedMonitorToolBase.h:742
AthCommonDataStore::declareGaudiProperty
Gaudi::Details::PropertyBase & declareGaudiProperty(Gaudi::Property< T > &hndl, const SG::VarHandleKeyType &)
specialization for handling Gaudi::Property<SG::VarHandleKey>
Definition: AthCommonDataStore.h:156
ManagedMonitorToolBase::regHist
virtual StatusCode regHist(TH1 *h, const std::string &system, Interval_t interval, MgmtAttr_t histo_mgmt=ATTRIB_MANAGED, const std::string &chain="", const std::string &merge="")
Registers a TH1 (including TH2, TH3, and TProfile) to be included in the output stream using logical ...
Definition: ManagedMonitorToolBase.cxx:1453
merge
Definition: merge.py:1
AthenaMonManager::noOutput
@ noOutput
Definition: AthenaMonManager.h:50
ManagedMonitorToolBase::intervalEnumToString
static std::string intervalEnumToString(Interval_t interval)
Converts a LevelOfDetail_t to a string of the same name.
Definition: ManagedMonitorToolBase.cxx:588
fitman.k
k
Definition: fitman.py:528
ManagedMonitorToolBase::m_defaultLBDuration
float m_defaultLBDuration
Definition: ManagedMonitorToolBase.h:958