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
RpcLv1RawDataValAlg Class Reference

#include <RpcLv1RawDataValAlg.h>

Inheritance diagram for RpcLv1RawDataValAlg:
Collaboration diagram for RpcLv1RawDataValAlg:

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

 RpcLv1RawDataValAlg (const std::string &type, const std::string &name, const IInterface *parent)
 
virtual ~RpcLv1RawDataValAlg ()=default
 
StatusCode initialize ()
 
virtual StatusCode bookHistogramsRecurrent ()
 An inheriting class should either override this function, bookHists() or bookHistograms(). 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 bookHistograms ()
 An inheriting class should either override this function or bookHists(). 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

StatusCode bookRPCLV1cmatimevschHistograms (const std::string &m_sectorlogic_name, const std::string &m_tower_name, const std::string &m_cma_name)
 
StatusCode bookRPCLV1TriggerRoadHistograms (const std::string &m_sectorlogic_name, const std::string &m_tower_name, const std::string &m_cma_name, const std::string &m_thr_name)
 
StatusCode bookRPCLV1ProfilesHistograms (int m_i_sector, const std::string &m_sectorlogic_name, const std::string &m_cma_name, int m_i_ijk, const std::string &m_ijk_name)
 profile cabling More...
 
StatusCode StoreTriggerType ()
 
int GetTriggerType () const
 
void bookRPCCoolHistograms (std::vector< std::string >::const_iterator &m_iter, int, int, const std::string &m_layer)
 
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

MuonDQAHistMap m_stationHists
 
int m_trigtype {0}
 
int m_sector {0}
 
int m_side {0}
 
SG::ReadHandleKey< xAOD::EventInfom_eventInfo
 
SG::ReadHandleKey< RpcPadContainerm_rpcRdoKey
 
std::vector< std::string > m_sectorlogicTowerCma_name_list {}
 
std::vector< std::string > m_sectorlogicTowerCma_name_list2 {}
 
std::vector< std::string > m_profile_list {}
 
bool m_doClusters {false}
 
bool m_checkCabling {false}
 
bool m_rpclv1file {false}
 
bool m_rpclv1hist {false}
 
bool m_rpclv1prof {false}
 
int m_rpclv1reducenbins {false}
 
SG::ReadCondHandleKey< MuonGM::MuonDetectorManagerm_DetectorManagerKey
 
ServiceHandle< Muon::IMuonIdHelperSvcm_idHelperSvc
 
SG::ReadCondHandleKey< RpcCablingCondDatam_readKey
 
bool m_doCoolDB {false}
 
std::string m_chamberName {}
 
std::string m_StationSize {}
 
int m_StationEta {0}
 
int m_StationPhi {0}
 
int m_lastEvent {0}
 
int m_cosmicStation {0}
 
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 44 of file RpcLv1RawDataValAlg.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

◆ RpcLv1RawDataValAlg()

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

Definition at line 31 of file RpcLv1RawDataValAlg.cxx.

35  // Declare the properties
36  declareProperty("CheckCabling", m_checkCabling = false);
37  declareProperty("RpcLv1File", m_rpclv1file = false);
38  declareProperty("RpcLv1Hist", m_rpclv1hist = false);
39  declareProperty("RpcLv1Prof", m_rpclv1prof = false);
40  declareProperty("RpcLv1ReduceNbins", m_rpclv1reducenbins = 2);
41  declareProperty("ChamberName", m_chamberName = "XXX");
42  declareProperty("StationSize", m_StationSize = "XXX");
43  declareProperty("StationEta", m_StationEta = -100);
44  declareProperty("StationPhi", m_StationPhi = -100);
45  declareProperty("LastEvent", m_lastEvent = 0);
46  declareProperty("Sector", m_sector = 0);
47  declareProperty("CosmicStation", m_cosmicStation = 0);
48  declareProperty("Side", m_side = 0);
49  declareProperty("Clusters", m_doClusters = false);
50  declareProperty("doCoolDB", m_doCoolDB = false);
51 }

◆ ~RpcLv1RawDataValAlg()

virtual RpcLv1RawDataValAlg::~RpcLv1RawDataValAlg ( )
virtualdefault

Member Function Documentation

◆ bookHistograms()

StatusCode ManagedMonitorToolBase::bookHistograms ( )
virtualinherited

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

Reimplemented in SCTHitEffMonTool, SCTHitsNoiseMonTool, SCTErrMonTool, SCTTracksMonTool, SCTLorentzMonTool, photonMonTool, egammaMonToolBase, electronMonTool, MuonPhysValMonitoring::MuonPhysValMonitoringTool, LArCellMonTool, AFPHitsMonitorTool, MuonDQA::MuonEventInfoMonTool, DQTDataFlowMonTool, TileCalCellMonTool, ActsTrk::PhysValTool, PhysValSecVtx, LUCID_HitsMoniTool, ZeeTaPMonTool, forwardElectronMonTool, DQTNonCollBkg_ZDC, TRT_Electron_Monitoring_Tool, InDetGlobalTrackMonTool, CscCalibMonToolBase, JetTagMonitoring, InDetPhysValMonitoringTool, EgammaPhysValMonitoring::EgammaPhysValMonitoringTool, InDetGlobalSynchMonTool, MissingEtDQA::PhysValMET, CaloTowerVecMon, JetTagDQA::PhysValBTag, CscCalibMonToolSlope, METMonTool, DQTGlobalWZFinderTool, CSCSegmValAlg, PhysVal::PhysValExample, TopPhysVal::TopPhysValMonitoring, DataQualityFatherMonTool, CscCalibMonToolPed, ZeeValidation::ZeeValidationMonitoringTool, CaloClusterVecMon, CaloTransverseBalanceVecMon, DQTDetSynchMonTool, InDetTrackPerfMonTool, IDPerfMonWenu, IDPerfMonZee, TrackCaloClusterRecValidationTool, DQTMuonIDTrackTool, InDetGlobalPixelTool, JetMonitoringTool, TileCellNoiseMonTool, CscClusterValAlg, PhysValTau, PhysValFE, AFPTechnicalMonitorTool, ManagedMonitorToolTest, DiMuMon, InDetVertexMonitoring, CscPrdValAlg, CscRdoValAlg, HIMonitoringEventShapeTool, IDPerfMonKshort, HIMonitoringZdcTool, HIMonitoringElectronsTool, HIMonitoringPhotonsTool, PhysValCluster, and HIMonitoringMuonsTool.

Definition at line 1406 of file ManagedMonitorToolBase.cxx.

1408 {
1409 
1410  return StatusCode::SUCCESS;
1411 }

◆ bookHistogramsRecurrent()

StatusCode RpcLv1RawDataValAlg::bookHistogramsRecurrent ( )
virtual

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

Reimplemented from ManagedMonitorToolBase.

Definition at line 1060 of file RpcLv1RawDataValAlg.cxx.

1062 {
1063  ATH_MSG_DEBUG("RPC RawData Monitoring Histograms being booked");
1064 
1065  StatusCode sc = StatusCode::SUCCESS;
1066 
1070  // declare a group of histograms
1071  std::string generic_path_rpclv1monitoring =
1072  "Muon/MuonRawDataMonitoring/RPCLV1";
1073 
1074  MonGroup rpclv1prd_shift(this,
1075  generic_path_rpclv1monitoring + "/Overview",
1077  MonGroup rpclv1_shift_dqmf(this,
1078  generic_path_rpclv1monitoring + "/GLOBAL",
1080  MonGroup rpcCoolDb(this, generic_path_rpclv1monitoring + "/CoolDB", run,
1082 
1083  // MuonDetectorManager from the conditions store
1086  const MuonGM::MuonDetectorManager* MuonDetMgr =
1087  DetectorManagerHandle.cptr();
1088  if (!MuonDetMgr) {
1089  ATH_MSG_ERROR(
1090  "nullptr to the read MuonDetectorManager conditions object");
1091  return StatusCode::FAILURE;
1092  }
1093 
1094  if (newRunFlag()) {
1095  ATH_MSG_DEBUG("RPCLV1 RawData Monitoring : isNewRun");
1096 
1097  // Trigger Layers vs SL
1098  std::string rpclv1_TriggerLy_vs_SL_title =
1099  "TriggerLayer_vs_SectorLogic";
1100  const char* rpclv1_TriggerLy_vs_SL_title_char =
1101  rpclv1_TriggerLy_vs_SL_title.c_str();
1102 
1103  TH2* rpclv1_TriggerLy_vs_SL = new TH2I(
1104  rpclv1_TriggerLy_vs_SL_title_char,
1105  rpclv1_TriggerLy_vs_SL_title_char, 64, 0, 64, 32, 0, 32);
1106  sc = rpclv1prd_shift.regHist(rpclv1_TriggerLy_vs_SL);
1107  if (sc.isFailure()) {
1108  ATH_MSG_FATAL(
1109  "rpclv1_TriggerLy_vs_SL Failed to register histogram ");
1110  return sc;
1111  }
1112  rpclv1_TriggerLy_vs_SL->GetXaxis()->SetTitle("Sector Logic");
1113  rpclv1_TriggerLy_vs_SL->GetYaxis()->SetTitle("");
1114  rpclv1_TriggerLy_vs_SL->SetOption("COLZ");
1115 
1116  ATH_MSG_DEBUG("INSIDE bookHistograms : "
1117  << rpclv1_TriggerLy_vs_SL
1118  << rpclv1_TriggerLy_vs_SL_title.c_str());
1119  // ATH_MSG_DEBUG ( "SHIFT : " << shift );
1120  ATH_MSG_DEBUG("RUN : " << run);
1121  ATH_MSG_DEBUG("Booked rpclv1_TriggerLy_vs_SL successfully");
1122 
1123  // set label for Trigger Layer vs SL histograms
1124  for (int ie = 1; ie != 16; ie++) {
1125  std::ostringstream YLabel;
1126  YLabel << "L=";
1127  int first = 0;
1128  for (int layer = 0; layer != 4; layer++) {
1129  int bit = (ie >> layer) & 1;
1130  if (bit == 1) {
1131  if (first == 0) {
1132  YLabel << layer;
1133  } else {
1134  YLabel << "," << layer;
1135  }
1136  first = 1;
1137  rpclv1_TriggerLy_vs_SL->GetYaxis()->SetBinLabel(
1138  ie + 1, YLabel.str().c_str()); // low pt
1139  rpclv1_TriggerLy_vs_SL->GetYaxis()->SetBinLabel(
1140  ie + 1 + 16, YLabel.str().c_str()); // high pt
1141  }
1142  }
1143  }
1144 
1145  // trigger conditions per CM
1146  // n bin x = 8 cm * 7 pad * 64 sector logic
1147  int n_bin_trigCm = 8 * 7 * 64;
1148  std::string rpclv1_TriggerCond_vs_CM_title =
1149  "Trigger_Condition_vs_CM";
1150  const char* rpclv1_TriggerCond_vs_CM_title_char =
1151  rpclv1_TriggerCond_vs_CM_title.c_str();
1152  TH2* rpclv1_TriggerCond_vs_CM =
1153  new TH2I(rpclv1_TriggerCond_vs_CM_title_char,
1154  rpclv1_TriggerCond_vs_CM_title_char, n_bin_trigCm, 1,
1155  n_bin_trigCm + 1, 16, 0, 16);
1156  sc = rpclv1prd_shift.regHist(rpclv1_TriggerCond_vs_CM);
1157 
1158  rpclv1_TriggerCond_vs_CM->GetXaxis()->SetTitle(
1159  "CM + Pad*8 + SL*56");
1160  rpclv1_TriggerCond_vs_CM->GetYaxis()->SetTitle("");
1161  rpclv1_TriggerCond_vs_CM->SetOption("COLZ");
1162 
1163  // set label for Trigger conditions per CM
1164  rpclv1_TriggerCond_vs_CM->GetYaxis()->SetBinLabel(1, "No Hits");
1165  for (int ie = 1; ie != 16; ie++) {
1166  std::ostringstream YLabel;
1167  YLabel << "L=";
1168  int first = 0;
1169  for (int layer = 0; layer != 4; layer++) {
1170  int bit = (ie >> layer) & 1;
1171  if (bit == 1) {
1172  if (first == 0) {
1173  YLabel << layer;
1174  } else {
1175  YLabel << "," << layer;
1176  }
1177  first = 1;
1178  rpclv1_TriggerCond_vs_CM->GetYaxis()->SetBinLabel(
1179  ie + 1, YLabel.str().c_str());
1180  }
1181  }
1182  }
1183 
1184  // logical OR
1185 
1186  std::vector<std::string> LyNameVec;
1187  LyNameVec.push_back("LowPt0");
1188  LyNameVec.push_back("LowPt1");
1189  LyNameVec.push_back("HighPt0");
1190  LyNameVec.push_back("HighPt1");
1191 
1192  // n bin x = 64 sector logic
1193  // n bin y = 2 ^ ( nPad=7 ) = 128
1194  int n_bin_logOR = 64;
1195 
1196  for (std::vector<std::string>::const_iterator it =
1197  LyNameVec.begin();
1198  it != LyNameVec.end(); ++it) {
1199  std::string rpclv1_logicalOR_title = "PhiLogicalOR_" + *it;
1200  const char* rpclv1_logicalOR_title_char =
1201  rpclv1_logicalOR_title.c_str();
1202  TH2* rpclv1_logicalOR = new TH2I(
1203  rpclv1_logicalOR_title_char, rpclv1_logicalOR_title_char,
1204  n_bin_logOR, 0, n_bin_logOR, 128, 0, 128);
1205  sc = rpclv1prd_shift.regHist(rpclv1_logicalOR);
1206 
1207  rpclv1_logicalOR->GetXaxis()->SetTitle("Sector Logic");
1208  // rpclv1_logicalOR->GetYaxis()->SetTitle("Pad") ;
1209  rpclv1_logicalOR->SetOption("COLZ");
1210  rpclv1_logicalOR->GetYaxis()->SetLabelSize(0.03);
1211  for (int ie = 0 + 1; ie != 128; ie++) {
1212  std::ostringstream YLabel;
1213  YLabel << "pad";
1214  for (int k = 0; k != 8; k++) {
1215  if ((int(pow(2, float(k))) & ie) != 0) {
1216  YLabel << " " << k;
1217  }
1218  }
1219  rpclv1_logicalOR->GetYaxis()->SetBinLabel(
1220  ie + 1, YLabel.str().c_str());
1221  }
1222  }
1223 
1224  // SHIFT histograms
1225  // Trigger conditions vs SL
1226  std::string rpclv1_TriggerCond_vs_SL_title =
1227  "TriggerCondition_vs_SectorLogic";
1228  const char* rpclv1_TriggerCond_vs_SL_title_char =
1229  rpclv1_TriggerCond_vs_SL_title.c_str();
1230 
1231  TH2* rpclv1_TriggerCond_vs_SL = new TH2I(
1232  rpclv1_TriggerCond_vs_SL_title_char,
1233  rpclv1_TriggerCond_vs_SL_title_char, 64, 0, 64, 7, 1, 8);
1234  sc = rpclv1_shift_dqmf.regHist(rpclv1_TriggerCond_vs_SL);
1235  if (sc.isFailure()) {
1236  ATH_MSG_FATAL(
1237  "rpclv1_TriggerCond_vs_SL Failed to register histogram ");
1238  return sc;
1239  }
1240  rpclv1_TriggerCond_vs_SL->GetXaxis()->SetTitle("Sector Logic");
1241  rpclv1_TriggerCond_vs_SL->GetYaxis()->SetTitle("");
1242  rpclv1_TriggerCond_vs_SL->GetYaxis()->SetTitleSize(0.03);
1243  rpclv1_TriggerCond_vs_SL->SetOption("COLZ");
1244 
1245  ATH_MSG_DEBUG("INSIDE bookHistograms : "
1246  << rpclv1_TriggerCond_vs_SL
1247  << rpclv1_TriggerCond_vs_SL_title.c_str());
1248  // ATH_MSG_DEBUG ( "SHIFT : " << shift );
1249  ATH_MSG_DEBUG("RUN : " << run);
1250  ATH_MSG_DEBUG("Booked rpclv1_TriggerCond_vs_SL successfully");
1251 
1252  // set label for Trigger Condition vs SL histograms
1253  rpclv1_TriggerCond_vs_SL->GetYaxis()->SetBinLabel(
1254  1, "1/4 Lpt "); // low pt
1255  rpclv1_TriggerCond_vs_SL->GetYaxis()->SetBinLabel(2, "2/4 Lpt ");
1256  rpclv1_TriggerCond_vs_SL->GetYaxis()->SetBinLabel(3, "3/4 Lpt ");
1257  rpclv1_TriggerCond_vs_SL->GetYaxis()->SetBinLabel(4, "4/4 Lpt ");
1258  rpclv1_TriggerCond_vs_SL->GetYaxis()->SetBinLabel(
1259  5, "Lpt+0/2Hpt"); // high pt
1260  rpclv1_TriggerCond_vs_SL->GetYaxis()->SetBinLabel(6, "Lpt+1/2Hpt");
1261  rpclv1_TriggerCond_vs_SL->GetYaxis()->SetBinLabel(7, "Lpt+2/2Hpt");
1262 
1263  // BCid (ijk==6) vs SL
1264  std::string rpclv1_BCid_vs_SL_title = "rpclv1_BCid_vs_SectorLogic";
1265  const char* rpclv1_BCid_vs_SL_title_char =
1266  rpclv1_BCid_vs_SL_title.c_str();
1267 
1268  TH2* rpclv1_BCid_vs_SL =
1269  new TH2I(rpclv1_BCid_vs_SL_title_char,
1270  rpclv1_BCid_vs_SL_title_char, 64, 0, 64, 8 * 2, 0, 16);
1271  sc = rpclv1_shift_dqmf.regHist(rpclv1_BCid_vs_SL);
1272  if (sc.isFailure()) {
1273  ATH_MSG_FATAL(
1274  "rpclv1_BCid_vs_SectorLogic Failed to register histogram ");
1275  return sc;
1276  }
1277  rpclv1_BCid_vs_SL->GetXaxis()->SetTitle(
1278  "Triggered RPC Sector Logic");
1279  rpclv1_BCid_vs_SL->GetYaxis()->SetTitle(
1280  "BCId+HPtTrigger*8 for trigger hits");
1281  rpclv1_BCid_vs_SL->SetOption("COLZ");
1282 
1283  ATH_MSG_DEBUG("INSIDE bookHistograms : "
1284  << rpclv1_BCid_vs_SL
1285  << rpclv1_BCid_vs_SL_title.c_str());
1286  // ATH_MSG_DEBUG ( "SHIFT : " << shift );
1287  ATH_MSG_DEBUG("RUN : " << run);
1288  ATH_MSG_DEBUG("Booked rpclv1_BCid_vs_SectorLogic successfully");
1289 
1290  // LPt BCid (ijk==6) vs SL
1291  std::string rpclv1_LPt_BCid_vs_SL_title =
1292  "rpclv1_LPt_BCid_vs_SectorLogic";
1293  const char* rpclv1_LPt_BCid_vs_SL_title_char =
1294  rpclv1_LPt_BCid_vs_SL_title.c_str();
1295 
1296  TH2* rpclv1_LPt_BCid_vs_SL =
1297  new TH2I(rpclv1_LPt_BCid_vs_SL_title_char,
1298  rpclv1_LPt_BCid_vs_SL_title_char, 64, 0, 64, 8, 0, 8);
1299  sc = rpclv1_shift_dqmf.regHist(rpclv1_LPt_BCid_vs_SL);
1300  if (sc.isFailure()) {
1301  ATH_MSG_FATAL(
1302  "rpclv1_BCid_vs_SectorLogic Failed to register histogram ");
1303  return sc;
1304  }
1305  rpclv1_LPt_BCid_vs_SL->GetXaxis()->SetTitle(
1306  "Triggered LPt RPC Sector Logic");
1307  rpclv1_LPt_BCid_vs_SL->GetYaxis()->SetTitle("Trigger hits BCid");
1308  rpclv1_LPt_BCid_vs_SL->SetOption("COLZ");
1309 
1310  ATH_MSG_DEBUG("INSIDE bookHistograms : "
1311  << rpclv1_LPt_BCid_vs_SL
1312  << rpclv1_LPt_BCid_vs_SL_title.c_str());
1313  // ATH_MSG_DEBUG ( "SHIFT : " << shift );
1314  ATH_MSG_DEBUG("RUN : " << run);
1315  ATH_MSG_DEBUG("Booked rpclv1_BCid_vs_SectorLogic successfully");
1316 
1317  // BCid (ijk==6) vs SL
1318  std::string rpclv1_HPt_BCid_vs_SL_title =
1319  "rpclv1_HPt_BCid_vs_SectorLogic";
1320  const char* rpclv1_HPt_BCid_vs_SL_title_char =
1321  rpclv1_HPt_BCid_vs_SL_title.c_str();
1322 
1323  TH2* rpclv1_HPt_BCid_vs_SL =
1324  new TH2I(rpclv1_HPt_BCid_vs_SL_title_char,
1325  rpclv1_HPt_BCid_vs_SL_title_char, 64, 0, 64, 8, 0, 8);
1326  sc = rpclv1_shift_dqmf.regHist(rpclv1_HPt_BCid_vs_SL);
1327  if (sc.isFailure()) {
1328  ATH_MSG_FATAL(
1329  "rpclv1_BCid_vs_SectorLogic Failed to register histogram ");
1330  return sc;
1331  }
1332  rpclv1_HPt_BCid_vs_SL->GetXaxis()->SetTitle(
1333  "Triggered HPt RPC Sector Logic");
1334  rpclv1_HPt_BCid_vs_SL->GetYaxis()->SetTitle("Trigger hits BCid");
1335  rpclv1_HPt_BCid_vs_SL->SetOption("COLZ");
1336 
1337  ATH_MSG_DEBUG("INSIDE bookHistograms : "
1338  << rpclv1_HPt_BCid_vs_SL
1339  << rpclv1_HPt_BCid_vs_SL_title.c_str());
1340  // ATH_MSG_DEBUG ( "SHIFT : " << shift );
1341  ATH_MSG_DEBUG("RUN : " << run);
1342  ATH_MSG_DEBUG("Booked rpclv1_BCid_vs_SectorLogic successfully");
1343 
1345 
1346  // hits per event
1347  std::string rpclv1_hitperEvent_title = "rpclv1_hitperEvent";
1348  const char* rpclv1_hitperEvent_title_char =
1349  rpclv1_hitperEvent_title.c_str();
1350 
1351  TH1* rpclv1_hitperEvent =
1352  new TH1I(rpclv1_hitperEvent_title_char,
1353  rpclv1_hitperEvent_title_char, NMAXHIT, 0., NMAXHIT);
1354  sc = rpclv1prd_shift.regHist(rpclv1_hitperEvent);
1355  if (sc.isFailure()) {
1356  ATH_MSG_FATAL(
1357  "rpclv1_hitperEvent Failed to register histogram ");
1358  return sc;
1359  }
1360  rpclv1_hitperEvent->SetFillColor(42);
1361  rpclv1_hitperEvent->GetXaxis()->SetTitle("RPC hit / event");
1362  rpclv1_hitperEvent->GetYaxis()->SetTitle("Counts");
1363 
1364  ATH_MSG_DEBUG("INSIDE bookHistograms : " << rpclv1_hitperEvent);
1365  // ATH_MSG_DEBUG ( "SHIFT : " << shift );
1366  ATH_MSG_DEBUG("RUN : " << run);
1367  ATH_MSG_DEBUG("Booked rpclv1_hitperEvent successfully");
1368 
1369  // lowpt ETA trigger hits stat
1370  std::string generic_path_rpclv1triggerlowpt_etastat =
1371  generic_path_rpclv1monitoring + "/Overview";
1372  std::string rpclv1triggerlowpt_etastat_title =
1373  "Trigger_Hits_LowPt_eta_Stat";
1374  const char* rpclv1triggerlowpt_etastat_title_char =
1375  rpclv1triggerlowpt_etastat_title.c_str();
1376 
1377  TH1* rpclv1triggerlowpt_etastat =
1378  new TH1I(rpclv1triggerlowpt_etastat_title_char,
1379  rpclv1triggerlowpt_etastat_title_char, 15, 0, 15);
1380  sc = rpclv1prd_shift.regHist(rpclv1triggerlowpt_etastat);
1381  if (sc.isFailure()) {
1382  ATH_MSG_FATAL(
1383  "rpclv1triggerlowpt_etastat Failed to register histogram ");
1384  return sc;
1385  }
1386  rpclv1triggerlowpt_etastat->SetFillColor(42);
1387  rpclv1triggerlowpt_etastat->GetXaxis()->SetTitle(
1388  "LowPt eta trigger hits / event");
1389  rpclv1triggerlowpt_etastat->GetYaxis()->SetTitle("Counts");
1390 
1391  ATH_MSG_DEBUG("INSIDE bookHistograms : "
1392  << rpclv1triggerlowpt_etastat
1393  << generic_path_rpclv1triggerlowpt_etastat.c_str());
1394  // ATH_MSG_DEBUG ( "SHIFT : " << shift );
1395  ATH_MSG_DEBUG("RUN : " << run);
1396  ATH_MSG_DEBUG("Booked rpclv1triggerlowpt_etastat successfully");
1397 
1399 
1400  // lowpt PHI trigger hits stat
1401  std::string generic_path_rpclv1triggerlowpt_phistat =
1402  generic_path_rpclv1monitoring + "/Overview";
1403  std::string rpclv1triggerlowpt_phistat_title =
1404  "Trigger_Hits_LowPt_phi_Stat";
1405  const char* rpclv1triggerlowpt_phistat_title_char =
1406  rpclv1triggerlowpt_phistat_title.c_str();
1407 
1408  TH1* rpclv1triggerlowpt_phistat =
1409  new TH1I(rpclv1triggerlowpt_phistat_title_char,
1410  rpclv1triggerlowpt_phistat_title_char, 15, 0, 15);
1411  sc = rpclv1prd_shift.regHist(rpclv1triggerlowpt_phistat);
1412  if (sc.isFailure()) {
1413  ATH_MSG_FATAL(
1414  "rpclv1triggerlowpt_phistat Failed to register histogram ");
1415  return sc;
1416  }
1417  rpclv1triggerlowpt_phistat->SetFillColor(42);
1418  rpclv1triggerlowpt_phistat->GetXaxis()->SetTitle(
1419  "LowPt phi trigger hits / event");
1420  rpclv1triggerlowpt_phistat->GetYaxis()->SetTitle("Counts");
1421 
1422  ATH_MSG_DEBUG("INSIDE bookHistograms : "
1423  << rpclv1triggerlowpt_phistat
1424  << generic_path_rpclv1triggerlowpt_phistat.c_str());
1425  // ATH_MSG_DEBUG ( "SHIFT : " << shift );
1426  ATH_MSG_DEBUG("RUN : " << run);
1427  ATH_MSG_DEBUG("Booked rpclv1triggerlowpt_phistat successfully");
1428 
1430 
1431  // lowpt ETA-PHI trigger hits stat
1432  std::string generic_path_rpclv1triggerlowpt_etaphistat =
1433  generic_path_rpclv1monitoring + "/Overview";
1434  std::string rpclv1triggerlowpt_etaphistat_title =
1435  "Trigger_Hits_Lowpt_etaphi_Stat";
1436  const char* rpclv1triggerlowpt_etaphistat_title_char =
1437  rpclv1triggerlowpt_etaphistat_title.c_str();
1438 
1439  TH2* rpclv1triggerlowpt_etaphistat = new TH2I(
1440  rpclv1triggerlowpt_etaphistat_title_char,
1441  rpclv1triggerlowpt_etaphistat_title_char, 15, 0, 15, 15, 0, 15);
1442  sc = rpclv1prd_shift.regHist(rpclv1triggerlowpt_etaphistat);
1443  if (sc.isFailure()) {
1444  ATH_MSG_FATAL(
1445  "rpclv1triggerlowpt_etaphistat Failed to register "
1446  "histogram ");
1447  return sc;
1448  }
1449  rpclv1triggerlowpt_etaphistat->SetOption("COLZ");
1450  rpclv1triggerlowpt_etaphistat->GetXaxis()->SetTitle(
1451  "LowPt phi trigger hits / event");
1452  rpclv1triggerlowpt_etaphistat->GetYaxis()->SetTitle(
1453  "LowPt eta trigger hits / event");
1454 
1455  ATH_MSG_DEBUG(
1456  "INSIDE bookHistograms : "
1457  << rpclv1triggerlowpt_etaphistat
1458  << generic_path_rpclv1triggerlowpt_etaphistat.c_str());
1459  // ATH_MSG_DEBUG ( "SHIFT : " << shift );
1460  ATH_MSG_DEBUG("RUN : " << run);
1461  ATH_MSG_DEBUG("Booked rpclv1triggerlowpt_etaphistat successfully");
1462 
1464 
1465  // highpt ETA trigger hits stat
1466  std::string generic_path_rpclv1triggerhighpt_etastat =
1467  generic_path_rpclv1monitoring + "/Overview";
1468  std::string rpclv1triggerhighpt_etastat_title =
1469  "Trigger_Hits_HighPt_eta_Stat";
1470  const char* rpclv1triggerhighpt_etastat_title_char =
1471  rpclv1triggerhighpt_etastat_title.c_str();
1472  TH1* rpclv1triggerhighpt_etastat =
1473  new TH1I(rpclv1triggerhighpt_etastat_title_char,
1474  rpclv1triggerhighpt_etastat_title_char, 15, 0, 15);
1475  sc = rpclv1prd_shift.regHist(rpclv1triggerhighpt_etastat);
1476  if (sc.isFailure()) {
1477  ATH_MSG_FATAL(
1478  "rpclv1triggerhighpt_etastat Failed to register "
1479  "histogram ");
1480  return sc;
1481  }
1482  rpclv1triggerhighpt_etastat->SetFillColor(42);
1483  rpclv1triggerhighpt_etastat->GetXaxis()->SetTitle(
1484  "HighPt eta trigger hits / event");
1485  rpclv1triggerhighpt_etastat->GetYaxis()->SetTitle("Counts");
1486 
1487  ATH_MSG_DEBUG("INSIDE bookHistograms : "
1488  << rpclv1triggerhighpt_etastat
1489  << generic_path_rpclv1triggerhighpt_etastat.c_str());
1490  // ATH_MSG_DEBUG ( "SHIFT : " << shift );
1491  ATH_MSG_DEBUG("RUN : " << run);
1492  ATH_MSG_DEBUG(
1493  "Booked rpclv1triggertimehighpt_etastat successfully");
1494 
1496 
1497  // highpt PHI trigger hits stat
1498  std::string generic_path_rpclv1triggerhighpt_phistat =
1499  generic_path_rpclv1monitoring + "/Overview";
1500  std::string rpclv1triggerhighpt_phistat_title =
1501  "Trigger_Hits_HighPt_phi_Stat";
1502  const char* rpclv1triggerhighpt_phistat_title_char =
1503  rpclv1triggerhighpt_phistat_title.c_str();
1504  TH1* rpclv1triggerhighpt_phistat =
1505  new TH1I(rpclv1triggerhighpt_phistat_title_char,
1506  rpclv1triggerhighpt_phistat_title_char, 15, 0, 15);
1507  sc = rpclv1prd_shift.regHist(rpclv1triggerhighpt_phistat);
1508  if (sc.isFailure()) {
1509  ATH_MSG_FATAL(
1510  "rpclv1triggerhighpt_phistat Failed to register "
1511  "histogram ");
1512  return sc;
1513  }
1514  rpclv1triggerhighpt_phistat->SetFillColor(42);
1515  rpclv1triggerhighpt_phistat->GetXaxis()->SetTitle(
1516  "HighPt phi trigger hits / event");
1517  rpclv1triggerhighpt_phistat->GetYaxis()->SetTitle("Counts");
1518 
1519  ATH_MSG_DEBUG("INSIDE bookHistograms : "
1520  << rpclv1triggerhighpt_phistat
1521  << generic_path_rpclv1triggerhighpt_phistat.c_str());
1522  // ATH_MSG_DEBUG ( "SHIFT : " << shift );
1523  ATH_MSG_DEBUG("RUN : " << run);
1524  ATH_MSG_DEBUG(
1525  "Booked rpclv1triggertimehighpt_phistat successfully");
1526 
1528 
1529  // highpt ETA - PHI trigger hits stat
1530  std::string generic_path_rpclv1triggerhighpt_etaphistat =
1531  generic_path_rpclv1monitoring + "/Overview";
1532  std::string rpclv1triggerhighpt_etaphistat_title =
1533  "Trigger_Hits_HighPt_etaphi_Stat";
1534  const char* rpclv1triggerhighpt_etaphistat_title_char =
1535  rpclv1triggerhighpt_etaphistat_title.c_str();
1536  TH2* rpclv1triggerhighpt_etaphistat =
1537  new TH2I(rpclv1triggerhighpt_etaphistat_title_char,
1538  rpclv1triggerhighpt_etaphistat_title_char, 15, 0, 15,
1539  15, 0, 15);
1540  sc = rpclv1prd_shift.regHist(rpclv1triggerhighpt_etaphistat);
1541  if (sc.isFailure()) {
1542  ATH_MSG_FATAL(
1543  "rpclv1triggerhighpt_etaphistat Failed to register "
1544  "histogram ");
1545  return sc;
1546  }
1547  rpclv1triggerhighpt_etaphistat->SetOption("COLZ");
1548  rpclv1triggerhighpt_etaphistat->GetXaxis()->SetTitle(
1549  "HighPt phi trigger hits / event");
1550  rpclv1triggerhighpt_etaphistat->GetYaxis()->SetTitle(
1551  "HighPt eta trigger hits / event");
1552 
1553  ATH_MSG_DEBUG(
1554  "INSIDE bookHistograms : "
1555  << rpclv1triggerhighpt_etaphistat
1556  << generic_path_rpclv1triggerhighpt_etaphistat.c_str());
1557  // ATH_MSG_DEBUG ( "SHIFT : " << shift );
1558  ATH_MSG_DEBUG("RUN : " << run);
1559  ATH_MSG_DEBUG(
1560  "Booked rpclv1triggertimehighpt_etaphistat successfully");
1561 
1563 
1564  // sector logic statistics
1565  std::string generic_path_rpclv1sectorlogicstat =
1566  generic_path_rpclv1monitoring + "/Overview";
1567  std::string rpclv1sectorlogicstat_title =
1568  "SLChannel_per_SectorLogic";
1569  const char* rpclv1sectorlogicstat_title_char =
1570  rpclv1sectorlogicstat_title.c_str();
1571  TH1* rpclv1sectorlogicstat =
1572  new TH1I(rpclv1sectorlogicstat_title_char,
1573  rpclv1sectorlogicstat_title_char, 64, 0, 64);
1574  sc = rpclv1prd_shift.regHist(rpclv1sectorlogicstat);
1575  if (sc.isFailure()) {
1576  ATH_MSG_FATAL(
1577  "rpclv1sectorlogicstat Failed to register histogram ");
1578  return sc;
1579  }
1580  rpclv1sectorlogicstat->SetFillColor(42);
1581  rpclv1sectorlogicstat->GetXaxis()->SetTitle("SectorLogic");
1582  rpclv1sectorlogicstat->GetYaxis()->SetTitle("Counts/Sector Logic ");
1583 
1584  ATH_MSG_DEBUG("INSIDE bookHistograms : "
1585  << rpclv1sectorlogicstat
1586  << generic_path_rpclv1sectorlogicstat.c_str());
1587  // ATH_MSG_DEBUG ( "SHIFT : " << shift );
1588  ATH_MSG_DEBUG("RUN : " << run);
1589  ATH_MSG_DEBUG("Booked rpclv1sectorlogicstat successfully");
1590 
1592 
1593  // tower per sector logic statistics
1594  std::string generic_path_rpclv1towervslogicstat =
1595  generic_path_rpclv1monitoring + "/Overview";
1596  std::string rpclv1towervslogicstat_title =
1597  "PadChannel_per_SectorLogic";
1598  const char* rpclv1towervslogicstat_title_char =
1599  rpclv1towervslogicstat_title.c_str();
1600  TH2* rpclv1towervslogicstat =
1601  new TH2I(rpclv1towervslogicstat_title_char,
1602  rpclv1towervslogicstat_title_char, 64, 0, 64, 8, 0, 8);
1603  sc = rpclv1prd_shift.regHist(rpclv1towervslogicstat);
1604  if (sc.isFailure()) {
1605  ATH_MSG_FATAL(
1606  "rpclv1towervslogicstat Failed to register histogram ");
1607  return sc;
1608  }
1609  rpclv1towervslogicstat->SetFillColor(42);
1610  rpclv1towervslogicstat->SetOption("COLZ");
1611  rpclv1towervslogicstat->GetXaxis()->SetTitle("SectorLogic");
1612  rpclv1towervslogicstat->GetYaxis()->SetTitle("Pad");
1613 
1614  ATH_MSG_DEBUG("INSIDE bookHistograms : "
1615  << rpclv1towervslogicstat
1616  << generic_path_rpclv1towervslogicstat.c_str());
1617  // ATH_MSG_DEBUG ( "SHIFT : " << shift );
1618  ATH_MSG_DEBUG("RUN : " << run);
1619  ATH_MSG_DEBUG("Booked rpclv1towervslogicstat successfully");
1620 
1622 
1623  // cma channel per sector logic stat
1624  std::string generic_path_rpclv1cmalogicstat =
1625  generic_path_rpclv1monitoring + "/Overview";
1626  std::string rpclv1cmalogicstat_title = "CMChannel_per_SectorLogic";
1627  const char* rpclv1cmalogicstat_title_char =
1628  rpclv1cmalogicstat_title.c_str();
1629  TH2* rpclv1cmalogicstat = new TH2I(rpclv1cmalogicstat_title_char,
1630  rpclv1cmalogicstat_title_char,
1631  64, 0, 64, 8 * 8, 0, 8 * 8);
1632  sc = rpclv1prd_shift.regHist(rpclv1cmalogicstat);
1633  if (sc.isFailure()) {
1634  ATH_MSG_FATAL(
1635  "rpclv1cmalogicstat Failed to register histogram ");
1636  return sc;
1637  }
1638  rpclv1cmalogicstat->SetFillColor(42);
1639  rpclv1cmalogicstat->SetOption("COLZ");
1640  rpclv1cmalogicstat->GetXaxis()->SetTitle("SectorLogic");
1641  rpclv1cmalogicstat->GetYaxis()->SetTitle("Pad*8+Cma");
1642 
1643  ATH_MSG_DEBUG("INSIDE bookHistograms : "
1644  << rpclv1cmalogicstat
1645  << generic_path_rpclv1cmalogicstat.c_str());
1646  // ATH_MSG_DEBUG ( "SHIFT : " << shift );
1647  ATH_MSG_DEBUG("RUN : " << run);
1648  ATH_MSG_DEBUG("Booked rpclv1cmalogicstat successfully");
1649 
1651 
1652  // ROI distribution Low Pt
1653  std::string generic_path_rpclv1ROI_LowPt =
1654  generic_path_rpclv1monitoring + "/Overview";
1655  std::string rpclv1ROI_LowPt_title = "ROI_LowPt_distribution";
1656  const char* rpclv1ROI_LowPt_title_char =
1657  rpclv1ROI_LowPt_title.c_str();
1658  TH2* rpclv1ROI_LowPt =
1659  new TH2I(rpclv1ROI_LowPt_title_char, rpclv1ROI_LowPt_title_char,
1660  64, 0, 64, 28, 0, 28);
1661  sc = rpclv1prd_shift.regHist(rpclv1ROI_LowPt);
1662  if (sc.isFailure()) {
1663  ATH_MSG_FATAL("rpclv1ROI_LowPt Failed to register histogram ");
1664  return sc;
1665  }
1666  rpclv1ROI_LowPt->SetOption("COLZ");
1667  rpclv1ROI_LowPt->GetXaxis()->SetTitle("SectorLogic");
1668  rpclv1ROI_LowPt->GetYaxis()->SetTitle("Region of Interest");
1669 
1670  ATH_MSG_DEBUG("INSIDE bookHistograms : "
1671  << rpclv1ROI_LowPt << rpclv1ROI_LowPt_title.c_str());
1672  // ATH_MSG_DEBUG ( "SHIFT : " << shift );
1673  ATH_MSG_DEBUG("RUN : " << run);
1674  ATH_MSG_DEBUG("Booked rpclv1ROI_LowPt successfully");
1675 
1677 
1678  // ROI distribution High Pt
1679  std::string generic_path_rpclv1ROI_HighPt =
1680  generic_path_rpclv1monitoring + "/Overview";
1681  std::string rpclv1ROI_HighPt_title = "ROI_HighPt_distribution";
1682  const char* rpclv1ROI_HighPt_title_char =
1683  rpclv1ROI_HighPt_title.c_str();
1684  TH2* rpclv1ROI_HighPt =
1685  new TH2I(rpclv1ROI_HighPt_title_char,
1686  rpclv1ROI_HighPt_title_char, 64, 0, 64, 28, 0, 28);
1687  sc = rpclv1prd_shift.regHist(rpclv1ROI_HighPt);
1688  if (sc.isFailure()) {
1689  ATH_MSG_FATAL("rpclv1ROI_HighPt Failed to register histogram ");
1690  return sc;
1691  }
1692  rpclv1ROI_HighPt->SetOption("COLZ");
1693  rpclv1ROI_HighPt->GetXaxis()->SetTitle("SectorLogic");
1694  rpclv1ROI_HighPt->GetYaxis()->SetTitle("Region of Interest");
1695 
1696  ATH_MSG_DEBUG("INSIDE bookHistograms : "
1697  << rpclv1ROI_HighPt
1698  << rpclv1ROI_HighPt_title.c_str());
1699  // ATH_MSG_DEBUG ( "SHIFT : " << shift );
1700  ATH_MSG_DEBUG("RUN : " << run);
1701  ATH_MSG_DEBUG("Booked rpclv1ROI_HighPt successfully");
1702 
1704 
1705  // Trigger_Cond LowPt PHI
1706  std::string generic_path_rpclv1Trigger_cond_LowPt_phi =
1707  generic_path_rpclv1monitoring + "/Overview";
1708  std::string rpclv1Trigger_cond_LowPt_phi_title =
1709  "Trigger_Condition_LowPt_Phi";
1710  const char* rpclv1Trigger_cond_LowPt_phi_title_char =
1711  rpclv1Trigger_cond_LowPt_phi_title.c_str();
1712  TH1* rpclv1Trigger_cond_LowPt_phi =
1713  new TH1I(rpclv1Trigger_cond_LowPt_phi_title_char,
1714  rpclv1Trigger_cond_LowPt_phi_title_char, 16, 0, 16);
1715  sc = rpclv1prd_shift.regHist(rpclv1Trigger_cond_LowPt_phi);
1716  if (sc.isFailure()) {
1717  ATH_MSG_FATAL(
1718  "Trigger_Condition_LowPt_Phi Failed to register "
1719  "histogram ");
1720  return sc;
1721  }
1722  rpclv1Trigger_cond_LowPt_phi->SetFillColor(42);
1723  rpclv1Trigger_cond_LowPt_phi->GetXaxis()->SetTitle(
1724  "Trigger Conditions: 0=Pivot0, 1=Pivot1, 2=LowPt0, 3=LowPt1");
1725  rpclv1Trigger_cond_LowPt_phi->GetYaxis()->SetTitle("Counts");
1726  rpclv1Trigger_cond_LowPt_phi->GetXaxis()->SetBinLabel(1, "None");
1727  rpclv1Trigger_cond_LowPt_phi->GetXaxis()->SetBinLabel(1, "None");
1728 
1729  ATH_MSG_DEBUG("INSIDE bookHistograms : "
1730  << rpclv1Trigger_cond_LowPt_phi
1731  << rpclv1Trigger_cond_LowPt_phi_title.c_str());
1732  // ATH_MSG_DEBUG ( "SHIFT : " << shift );
1733  ATH_MSG_DEBUG("RUN : " << run);
1734  ATH_MSG_DEBUG("Booked Trigger_Condition_LowPt_Phi successfully");
1735 
1737 
1738  // Trigger_Cond LowPt ETA
1739  std::string generic_path_rpclv1Trigger_cond_LowPt_eta =
1740  generic_path_rpclv1monitoring + "/Overview";
1741  std::string rpclv1Trigger_cond_LowPt_eta_title =
1742  "Trigger_Condition_LowPt_Eta";
1743  const char* rpclv1Trigger_cond_LowPt_eta_title_char =
1744  rpclv1Trigger_cond_LowPt_eta_title.c_str();
1745  TH1* rpclv1Trigger_cond_LowPt_eta =
1746  new TH1I(rpclv1Trigger_cond_LowPt_eta_title_char,
1747  rpclv1Trigger_cond_LowPt_eta_title_char, 16, 0, 16);
1748  sc = rpclv1prd_shift.regHist(rpclv1Trigger_cond_LowPt_eta);
1749  if (sc.isFailure()) {
1750  ATH_MSG_FATAL(
1751  "Trigger_Condition_LowPt_eta Failed to register "
1752  "histogram ");
1753  return sc;
1754  }
1755  rpclv1Trigger_cond_LowPt_eta->SetFillColor(42);
1756  rpclv1Trigger_cond_LowPt_eta->GetXaxis()->SetTitle(
1757  "Trigger Conditions: 0=Pivot0, 1=Pivot1, 2=LowPt0, 3=LowPt1");
1758  rpclv1Trigger_cond_LowPt_eta->GetYaxis()->SetTitle("Counts");
1759  rpclv1Trigger_cond_LowPt_eta->GetXaxis()->SetBinLabel(1, "None");
1760  rpclv1Trigger_cond_LowPt_eta->GetXaxis()->SetBinLabel(1, "None");
1761 
1762  ATH_MSG_DEBUG("INSIDE bookHistograms : "
1763  << rpclv1Trigger_cond_LowPt_eta
1764  << rpclv1Trigger_cond_LowPt_eta_title.c_str());
1765  // ATH_MSG_DEBUG ( "SHIFT : " << shift );
1766  ATH_MSG_DEBUG("RUN : " << run);
1767  ATH_MSG_DEBUG("Booked Trigger_Condition_LowPt_eta successfully");
1768 
1770 
1771  // Trigger_Cond HighPt PHI
1772  std::string generic_path_rpclv1Trigger_cond_HighPt_phi =
1773  generic_path_rpclv1monitoring + "/Overview";
1774  std::string rpclv1Trigger_cond_HighPt_phi_title =
1775  "Trigger_Condition_HighPt_Phi";
1776  const char* rpclv1Trigger_cond_HighPt_phi_title_char =
1777  rpclv1Trigger_cond_HighPt_phi_title.c_str();
1778  TH1* rpclv1Trigger_cond_HighPt_phi =
1779  new TH1I(rpclv1Trigger_cond_HighPt_phi_title_char,
1780  rpclv1Trigger_cond_HighPt_phi_title_char, 16, 0, 16);
1781  sc = rpclv1prd_shift.regHist(rpclv1Trigger_cond_HighPt_phi);
1782  if (sc.isFailure()) {
1783  ATH_MSG_FATAL(
1784  "Trigger_Condition_HighPt_Phi Failed to register "
1785  "histogram ");
1786  return sc;
1787  }
1788  rpclv1Trigger_cond_HighPt_phi->SetFillColor(42);
1789  rpclv1Trigger_cond_HighPt_phi->GetXaxis()->SetTitle(
1790  "Trigger Conditions: 0=Trigger from LowPt, 2=HighPt0, "
1791  "3=HighPt1");
1792  rpclv1Trigger_cond_HighPt_phi->GetYaxis()->SetTitle("Counts");
1793  rpclv1Trigger_cond_HighPt_phi->GetXaxis()->SetBinLabel(1, "None");
1794  rpclv1Trigger_cond_HighPt_phi->GetXaxis()->SetBinLabel(1, "None");
1795 
1796  ATH_MSG_DEBUG("INSIDE bookHistograms : "
1797  << rpclv1Trigger_cond_HighPt_phi
1798  << rpclv1Trigger_cond_HighPt_phi_title.c_str());
1799  // ATH_MSG_DEBUG ( "SHIFT : " << shift );
1800  ATH_MSG_DEBUG("RUN : " << run);
1801  ATH_MSG_DEBUG("Booked Trigger_Condition_HighPt_Phi successfully");
1802 
1804 
1805  // Trigger_Cond HighPt ETA
1806  std::string generic_path_rpclv1Trigger_cond_HighPt_eta =
1807  generic_path_rpclv1monitoring + "/Overview";
1808  std::string rpclv1Trigger_cond_HighPt_eta_title =
1809  "Trigger_Condition_HighPt_Eta";
1810  const char* rpclv1Trigger_cond_HighPt_eta_title_char =
1811  rpclv1Trigger_cond_HighPt_eta_title.c_str();
1812  TH1* rpclv1Trigger_cond_HighPt_eta =
1813  new TH1I(rpclv1Trigger_cond_HighPt_eta_title_char,
1814  rpclv1Trigger_cond_HighPt_eta_title_char, 16, 0, 16);
1815  sc = rpclv1prd_shift.regHist(rpclv1Trigger_cond_HighPt_eta);
1816  if (sc.isFailure()) {
1817  ATH_MSG_FATAL(
1818  "Trigger_Condition_HighPt_eta Failed to register "
1819  "histogram ");
1820  return sc;
1821  }
1822  rpclv1Trigger_cond_HighPt_eta->SetFillColor(42);
1823  rpclv1Trigger_cond_HighPt_eta->GetXaxis()->SetTitle(
1824  "Trigger Conditions: 0 =Trigger from LowPt, 2=HighPt0, "
1825  "3=HighPt1");
1826  rpclv1Trigger_cond_HighPt_eta->GetYaxis()->SetTitle("Counts");
1827  rpclv1Trigger_cond_HighPt_eta->GetXaxis()->SetBinLabel(1, "None");
1828  rpclv1Trigger_cond_HighPt_eta->GetXaxis()->SetBinLabel(1, "None");
1829 
1830  ATH_MSG_DEBUG("INSIDE bookHistograms : "
1831  << rpclv1Trigger_cond_HighPt_eta
1832  << rpclv1Trigger_cond_HighPt_eta_title.c_str());
1833  // ATH_MSG_DEBUG ( "SHIFT : " << shift );
1834  ATH_MSG_DEBUG("RUN : " << run);
1835  ATH_MSG_DEBUG("Booked Trigger_Condition_HighPt_eta successfully");
1836 
1838 
1839  // set label for Trigger Condition histograms
1840  for (int ie = 1; ie != 16; ie++) {
1841  std::ostringstream XLabel;
1842  XLabel << "L=";
1843  int first = 0;
1844  for (int layer = 0; layer != 4; layer++) {
1845  int bit = (ie >> layer) & 1;
1846  if (bit == 1) {
1847  if (first == 0) {
1848  XLabel << layer;
1849  } else {
1850  XLabel << "," << layer;
1851  }
1852  first = 1;
1853  rpclv1Trigger_cond_LowPt_phi->GetXaxis()->SetBinLabel(
1854  ie + 1, XLabel.str().c_str());
1855  rpclv1Trigger_cond_LowPt_phi->GetXaxis()->SetBinLabel(
1856  ie + 1, XLabel.str().c_str());
1857 
1858  rpclv1Trigger_cond_LowPt_eta->GetXaxis()->SetBinLabel(
1859  ie + 1, XLabel.str().c_str());
1860  rpclv1Trigger_cond_LowPt_eta->GetXaxis()->SetBinLabel(
1861  ie + 1, XLabel.str().c_str());
1862 
1863  rpclv1Trigger_cond_HighPt_phi->GetXaxis()->SetBinLabel(
1864  ie + 1, XLabel.str().c_str());
1865  rpclv1Trigger_cond_HighPt_phi->GetXaxis()->SetBinLabel(
1866  ie + 1, XLabel.str().c_str());
1867 
1868  rpclv1Trigger_cond_HighPt_eta->GetXaxis()->SetBinLabel(
1869  ie + 1, XLabel.str().c_str());
1870  rpclv1Trigger_cond_HighPt_eta->GetXaxis()->SetBinLabel(
1871  ie + 1, XLabel.str().c_str());
1872  }
1873  }
1874  }
1875 
1877 
1878  /*
1879  //mean time-trigger time
1880  std::string m_generic_path_rpclv1triggertimemean =
1881  generic_path_rpclv1monitoring+"/Overview"; std::string
1882  m_rpclv1triggertimemean_title = "Mean time - Mean Trigger time";
1883  const char* m_rpclv1triggertimemean_title_char =
1884  m_rpclv1triggertimemean_title.c_str (); TH2
1885  *rpclv1triggertimemean=new
1886  TH2I(m_rpclv1triggertimemean_title_char,m_rpclv1triggertimemean_title_char,
1887  1000, 0, 1000, 64, 0, 64 );
1888  sc=rpclv1prd_shift.regHist(rpclv1triggertimemean) ;
1889  if(sc.isFailure()) { ATH_MSG_FATAL ( "rpclv1triggertimemean Failed
1890  to register histogram " ); return sc;
1891  }
1892  rpclv1triggertimemean->SetFillColor(42);
1893  rpclv1triggertimemean->GetXaxis()->SetTitle("16channelgroup + ijk*2
1894  + Cma*12 + Tower*100");
1895  rpclv1triggertimemean->GetYaxis()->SetTitle("SectorLogic");
1896 
1897  ATH_MSG_DEBUG ( "INSIDE bookHistograms : " << rpclv1triggertimemean
1898  << m_generic_path_rpclv1triggertimemean.c_str() ); ATH_MSG_DEBUG (
1899  "SHIFT : " << shift ); ATH_MSG_DEBUG ( "RUN : " << run );
1900  ATH_MSG_DEBUG ( "Booked rpclv1triggertimemean successfully" );
1901 
1903 
1904  //RMS time-trigger time
1905  std::string m_generic_path_rpclv1triggertimeRMS =
1906  generic_path_rpclv1monitoring+"/Overview"; std::string
1907  m_rpclv1triggertimeRMS_title = "RMS of time - Trigger time"; const
1908  char* m_rpclv1triggertimeRMS_title_char =
1909  m_rpclv1triggertimeRMS_title.c_str (); TH2 *rpclv1triggertimeRMS=new
1910  TH2I(m_rpclv1triggertimeRMS_title_char,m_rpclv1triggertimeRMS_title_char,
1911  1000, 0, 1000, 64, 0, 64
1912  ); sc=rpclv1prd_shift.regHist(rpclv1triggertimeRMS) ;
1913  if(sc.isFailure()) { ATH_MSG_FATAL ( "rpclv1triggertimeRMS Failed to
1914  register histogram " ); return sc;
1915  }
1916  rpclv1triggertimeRMS->SetFillColor(42);
1917  rpclv1triggertimeRMS->GetXaxis()->SetTitle("16channelgroup + ijk*2 +
1918  Cma*12 + Tower*100);
1919  rpclv1triggertimeRMS->GetYaxis()->SetTitle("SectorLogic");
1920 
1921  ATH_MSG_DEBUG ( "INSIDE bookHistograms : " << rpclv1triggertimeRMS
1922  << m_generic_path_rpclv1triggertimeRMS.c_str() ); ATH_MSG_DEBUG (
1923  "SHIFT : " << shift ); ATH_MSG_DEBUG ( "RUN : " << run );
1924  ATH_MSG_DEBUG ( "Booked rpclv1triggertimeRMS successfully" );
1925 
1926  */
1927 
1929 
1930  // BCid_per_TriggerType
1931  std::string rpclv1_BCid_per_TriggerType_title =
1932  "rpclv1_BCid_per_TriggerType";
1933  const char* rpclv1_BCid_per_TriggerType_title_char =
1934  rpclv1_BCid_per_TriggerType_title.c_str();
1935 
1936  TH2* rpclv1_BCid_per_TriggerType = new TH2I(
1937  rpclv1_BCid_per_TriggerType_title_char,
1938  rpclv1_BCid_per_TriggerType_title_char, 8, 0, 8, 8 * 2, 0, 16);
1939  sc = rpclv1_shift_dqmf.regHist(rpclv1_BCid_per_TriggerType);
1940  if (sc.isFailure()) {
1941  ATH_MSG_FATAL(
1942  "rpclv1_BCid_per_TriggerType Failed to register "
1943  "histogram ");
1944  return sc;
1945  }
1946  rpclv1_BCid_per_TriggerType->SetFillColor(42);
1947  rpclv1_BCid_per_TriggerType->GetXaxis()->SetTitle("Trigger Type");
1948  rpclv1_BCid_per_TriggerType->GetYaxis()->SetTitle(
1949  "BCId+HPtTrigger*8 for trigger hits");
1950  rpclv1_BCid_per_TriggerType->SetOption("COLZ");
1951 
1952  ATH_MSG_DEBUG(
1953  "INSIDE bookHistograms : " << rpclv1_BCid_per_TriggerType);
1954  // ATH_MSG_DEBUG ( "SHIFT : " << shift );
1955  ATH_MSG_DEBUG("RUN : " << run);
1956  ATH_MSG_DEBUG("Booked rpclv1_BCid_per_TriggerType successfully");
1957  //
1958 
1959  // BCid_per_TriggerCorrelation
1960  std::string rpclv1_BCid_per_TriggerCorr_title =
1961  "rpclv1_BCid_per_TriggerCorrelation";
1962  const char* rpclv1_BCid_per_TriggerCorr_title_char =
1963  rpclv1_BCid_per_TriggerCorr_title.c_str();
1964 
1965  TH2* rpclv1_BCid_per_TriggerCorr =
1966  new TH2I(rpclv1_BCid_per_TriggerCorr_title_char,
1967  rpclv1_BCid_per_TriggerCorr_title_char, 256, 0, 256,
1968  8 * 2, 0, 16);
1969  sc = rpclv1prd_shift.regHist(rpclv1_BCid_per_TriggerCorr);
1970  if (sc.isFailure()) {
1971  ATH_MSG_FATAL(
1972  "rpclv1_BCid_per_TriggerCorr Failed to register "
1973  "histogram ");
1974  return sc;
1975  }
1976  rpclv1_BCid_per_TriggerCorr->SetFillColor(42);
1977  rpclv1_BCid_per_TriggerCorr->GetXaxis()->SetTitle("Trigger Corr");
1978  rpclv1_BCid_per_TriggerCorr->GetYaxis()->SetTitle(
1979  "BCId+HPtTrigger*8 for trigger hits");
1980  rpclv1_BCid_per_TriggerCorr->SetOption("COLZ");
1981 
1982  ATH_MSG_DEBUG(
1983  "INSIDE bookHistograms : " << rpclv1_BCid_per_TriggerCorr);
1984  // ATH_MSG_DEBUG ( "SHIFT : " << shift );
1985  ATH_MSG_DEBUG("RUN : " << run);
1986  ATH_MSG_DEBUG("Booked rpclv1_BCid_per_TriggerCorr successfully");
1987  //
1988 
1989  // cool histogram
1990  // strip profile -> noise and dead strips
1991  if (m_doCoolDB) {
1992  std::vector<std::string> DB_list;
1993  // DB_list.push_back( "StripId" );
1994  DB_list.push_back("ProfileCabling");
1995  DB_list.push_back("ProfileDataCModd");
1996  DB_list.push_back("ProfileDataCMeven");
1997 
1998  for (std::vector<std::string>::const_iterator iter =
1999  DB_list.begin();
2000  iter != DB_list.end(); ++iter) {
2001  for (int isec = 0; isec != 16; isec++) {
2002  for (int idblPhi = 0; idblPhi != 2; idblPhi++) {
2003  bookRPCCoolHistograms(iter, isec, idblPhi,
2004  "Pivot0");
2005  bookRPCCoolHistograms(iter, isec, idblPhi,
2006  "Pivot1");
2007  bookRPCCoolHistograms(iter, isec, idblPhi,
2008  "LowPt0");
2009  bookRPCCoolHistograms(iter, isec, idblPhi,
2010  "LowPt1");
2011  bookRPCCoolHistograms(iter, isec, idblPhi,
2012  "HighPt0");
2013  bookRPCCoolHistograms(iter, isec, idblPhi,
2014  "HighPt1");
2015  }
2016  }
2017  }
2018 
2019  for (uint16_t side = 0; side != 2; side++) {
2020  for (uint16_t slogic = 0; slogic != 32; slogic++) {
2021  for (uint16_t padId = 0; padId != 9; padId++) {
2022  for (uint16_t cmaId = 0; cmaId != 8; cmaId++) {
2023  for (uint16_t ijk = 0; ijk != 6; ijk++) {
2024  if (cmaId > 3 && ijk < 2)
2025  continue;
2026  for (uint16_t channel = 0; channel != 32;
2027  channel++) {
2029  readHandle{m_readKey};
2030  const RpcCablingCondData* readCdo{
2031  *readHandle};
2032  // Get the list of offline channels
2033  // corresponding to the online
2034  // identifier
2035  std::list<Identifier> idList =
2036  readCdo->give_strip_id(
2037  side, slogic, padId, cmaId, ijk,
2038  channel,
2039  &m_idHelperSvc->rpcIdHelper());
2040  std::list<Identifier>::const_iterator
2041  it_list;
2042 
2043  for (it_list = idList.begin();
2044  it_list != idList.end();
2045  ++it_list) {
2046  // and add the digit to the
2047  // collection
2048  Identifier prdcoll_id = *it_list;
2049  std::vector<std::string>
2050  rpclayersectorsidename = RpcGM::
2053  ->rpcIdHelper(),
2054  prdcoll_id, 0);
2055  std::string sector_dphi_layer =
2056  rpclayersectorsidename[12];
2057 
2058  std::vector<int> RpcStrip =
2060  MuonDetMgr,
2062  ->rpcIdHelper(),
2063  prdcoll_id, 0);
2064  int strip_dbindex =
2066  MuonDetMgr,
2068  ->rpcIdHelper(),
2069  prdcoll_id, 0))
2070  .at(16); // cool strip
2071  // profile
2072  if (m_doCoolDB) {
2073  TH1* rpcCool_PanelIdHist =
2074  nullptr;
2075  sc = rpcCoolDb.getHist(
2076  rpcCool_PanelIdHist,
2077  sector_dphi_layer +
2078  "_ProfileCabling");
2079  if (sc.isFailure())
2081  "couldn't get "
2082  << sector_dphi_layer
2083  << "_ProfileCabling");
2084 
2085  if (rpcCool_PanelIdHist) {
2086  rpcCool_PanelIdHist->Fill(
2087  strip_dbindex);
2088  }
2089  }
2090  }
2091  }
2092  }
2093  }
2094  }
2095  }
2096  }
2097 
2098  } // end if (m_doCoolDB)
2099 
2100  } // isNewRun
2101 
2102  } // AthenaMonManager::tier0 || AthenaMonManager::tier0Raw
2103 
2104  return sc;
2105 }

◆ 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 782 of file ManagedMonitorToolBase.cxx.

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

◆ bookRPCCoolHistograms()

void RpcLv1RawDataValAlg::bookRPCCoolHistograms ( std::vector< std::string >::const_iterator &  m_iter,
int  isec,
int  idblPhi,
const std::string &  m_layer 
)
private

Definition at line 2319 of file RpcLv1RawDataValAlg.cxx.

2321  {
2322  StatusCode sc = StatusCode::SUCCESS;
2323 
2324  std::string generic_path_rpcmonitoring =
2325  "Muon/MuonRawDataMonitoring/RPCLV1";
2326  MonGroup rpcCoolDb(this, generic_path_rpcmonitoring + "/CoolDB", run,
2328 
2329  char histName_char[100];
2330  sprintf(histName_char, "Sector%.2d_%s_dblPhi%d", isec + 1, layer.c_str(),
2331  idblPhi + 1);
2332  // example: Sector01_Pivot0_dblPhi1_StripId
2333 
2334  std::string histName = histName_char;
2335  histName += "_";
2336  histName += *iter; // histName += m_coolQuantity ;
2337  int istatPhi = int(isec / 2);
2338  int iName = 0;
2339  int kName = 0;
2340  int ig = 0;
2341  int iNameMax = 0;
2342  int ir = 0;
2343 
2344  if (isec == 12) {
2345  // if ( layer.find("Pivot",0) )
2346  if (layer == "Pivot0" || layer == "Pivot1") {
2347  iName = 1;
2348  iNameMax = 2;
2349  ir = 2;
2350  ig = atoi((layer.substr(5, 1)).c_str());
2351  }
2352  if (layer == "LowPt0" || layer == "LowPt1") {
2353  iName = 1;
2354  iNameMax = 2;
2355  ir = 1;
2356  ig = atoi((layer.substr(5, 1)).c_str());
2357  }
2358  if (layer == "HighPt0" || layer == "HighPt1") {
2359  iName = 4;
2360  iNameMax = iName;
2361  ir = 1;
2362  ig = atoi((layer.substr(6, 1)).c_str());
2363  }
2364  } // sector 13
2365  else if (isec == 11 || isec == 13) {
2366  if (layer == "Pivot0" || layer == "Pivot1") {
2367  iName = 8;
2368  iNameMax = 10;
2369  ir = 2;
2370  ig = atoi((layer.substr(5, 1)).c_str());
2371  }
2372  if (layer == "LowPt0" || layer == "LowPt1") {
2373  iName = 8;
2374  iNameMax = iName;
2375  ir = 1;
2376  ig = atoi((layer.substr(5, 1)).c_str());
2377  }
2378  if (layer == "HighPt0" || layer == "HighPt1") {
2379  iName = 9; // or 10 ;
2380  iNameMax = 10;
2381  ir = 1; // doubletR=2 -> upgrade of Atlas
2382  ig = atoi((layer.substr(6, 1)).c_str());
2383  }
2384  } // end sectors 12 and 14
2385  else {
2386  // if ( layer.find("Pivot",0) )
2387  if (layer == "Pivot0" || layer == "Pivot1") {
2388  iName = 2 + (isec % 2);
2389  ir = 2;
2390  ig = atoi((layer.substr(5, 1)).c_str());
2391  }
2392  if (layer == "LowPt0" || layer == "LowPt1") {
2393  iName = 2 + (isec % 2);
2394  ir = 1;
2395  ig = atoi((layer.substr(5, 1)).c_str());
2396  }
2397  if (layer == "HighPt0" || layer == "HighPt1") {
2398  iName = 4 + (isec % 2);
2399  ir = 1;
2400  ig = atoi((layer.substr(6, 1)).c_str());
2401  }
2402  iNameMax = iName;
2403  }
2404 
2405  kName = iName;
2406  if (iName == 1)
2407  kName = 53;
2408 
2409  int NTotStripsSideA = 1;
2410  int NTotStripsSideC = 1;
2411 
2412  // MuonDetectorManager from the conditions store
2415  const MuonGM::MuonDetectorManager* MuonDetMgr =
2416  DetectorManagerHandle.cptr();
2417  if (!MuonDetMgr) {
2418  ATH_MSG_ERROR(
2419  "nullptr to the read MuonDetectorManager conditions object");
2420  return;
2421  }
2422  Identifier rpcId = m_idHelperSvc->rpcIdHelper().channelID(
2423  kName, 1, istatPhi + 1, ir, 1, idblPhi + 1, 1, 1,
2424  1); // last 3 arguments are: int doubletPhi, int gasGap, int
2425  // measuresPhi, int strip
2426  if (!rpcId.is_valid()) {
2427  ATH_MSG_WARNING("Could not get valid Identifier for stationName="
2428  << kName << ", eta=1, phi=" << istatPhi + 1
2429  << ", doubletR=" << ir);
2430  }
2431  const MuonGM::RpcReadoutElement* rpc =
2432  MuonDetMgr->getRpcReadoutElement(rpcId);
2433 
2434  if (rpc) {
2435  Identifier idr = rpc->identify();
2436  std::vector<int> rpcstripshift = RpcGM::RpcStripShift(
2437  MuonDetMgr, m_idHelperSvc->rpcIdHelper(), idr, 0);
2438  NTotStripsSideA = rpcstripshift[6] + rpcstripshift[17];
2439  }
2440  rpcId = m_idHelperSvc->rpcIdHelper().channelID(
2441  kName, -1, istatPhi + 1, ir, 1, idblPhi + 1, 1, 1,
2442  1); // last 3 arguments are: int doubletPhi, int gasGap, int
2443  // measuresPhi, int strip
2444  if (!rpcId.is_valid()) {
2445  ATH_MSG_WARNING("Could not get valid Identifier for stationName="
2446  << kName << ", eta=-1, phi=" << istatPhi + 1
2447  << ", doubletR=" << ir);
2448  }
2449  rpc = MuonDetMgr->getRpcReadoutElement(rpcId);
2450 
2451  if (rpc) {
2452  Identifier idr = rpc->identify();
2453  std::vector<int> rpcstripshift = RpcGM::RpcStripShift(
2454  MuonDetMgr, m_idHelperSvc->rpcIdHelper(), idr, 0);
2455  NTotStripsSideC = rpcstripshift[7] + rpcstripshift[18];
2456  }
2457 
2458  TH1* rpcCoolHisto = new TH1F(histName.c_str(), histName.c_str(),
2459  NTotStripsSideC + NTotStripsSideA,
2460  -NTotStripsSideC, NTotStripsSideA);
2461 
2462  sc = rpcCoolDb.regHist(rpcCoolHisto);
2463  if (sc.isFailure())
2464  ATH_MSG_WARNING("couldn't register " << histName << "hist to MonGroup");
2465  rpcCoolHisto->GetXaxis()->SetTitle("strip");
2466 
2467  // Fill strip Id histogram
2468  if ((histName.find("ProfileCabling", 0)) != std::string::npos) {
2469  TH1* rpcCool_PanelIdHist = nullptr;
2470  sc = rpcCoolDb.getHist(rpcCool_PanelIdHist, histName);
2471  if (sc.isFailure())
2472  ATH_MSG_WARNING("couldn't get " << histName << " hist");
2473  rpcCool_PanelIdHist->GetYaxis()->SetTitle("strip Id");
2474  rpcCool_PanelIdHist->SetBit(TH1::kIsAverage);
2475  int rpcElemPhiStrip;
2476  int rpcElemEtaStrip;
2477  int coolStripIndex = 0;
2478 
2479  for (int ieta = 0; ieta != 17; ieta++) {
2480  for (int iNameF = iName; iNameF != iNameMax + 1; iNameF++) {
2481  kName = iNameF;
2482  if (iNameF == 1)
2483  kName = 53;
2484  if (kName > 10 && kName != 53)
2485  continue;
2486  for (int iz = 0; iz != 3; iz++) {
2487  int irc = ir;
2488  if (std::abs(ieta - 8) == 7 && ir == 1 && kName == 2)
2489  continue;
2490  if (isec == 12 && std::abs(ieta - 8) == 6 && ir == 1 &&
2491  kName == 2)
2492  continue;
2493  if (std::abs(ieta - 8) == 7 && ir == 2)
2494  irc = 1;
2495  if (isec == 12 && std::abs(ieta - 8) == 6 && ir == 2)
2496  irc = 1;
2497 
2498  rpcId = m_idHelperSvc->rpcIdHelper().channelID(
2499  kName, ieta - 8, istatPhi + 1, irc, iz + 1, idblPhi + 1,
2500  1, 1,
2501  1); // last 3 arguments are: int doubletPhi, int
2502  // gasGap, int measuresPhi, int strip
2503  if (!rpcId.is_valid()) {
2505  "Could not get valid Identifier for stationName="
2506  << kName << ", eta=" << ieta - 8
2507  << ", phi=" << istatPhi + 1 << ", doubletR=" << irc
2508  << ", doubletZ=" << iz + 1
2509  << ", doubletPhi=" << idblPhi + 1);
2510  continue;
2511  }
2512  const MuonGM::RpcReadoutElement* rpc =
2513  MuonDetMgr->getRpcReadoutElement(rpcId);
2514  if (!rpc)
2515  continue;
2516 
2517  if (iz + 1 != rpc->getDoubletZ()) {
2518  continue;
2519  }
2520  Identifier idr =
2521  m_idHelperSvc->rpcIdHelper().parentID(rpc->identify());
2522  rpcElemPhiStrip = int(rpc->NphiStrips());
2523  rpcElemEtaStrip = int(rpc->NetaStrips());
2524 
2525  for (int istripEta = 0; istripEta != rpcElemEtaStrip;
2526  istripEta++) {
2527  Identifier strip_id =
2528  m_idHelperSvc->rpcIdHelper().channelID(
2529  idr, iz + 1, idblPhi + 1, ig + 1, 0,
2530  istripEta + 1);
2531  if (strip_id == 0)
2532  continue;
2533  coolStripIndex =
2534  (RpcGM::RpcStripShift(MuonDetMgr,
2535  m_idHelperSvc->rpcIdHelper(),
2536  strip_id, 0))
2537  .at(16);
2538  rpcCool_PanelIdHist->Fill(coolStripIndex, -1);
2539  }
2540  for (int istripPhi = 0; istripPhi != rpcElemPhiStrip;
2541  istripPhi++) {
2542  Identifier strip_id =
2543  m_idHelperSvc->rpcIdHelper().channelID(
2544  idr, iz + 1, idblPhi + 1, ig + 1, 1,
2545  istripPhi + 1);
2546  if (strip_id == 0)
2547  continue;
2548  coolStripIndex =
2549  (RpcGM::RpcStripShift(MuonDetMgr,
2550  m_idHelperSvc->rpcIdHelper(),
2551  strip_id, 0))
2552  .at(16);
2553  rpcCool_PanelIdHist->Fill(coolStripIndex, -1);
2554  }
2555 
2556  } // end loop on doubletZ
2557  }
2558  } // end loop on stationeta
2559 
2560  } // end fill cool histograms with panelId
2561 }

◆ bookRPCLV1cmatimevschHistograms()

StatusCode RpcLv1RawDataValAlg::bookRPCLV1cmatimevschHistograms ( const std::string &  m_sectorlogic_name,
const std::string &  m_tower_name,
const std::string &  m_cma_name 
)
private

Definition at line 2107 of file RpcLv1RawDataValAlg.cxx.

2109  {
2110  StatusCode sc = StatusCode::SUCCESS;
2111 
2114  // declare a group of histograms
2115  std::string generic_path_rpclv1monitoring =
2116  "Muon/MuonRawDataMonitoring/RPCLV1";
2117  MonGroup rpclv1prd_expert(
2118  this,
2119  generic_path_rpclv1monitoring + "/TriggerRoad/" + sectorlogic_name,
2121  MuonDQAHistList& lst = m_stationHists.getList(sectorlogic_name);
2122 
2123  std::string generic_path_RPCLV1cmatimevsch =
2124  generic_path_rpclv1monitoring + "/" + sectorlogic_name + "/" +
2125  tower_name + "/rpclv1cosmic_cmatimevsch" + cma_name;
2126  std::string RPCLV1cmatimevsch_title =
2127  sectorlogic_name + "_" + tower_name + cma_name + "_time_vs_channel";
2128  const char* RPCLV1cmatimevsch_title_char =
2129  RPCLV1cmatimevsch_title.c_str();
2130  TH2* RPCLV1cmatimevsch =
2131  new TH2I(RPCLV1cmatimevsch_title_char, RPCLV1cmatimevsch_title_char,
2132  32 * 7 / m_rpclv1reducenbins, 0, 32 * 7, 64, 0, 64);
2133  lst.addHist(RPCLV1cmatimevsch);
2134  RPCLV1cmatimevsch->SetFillColor(42);
2135  RPCLV1cmatimevsch->SetMarkerColor(1);
2136  RPCLV1cmatimevsch->SetMarkerStyle(21);
2137  RPCLV1cmatimevsch->SetMarkerSize(0.2);
2138  RPCLV1cmatimevsch->GetXaxis()->SetTitle("Channel + 32 * ijk");
2139  RPCLV1cmatimevsch->GetYaxis()->SetTitle("Time=bcId*8+ticks");
2140 
2141  ATH_MSG_DEBUG("INSIDE bookRPCLV1cmatimevschHistograms : "
2142  << RPCLV1cmatimevsch
2143  << generic_path_RPCLV1cmatimevsch.c_str());
2144  // ATH_MSG_DEBUG ( "SHIFT : " << shift );
2145  ATH_MSG_DEBUG("RUN : " << run);
2146 
2147  sc = rpclv1prd_expert.regHist(RPCLV1cmatimevsch);
2148  if (sc.isFailure())
2150  "couldn't register RPCLV1cmatimevsch hist to MonGroup");
2151 
2152  std::string generic_path_RPCLV1cmatimetriggervsch =
2153  generic_path_rpclv1monitoring + "/" + sectorlogic_name + "/" +
2154  tower_name + "/rpclv1cosmic_cmatimetriggervsch" + cma_name;
2155  std::string RPCLV1cmatimetriggervsch_title =
2156  sectorlogic_name + "_" + tower_name + cma_name +
2157  "_(time-triggertime)_vs_channel";
2158  const char* RPCLV1cmatimetriggervsch_title_char =
2159  RPCLV1cmatimetriggervsch_title.c_str();
2160 
2161  TH2* RPCLV1cmatimetriggervsch =
2162  new TH2I(RPCLV1cmatimetriggervsch_title_char,
2163  RPCLV1cmatimetriggervsch_title_char,
2164  32 * 7 / m_rpclv1reducenbins, 0, 32 * 7, 2 * 64, -64, 64);
2165  lst.addHist(RPCLV1cmatimetriggervsch);
2166  RPCLV1cmatimetriggervsch->SetFillColor(42);
2167  RPCLV1cmatimetriggervsch->SetMarkerColor(1);
2168  RPCLV1cmatimetriggervsch->SetMarkerStyle(21);
2169  RPCLV1cmatimetriggervsch->SetMarkerSize(0.2);
2170  RPCLV1cmatimetriggervsch->GetXaxis()->SetTitle("Channel + 32 * ijk");
2171  RPCLV1cmatimetriggervsch->GetYaxis()->SetTitle("Time=bcId*8+ticks");
2172 
2173  ATH_MSG_DEBUG("INSIDE bookRPCLV1cmatimevschHistograms : "
2174  << RPCLV1cmatimetriggervsch
2175  << generic_path_RPCLV1cmatimetriggervsch.c_str());
2176  // ATH_MSG_DEBUG ( "SHIFT : " << shift );
2177  ATH_MSG_DEBUG("RUN : " << run);
2178 
2179  sc = rpclv1prd_expert.regHist(RPCLV1cmatimetriggervsch);
2180  if (sc.isFailure())
2182  "couldn't register RPCLV1cmatimetriggervsch hist to MonGroup");
2183 
2184  } // AthenaMonManager::tier0 || AthenaMonManager::tier0Raw
2185  return sc;
2186 }

◆ bookRPCLV1ProfilesHistograms()

StatusCode RpcLv1RawDataValAlg::bookRPCLV1ProfilesHistograms ( int  m_i_sector,
const std::string &  m_sectorlogic_name,
const std::string &  m_cma_name,
int  m_i_ijk,
const std::string &  m_ijk_name 
)
private

profile cabling

Definition at line 2242 of file RpcLv1RawDataValAlg.cxx.

2244  {
2245  // book profiles histograms
2246 
2247  StatusCode sc = StatusCode::SUCCESS;
2250  int N_pad = 6;
2251  std::string cm_ch_label = "64";
2252  std::string pad_ch_label = "128";
2253 
2254  // declare a group of histograms
2255  std::string generic_path_rpclv1monitoring =
2256  "Muon/MuonRawDataMonitoring/RPCLV1";
2257  MonGroup rpclv1prd_expert(
2258  this,
2259  generic_path_rpclv1monitoring + "/Profiles/" + sectorlogic_name,
2261  MuonDQAHistList& lst = m_stationHists.getList(sectorlogic_name);
2262 
2263  std::string generic_path_RPCLV1Profiles =
2264  generic_path_rpclv1monitoring + "/" + sectorlogic_name + "_" +
2265  cma_name + "_" + ijk_name + "_profiles";
2266 
2267  if ((i_sector % 4) == 0 || (i_sector % 4) == 3) {
2268  N_pad = 7;
2269  }
2270  int N_bin_profile = 0;
2271  if (i_ijk < 2 || i_ijk == 6) {
2272  N_bin_profile = 2 * 32 * N_pad;
2273  cm_ch_label = "32";
2274  pad_ch_label = "64";
2275  } else {
2276  N_bin_profile = 2 * 64 * N_pad;
2277  }
2278  /*
2279  if ( m_i_cmaId==0 || m_i_cmaId==1 ) { cma_name="Cma0_1" ; }
2280  if ( m_i_cmaId==2 || m_i_cmaId==3 ) { cma_name="Cma2_3" ; }
2281  if ( m_i_cmaId==4 || m_i_cmaId==5 ) { cma_name="Cma4_5" ; }
2282  if ( m_i_cmaId==6 || m_i_cmaId==7 ) { cma_name="Cma6_7" ; }
2283 
2284  if ( i_ijk==2 || i_ijk==3 ) { ijk_name="ijk2_3" ; }
2285  if ( i_ijk==4 || i_ijk==5 ) { ijk_name="ijk4_5" ; } */
2286 
2287  std::string RPCLV1Profiles_title =
2288  sectorlogic_name + "_" + cma_name + "_" + ijk_name + "_Profiles";
2289  const char* RPCLV1Profiles_title_char = RPCLV1Profiles_title.c_str();
2290  TH1* RPCLV1Profiles =
2291  new TH1I(RPCLV1Profiles_title_char, RPCLV1Profiles_title_char,
2292  N_bin_profile / m_rpclv1reducenbins, 0, N_bin_profile);
2293  lst.addHist(RPCLV1Profiles);
2294 
2295  std::string x_axis_title = "Channel+ (ijk-ijk_off)*32 +cm*" +
2296  cm_ch_label + " +pad*" + pad_ch_label;
2297  const char* x_axis_title_char = x_axis_title.c_str();
2298  RPCLV1Profiles->GetXaxis()->SetTitle(x_axis_title_char);
2299  RPCLV1Profiles->GetYaxis()->SetTitle("Counts ");
2300  RPCLV1Profiles->SetFillColor(42); // 38
2301 
2302  ATH_MSG_DEBUG("INSIDE bookRPCLV1ProfilesHistograms : "
2303  << RPCLV1Profiles << generic_path_RPCLV1Profiles.c_str());
2304  // ATH_MSG_DEBUG ( "SHIFT : " << shift );
2305  ATH_MSG_DEBUG("RUN : " << run);
2306 
2307  sc = rpclv1prd_expert.regHist(RPCLV1Profiles);
2308  if (sc.isFailure())
2310  "couldn't register RPCLV1Profiles hist to MonGroup");
2311 
2312  } // AthenaMonManager::tier0 || AthenaMonManager::tier0Raw
2313 
2314  return sc;
2315 }

◆ bookRPCLV1TriggerRoadHistograms()

StatusCode RpcLv1RawDataValAlg::bookRPCLV1TriggerRoadHistograms ( const std::string &  m_sectorlogic_name,
const std::string &  m_tower_name,
const std::string &  m_cma_name,
const std::string &  m_thr_name 
)
private

Definition at line 2188 of file RpcLv1RawDataValAlg.cxx.

2192 {
2193  // Trigger Road LowPt vs ijk channel
2194  StatusCode sc = StatusCode::SUCCESS;
2195 
2198  // declare a group of histograms
2199  std::string generic_path_rpclv1monitoring =
2200  "Muon/MuonRawDataMonitoring/RPCLV1";
2201  MonGroup rpclv1prd_expert(
2202  this,
2203  generic_path_rpclv1monitoring + "/TriggerRoad/" + sectorlogic_name,
2205  MuonDQAHistList& lst = m_stationHists.getList(sectorlogic_name);
2206 
2207  std::string generic_path_RPCLV1TriggerRoad =
2208  generic_path_rpclv1monitoring + "/" + sectorlogic_name + "/" +
2209  tower_name + "/rpclv1cosmic_TriggerRoad" + cma_name + thr_name;
2210  std::string RPCLV1TriggerRoad_title = sectorlogic_name + "_" +
2211  tower_name + cma_name + thr_name +
2212  "_TriggerRoad";
2213  const char* RPCLV1TriggerRoad_title_char =
2214  RPCLV1TriggerRoad_title.c_str();
2215  TH2* RPCLV1TriggerRoad = new TH2I(
2216  RPCLV1TriggerRoad_title_char, RPCLV1TriggerRoad_title_char,
2217  32 / m_rpclv1reducenbins, 0, 32, 64 / m_rpclv1reducenbins, 0, 64);
2218  lst.addHist(RPCLV1TriggerRoad);
2219  RPCLV1TriggerRoad->SetOption("COLZ");
2220  RPCLV1TriggerRoad->GetXaxis()->SetTitle("Channel (ijk=6)");
2221  RPCLV1TriggerRoad->GetYaxis()->SetTitle("Confirm channel");
2222 
2223  ATH_MSG_DEBUG("INSIDE bookRPCLV1TriggerRoadHistograms : "
2224  << RPCLV1TriggerRoad
2225  << generic_path_RPCLV1TriggerRoad.c_str());
2226  // ATH_MSG_DEBUG ( "SHIFT : " << shift );
2227  ATH_MSG_DEBUG("RUN : " << run);
2228 
2229  sc = rpclv1prd_expert.regHist(RPCLV1TriggerRoad);
2230  if (sc.isFailure())
2232  "couldn't register RPCLV1TriggerRoad hist to MonGroup");
2233 
2234  } // AthenaMonManager::tier0 || AthenaMonManager::tier0Raw
2235  return sc;
2236 }

◆ 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 SCTHitsNoiseMonTool, SCTTracksMonTool, SCTLorentzMonTool, TileRawChannelMonTool, TileDigitsMonTool, DQTDataFlowMonTool, DQTNonCollBkg_ZDC, DQTGlobalWZFinderTool, DataQualityFatherMonTool, DQTDetSynchMonTool, DQTMuonIDTrackTool, TileCellNoiseMonTool, CscCalibMonToolBase, CscPrdValAlg, and CscRdoValAlg.

Definition at line 1901 of file ManagedMonitorToolBase.cxx.

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

◆ convertLWHists()

StatusCode ManagedMonitorToolBase::convertLWHists ( )
virtualinherited

Deal with the LW histograms.

Implements IMonitorToolBase.

Definition at line 1377 of file ManagedMonitorToolBase.cxx.

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

◆ 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 1843 of file ManagedMonitorToolBase.cxx.

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

◆ deregHist() [1/2]

StatusCode ManagedMonitorToolBase::deregHist ( LWHist h)
virtualinherited

Definition at line 1826 of file ManagedMonitorToolBase.cxx.

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

◆ 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 1819 of file ManagedMonitorToolBase.cxx.

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

◆ 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 1861 of file ManagedMonitorToolBase.cxx.

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

◆ 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 1851 of file ManagedMonitorToolBase.cxx.

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

◆ 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 RpcLv1RawDataValAlg::fillHistograms ( )
virtual

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

Reimplemented from ManagedMonitorToolBase.

Definition at line 103 of file RpcLv1RawDataValAlg.cxx.

105 {
106  StatusCode sc = StatusCode::SUCCESS;
107 
112  "RpcLv1RawDataValAlg::RPCLV1 RawData Monitoring Histograms being "
113  "filled");
114 
115  if (StoreTriggerType() != StatusCode::SUCCESS) {
116  ATH_MSG_ERROR("Could not find StoreTriggerType");
117  } // retreive and store trigger type for this event
118 
119  ATH_MSG_DEBUG("GetTriggerType() " << GetTriggerType());
120 
121  // MuonDetectorManager from the conditions store
124  const MuonGM::MuonDetectorManager* MuonDetMgr =
125  DetectorManagerHandle.cptr();
126  if (!MuonDetMgr) {
128  "nullptr to the read MuonDetectorManager conditions object");
129  return StatusCode::FAILURE;
130  }
131 
132  int i_triggertimelowpt = -1;
133  int i_triggertimehighpt = -1;
134  int n_triggerlowpt = 0;
135  int n_triggerlowpt_eta = 0;
136  int n_triggerlowpt_phi = 0;
137  int n_triggerhighpt = 0;
138  int n_triggerhighpt_eta = 0;
139  int n_triggerhighpt_phi = 0;
140 
141  int IJKtriggerLowPtPhi = 0;
142  int IJKtriggerLowPtEta = 0;
143  int IJKtriggerHighPtPhi = 0;
144  int IJKtriggerHighPtEta = 0;
145 
146  int nFiredChannels = 0;
147 
148  int PhiOr[64][4][4][32] = {{{{0}}}};
149 
150  // Prepare the retrieval of the RpcPadContainer
151 
153 
154  // begin loop to get trigger time
155  for (RpcPadContainer::const_iterator rdoColli = rpcRDO->begin();
156  rdoColli != rpcRDO->end(); ++rdoColli) {
157  const RpcPad* rdoColl = *rdoColli;
158  // Now loop on the RDO to find the ones with trigger hits ijk=6
159  if ((rdoColl)->size() != 0) {
160  RpcPad::const_iterator itCM = (rdoColl)->begin();
161  for (; itCM != (rdoColl)->end(); ++itCM) {
162  RpcCoinMatrix::const_iterator itChan = (*itCM)->begin();
163 
164  for (; itChan != (*itCM)->end(); ++itChan) {
165  nFiredChannels++;
166 
167  int i_cmaId = (*itCM)->onlineId();
168  int i_bcId = (*itChan)->bcid();
169  int i_time = (*itChan)->time();
170  int i_ijk = (*itChan)->ijk();
171 
172  if (i_ijk == 6) {
173  if (i_cmaId < 4) {
174  n_triggerlowpt++;
175  i_triggertimelowpt += i_bcId * 8 + i_time;
176  if (i_cmaId < 2) { // i_cmaId==0 || i_cmaId==1
177  n_triggerlowpt_phi++;
178  } else {
179  n_triggerlowpt_eta++;
180  }
181  } else {
182  n_triggerhighpt++;
183  i_triggertimehighpt += i_bcId * 8 + i_time;
184  if (i_cmaId <
185  6) { // i_cmaId==4 || i_cmaId==5
186  n_triggerhighpt_phi++;
187  } else {
188  n_triggerhighpt_eta++;
189  }
190  }
191  }
192  }
193  }
194  }
195  }
196  // end loop to get trigger time
197 
198  if (n_triggerlowpt > 0)
199  i_triggertimelowpt = i_triggertimelowpt / n_triggerlowpt;
200  if (n_triggerhighpt > 0)
201  i_triggertimehighpt = i_triggertimehighpt / n_triggerhighpt;
202 
203  // counts rpc hits
204  std::string generic_path_rpclv1monitoring =
205  "Muon/MuonRawDataMonitoring/RPCLV1";
206 
207  MonGroup rpclv1prd_shift(this,
208  generic_path_rpclv1monitoring + "/Overview",
210  MonGroup rpclv1_shift_dqmf(this,
211  generic_path_rpclv1monitoring + "/GLOBAL",
213  MonGroup rpcCoolDb(this, generic_path_rpclv1monitoring + "/CoolDB", run,
215 
216  TH1* rpclv1_hitperEvent = nullptr;
217  sc = rpclv1prd_shift.getHist(rpclv1_hitperEvent, "rpclv1_hitperEvent");
218  if (sc.isFailure())
220  "couldn't register rpclv1_hitperEvent hist to MonGroup");
221  rpclv1_hitperEvent->Fill(float(nFiredChannels));
222 
223  TH1* rpclv1triggerlowpt_etastat = nullptr;
224  sc = rpclv1prd_shift.getHist(rpclv1triggerlowpt_etastat,
225  "Trigger_Hits_LowPt_eta_Stat");
226  if (sc.isFailure())
228  "couldn't register rpclv1triggerlowpt_etastat hist to "
229  "MonGroup");
230  rpclv1triggerlowpt_etastat->Fill(float(n_triggerlowpt_eta));
231 
232  TH1* rpclv1triggerlowpt_phistat = nullptr;
233  sc = rpclv1prd_shift.getHist(rpclv1triggerlowpt_phistat,
234  "Trigger_Hits_LowPt_phi_Stat");
235  if (sc.isFailure())
237  "couldn't register rpclv1triggerlowpt_phistat hist to "
238  "MonGroup");
239  rpclv1triggerlowpt_phistat->Fill(float(n_triggerlowpt_phi));
240 
241  TH2* rpclv1triggerlowpt_etaphistat = nullptr;
242  sc = rpclv1prd_shift.getHist(rpclv1triggerlowpt_etaphistat,
243  "Trigger_Hits_Lowpt_etaphi_Stat");
244  if (sc.isFailure())
246  "couldn't register Trigger_Hits_Lowpt_etaphi_Stat hist to "
247  "MonGroup");
248  rpclv1triggerlowpt_etaphistat->Fill(float(n_triggerlowpt_phi),
249  float(n_triggerlowpt_eta));
250 
251  TH1* rpclv1triggerhighpt_etastat = nullptr;
252  sc = rpclv1prd_shift.getHist(rpclv1triggerhighpt_etastat,
253  "Trigger_Hits_HighPt_eta_Stat");
254  if (sc.isFailure())
256  "couldn't register rpclv1triggerhighpt_eta_stat hist to "
257  "MonGroup");
258  rpclv1triggerhighpt_etastat->Fill(float(n_triggerhighpt_eta));
259 
260  TH1* rpclv1triggerhighpt_phistat = nullptr;
261  sc = rpclv1prd_shift.getHist(rpclv1triggerhighpt_phistat,
262  "Trigger_Hits_HighPt_phi_Stat");
263  if (sc.isFailure())
265  "couldn't register rpclv1triggerhighpt_phi_stat hist to "
266  "MonGroup");
267  rpclv1triggerhighpt_phistat->Fill(float(n_triggerhighpt_phi));
268 
269  TH2* rpclv1triggerhighpt_etaphistat = nullptr;
270  sc = rpclv1prd_shift.getHist(rpclv1triggerhighpt_etaphistat,
271  "Trigger_Hits_HighPt_etaphi_Stat");
272  if (sc.isFailure())
274  "couldn't register Trigger_Hits_HighPt_etaphi_Stat hist to "
275  "MonGroup");
276  rpclv1triggerhighpt_etaphistat->Fill(float(n_triggerhighpt_phi),
277  float(n_triggerhighpt_eta));
278 
279  TH2* rpclv1ROI_LowPt = nullptr;
280  sc = rpclv1prd_shift.getHist(rpclv1ROI_LowPt, "ROI_LowPt_distribution");
281  if (sc.isFailure())
283  "couldn't register ROI_LowPt_distribution hist to MonGroup");
284 
285  TH2* rpclv1ROI_HighPt = nullptr;
286  sc = rpclv1prd_shift.getHist(rpclv1ROI_HighPt,
287  "ROI_HighPt_distribution");
288  if (sc.isFailure())
290  "couldn't register ROI_HighPt_distribution hist to MonGroup");
291 
292  TH1* rpclv1sectorlogicstat = nullptr;
293  sc = rpclv1prd_shift.getHist(rpclv1sectorlogicstat,
294  "SLChannel_per_SectorLogic");
295  if (sc.isFailure())
297  "couldn't register rpclv1sectorlogicstat hist to MonGroup");
298 
299  TH1* rpclv1towervslogicstat = nullptr;
300  sc = rpclv1prd_shift.getHist(rpclv1towervslogicstat,
301  "PadChannel_per_SectorLogic");
302  if (sc.isFailure())
304  "couldn't register rpclv1towervslogicstat hist to MonGroup");
305 
306  TH2* rpclv1cmalogicstat = nullptr;
307  sc = rpclv1prd_shift.getHist(rpclv1cmalogicstat,
308  "CMChannel_per_SectorLogic");
309  if (sc.isFailure())
311  "couldn't register rpclv1cmalogicstat hist to MonGroup");
312 
313  TH1* rpclv1_BCid_per_TriggerCorr = nullptr;
314  sc = rpclv1prd_shift.getHist(rpclv1_BCid_per_TriggerCorr,
315  "rpclv1_BCid_per_TriggerCorrelation");
316  if (sc.isFailure())
318  "couldn't register rpclv1_BCid_per_TriggerCorr hist to "
319  "MonGroup");
320 
321  TH2* rpclv1_BCid_vs_SL = nullptr;
322  sc = rpclv1_shift_dqmf.getHist(rpclv1_BCid_vs_SL,
323  "rpclv1_BCid_vs_SectorLogic");
324  if (sc.isFailure())
326  "couldn't register rpclv1_BCid_vs_SectorLogic hist to "
327  "MonGroup");
328 
329  TH2* rpclv1_LPt_BCid_vs_SL = nullptr;
330  sc = rpclv1_shift_dqmf.getHist(rpclv1_LPt_BCid_vs_SL,
331  "rpclv1_LPt_BCid_vs_SectorLogic");
332  if (sc.isFailure())
334  "couldn't register rpclv1_LPt_BCid_vs_SectorLogic hist to "
335  "MonGroup");
336 
337  TH2* rpclv1_HPt_BCid_vs_SL = nullptr;
338  sc = rpclv1_shift_dqmf.getHist(rpclv1_HPt_BCid_vs_SL,
339  "rpclv1_HPt_BCid_vs_SectorLogic");
340  if (sc.isFailure())
342  "couldn't register rpclv1_HPt_BCid_vs_SectorLogic hist to "
343  "MonGroup");
344 
345  TH1* rpclv1_BCid_per_TriggerType = nullptr;
346  sc = rpclv1_shift_dqmf.getHist(rpclv1_BCid_per_TriggerType,
347  "rpclv1_BCid_per_TriggerType");
348  if (sc.isFailure())
350  "couldn't register rpclv1_BCid_per_TriggerType hist to "
351  "MonGroup");
352 
353  TH2* rpclv1_TriggerCond_vs_SL = nullptr;
354  sc = rpclv1_shift_dqmf.getHist(rpclv1_TriggerCond_vs_SL,
355  "TriggerCondition_vs_SectorLogic");
356  if (sc.isFailure())
358  "couldn't register TriggerCondition_vs_SectorLogic hist to "
359  "MonGroup");
360 
361  // logical or
362  TH2* rpclv1_logicalOR_LowPt0 = nullptr;
363  sc = rpclv1prd_shift.getHist(rpclv1_logicalOR_LowPt0,
364  "PhiLogicalOR_LowPt0");
365  if (sc.isFailure())
366  ATH_MSG_WARNING("couldn't get PhiLogicalOR_LowPt0 hist ");
367 
368  TH2* rpclv1_logicalOR_LowPt1 = nullptr;
369  sc = rpclv1prd_shift.getHist(rpclv1_logicalOR_LowPt1,
370  "PhiLogicalOR_LowPt1");
371  if (sc.isFailure())
372  ATH_MSG_WARNING("couldn't get PhiLogicalOR_LowPt1 hist ");
373 
374  TH2* rpclv1_logicalOR_HighPt0 = nullptr;
375  sc = rpclv1prd_shift.getHist(rpclv1_logicalOR_HighPt0,
376  "PhiLogicalOR_HighPt0");
377  if (sc.isFailure())
378  ATH_MSG_WARNING("couldn't get PhiLogicalOR_HighPt0 hist ");
379 
380  TH2* rpclv1_logicalOR_HighPt1 = nullptr;
381  sc = rpclv1prd_shift.getHist(rpclv1_logicalOR_HighPt1,
382  "PhiLogicalOR_HighPt1");
383  if (sc.isFailure())
384  ATH_MSG_WARNING("couldn't get PhiLogicalOR_HighPt1 hist ");
385 
386  TH2* TriggerCondition_vs_CM = nullptr;
387  sc = rpclv1prd_shift.getHist(TriggerCondition_vs_CM,
388  "Trigger_Condition_vs_CM");
389  if (sc.isFailure())
390  ATH_MSG_WARNING("couldn't get TriggerCondition_vs_CM hist ");
391 
392  for (RpcPadContainer::const_iterator rdoColli = rpcRDO->begin();
393  rdoColli != rpcRDO->end(); ++rdoColli) {
394  const RpcPad* rdoColl = *rdoColli;
395  // Now loop on the RDO to find the ones with trigger hits ijk=6
396  if ((rdoColl)->size() != 0) {
397  RpcPad::const_iterator itCM = (rdoColl)->begin();
398  for (; itCM != (rdoColl)->end(); ++itCM) {
399  RpcCoinMatrix::const_iterator itChan = (*itCM)->begin();
400 
401  for (; itChan != (*itCM)->end(); ++itChan) {
402  int i_sector = (rdoColl)->sector();
403  int i_padId = (rdoColl)->onlineId();
404  int i_cmaId = (*itCM)->onlineId();
405  int i_bcId = (*itChan)->bcid();
406  int i_time = (*itChan)->time();
407  int i_ijk = (*itChan)->ijk();
408  int i_channel = (*itChan)->channel();
409  {
410  if (i_ijk == 6) {
411  // look for thresholds ijk=7 in the next rdo's
412  // ijk=6,6...,7 with the same time
413  int i_thr = 99;
415  int thrskip = 0;
416  for (itChanThr = itChan + 1;
417  itChanThr != (*itCM)->end(); ++itChanThr) {
418  if (thrskip == 1)
419  continue;
420  if ((*itChanThr)->ijk() < 6) {
421  thrskip = 1; // search finish
422  continue;
423  }
424  if ((*itChanThr)->bcid() != i_bcId ||
425  (*itChanThr)->time() != i_time) {
426  thrskip = 1; // error if there are
427  // different timing
428  i_thr = 98;
429  continue;
430  }
431  if ((*itChanThr)->ijk() == 7 &&
432  (*itChanThr)->bcid() == i_bcId &&
433  (*itChanThr)->time() == i_time) {
434  i_thr = (*itChanThr)->thr();
435  thrskip = 1; // search finish
436  continue;
437  }
438  }
439 
440  rpclv1_BCid_per_TriggerCorr->Fill(
441  m_trigtype, i_bcId + 8 * int(i_cmaId / 4));
442 
443  for (int k = 0; k != 8 + 1; k++) {
444  int trigBinType =
445  m_trigtype & int(pow(2, float(k)));
446  if (trigBinType != 0)
447  rpclv1_BCid_per_TriggerType->Fill(
448  k, i_bcId + 8 * int(i_cmaId / 4));
449  }
450 
451  rpclv1_BCid_vs_SL->Fill(
452  i_sector, i_bcId + 8 * int(i_cmaId / 4));
453 
454  if (i_cmaId < 4) {
455  rpclv1_LPt_BCid_vs_SL->Fill(i_sector,
456  i_bcId);
457  } else {
458  rpclv1_HPt_BCid_vs_SL->Fill(i_sector,
459  i_bcId);
460  }
461 
462  // Trigger conditions selection begin
463  int NtriggerLowPtPhi = 0;
464  int NtriggerLowPtEta = 0;
465  int NtriggerHighPtPhi = 0;
466  int NtriggerHighPtEta = 0;
467 
468  IJKtriggerLowPtPhi = 0;
469  IJKtriggerLowPtEta = 0;
470  IJKtriggerHighPtPhi = 0;
471  IJKtriggerHighPtEta = 0;
472 
474  (*itCM)->begin();
475  for (; itChan3 != (*itCM)->end(); ++itChan3) {
476  int ijk_trigger = (*itChan3)->ijk();
477  if (ijk_trigger > 5)
478  continue;
479 
480  int Layertrigger = ijk_trigger;
481  if (ijk_trigger == 3)
482  Layertrigger = Layertrigger - 1;
483  if (ijk_trigger == 4)
484  Layertrigger = Layertrigger - 1;
485  if (ijk_trigger == 5)
486  Layertrigger = Layertrigger - 2;
487 
488  if (i_cmaId < 2) {
489  IJKtriggerLowPtPhi =
490  IJKtriggerLowPtPhi |
491  int(pow(2, float(Layertrigger)));
492  NtriggerLowPtPhi++;
493  }
494  if (i_cmaId == 2 || i_cmaId == 3) {
495  IJKtriggerLowPtEta =
496  IJKtriggerLowPtEta |
497  int(pow(2, float(Layertrigger)));
498  NtriggerLowPtEta++;
499  }
500  if (i_cmaId == 4 || i_cmaId == 5) {
501  IJKtriggerHighPtPhi =
502  IJKtriggerHighPtPhi |
503  int(pow(2, float(Layertrigger)));
504  NtriggerHighPtPhi++;
505  }
506  if (i_cmaId == 6 || i_cmaId == 7) {
507  IJKtriggerHighPtEta =
508  IJKtriggerHighPtEta |
509  int(pow(2, float(Layertrigger)));
510  NtriggerHighPtEta++;
511  }
512 
513  // trigger road
514  if (!m_rpclv1hist)
515  continue;
516  if (ijk_trigger < 2)
517  continue;
518  int ConfirmCh = (*itChan3)->channel();
519  if (ijk_trigger == 3)
520  ConfirmCh += 32;
521  if (ijk_trigger == 5)
522  ConfirmCh += 32;
523 
524  char sectorlogic_name_char[1000];
525  sprintf(sectorlogic_name_char,
526  "SectorLogic%d", i_sector);
527  std::string sectorlogic_name =
528  sectorlogic_name_char;
529  char tower_name_char[1000];
530  sprintf(tower_name_char, "Tower%d",
531  i_padId);
532  std::string tower_name = tower_name_char;
533  char cma_name_char[1000];
534  sprintf(cma_name_char, "Cma%d", i_cmaId);
535  std::string cma_name = cma_name_char;
536  char thr_name_char[1000];
537  sprintf(thr_name_char, "Thr%d", i_thr);
538  std::string thr_name = thr_name_char;
539 
540  bool histo_flag = true;
541  for (std::vector<
542  std::string>::const_iterator iter =
544  .begin();
545  iter !=
547  ++iter) {
548  if ((sectorlogic_name + tower_name +
549  cma_name + thr_name) == *iter) {
550  histo_flag = false;
551  }
552  }
553  if (histo_flag) {
555  .push_back(sectorlogic_name +
556  tower_name + cma_name +
557  thr_name);
558  ATH_CHECK(
560  sectorlogic_name, tower_name,
561  cma_name, thr_name));
562  }
563 
564  const MuonDQAHistList& hists =
566  sectorlogic_name);
567  TH2* RPCLV1TriggerRoad = hists.getH2(
568  sectorlogic_name + "_" + tower_name +
569  cma_name + thr_name + "_TriggerRoad");
570  if (RPCLV1TriggerRoad) {
571  RPCLV1TriggerRoad->Fill(
572  float(i_channel), float(ConfirmCh));
573  } else {
575  "RPCLV1TriggerRoad not in hist "
576  "list!");
577  }
578  }
579 
580  // fill histo Trigger Conditions
581  TH2* rpclv1_TriggerLy_vs_SL = nullptr;
582  sc = rpclv1prd_shift.getHist(
583  rpclv1_TriggerLy_vs_SL,
584  "TriggerLayer_vs_SectorLogic");
585  if (sc.isFailure())
587  "couldn't get "
588  "TriggerCondition_vs_SectorLogic hist "
589  "to MonGroup");
590 
591  if (NtriggerLowPtPhi > 0) {
592  TH1* rpclv1Trigger_cond_LowPt_phi = nullptr;
593  sc = rpclv1prd_shift.getHist(
594  rpclv1Trigger_cond_LowPt_phi,
595  "Trigger_Condition_LowPt_Phi");
596  if (sc.isFailure())
598  "couldn't register "
599  "Trigger_Layer_LowPt_Phi hist to "
600  "MonGroup");
601  rpclv1Trigger_cond_LowPt_phi->Fill(
602  float(IJKtriggerLowPtPhi));
603  rpclv1_TriggerLy_vs_SL->Fill(
604  i_sector,
605  IJKtriggerLowPtPhi); // general
606  TriggerCondition_vs_CM->Fill(
607  i_sector * 56 + i_padId * 8 + i_cmaId,
608  IJKtriggerLowPtPhi);
609  }
610  if (NtriggerLowPtEta > 0) {
611  TH1* rpclv1Trigger_cond_LowPt_eta = nullptr;
612  sc = rpclv1prd_shift.getHist(
613  rpclv1Trigger_cond_LowPt_eta,
614  "Trigger_Condition_LowPt_Eta");
615  if (sc.isFailure())
617  "couldn't "
618  "registerTrigger_Condition_LowPt_"
619  "Eta hist to MonGroup");
620  rpclv1Trigger_cond_LowPt_eta->Fill(
621  float(IJKtriggerLowPtEta));
622  rpclv1_TriggerLy_vs_SL->Fill(
623  i_sector,
624  IJKtriggerLowPtEta); // general
625  TriggerCondition_vs_CM->Fill(
626  i_sector * 56 + i_padId * 8 + i_cmaId,
627  IJKtriggerLowPtEta);
628  }
629  if (NtriggerHighPtPhi > 0) {
630  TH1* rpclv1Trigger_cond_HighPt_phi =
631  nullptr;
632  sc = rpclv1prd_shift.getHist(
633  rpclv1Trigger_cond_HighPt_phi,
634  "Trigger_Condition_HighPt_Phi");
635  if (sc.isFailure())
637  "couldn't "
638  "registerTrigger_Condition_LowPt_"
639  "Eta hist to MonGroup");
640  rpclv1Trigger_cond_HighPt_phi->Fill(
641  float(IJKtriggerHighPtPhi));
642  rpclv1_TriggerLy_vs_SL->Fill(
643  i_sector,
644  IJKtriggerHighPtPhi + 16); // general
645  TriggerCondition_vs_CM->Fill(
646  i_sector * 56 + i_padId * 8 + i_cmaId,
647  IJKtriggerHighPtPhi);
648  }
649  if (NtriggerHighPtEta > 0) {
650  TH1* rpclv1Trigger_cond_HighPt_eta =
651  nullptr;
652  sc = rpclv1prd_shift.getHist(
653  rpclv1Trigger_cond_HighPt_eta,
654  "Trigger_Condition_HighPt_Eta");
655  if (sc.isFailure())
657  "couldn't "
658  "registerTrigger_Condition_LowPt_"
659  "Eta hist to MonGroup");
660  rpclv1Trigger_cond_HighPt_eta->Fill(
661  float(IJKtriggerHighPtEta));
662  rpclv1_TriggerLy_vs_SL->Fill(
663  i_sector,
664  IJKtriggerHighPtEta + 16); // general
665  TriggerCondition_vs_CM->Fill(
666  i_sector * 56 + i_padId * 8 + i_cmaId,
667  IJKtriggerHighPtEta);
668  }
669 
670  int n_trigLow_ly = 0;
671  int n_trigHigh_ly = 0;
672  for (int k = 0; k != 4; k++) {
673  if (((IJKtriggerLowPtPhi |
674  IJKtriggerLowPtEta) &
675  int(pow(2, float(k)))) != 0)
676  n_trigLow_ly++;
677  }
678  if (NtriggerLowPtPhi > 0 ||
679  NtriggerLowPtEta > 0) {
680  rpclv1_TriggerCond_vs_SL->Fill(
681  i_sector, n_trigLow_ly);
682  }
683  if (((IJKtriggerHighPtPhi |
684  IJKtriggerHighPtEta) &
685  1) != 0) {
686  for (int k = 2; k != 4; k++) { // k=1
687  if (((IJKtriggerHighPtPhi |
688  IJKtriggerHighPtEta) &
689  int(pow(2, float(k)))) != 0)
690  n_trigHigh_ly++;
691  }
692  if (n_trigHigh_ly == 0) {
693  rpclv1_TriggerCond_vs_SL->Fill(i_sector,
694  5);
695  } // bin 5-> only trigger from LowPt
696  else {
697  rpclv1_TriggerCond_vs_SL->Fill(
698  i_sector, n_trigHigh_ly + 5);
699  }
700  }
701  // Trigger conditions selection end
702 
703  int i_cma_phi = i_cmaId;
704  RpcPad::const_iterator itCM2 =
705  (rdoColl)->begin();
706  for (; itCM2 != (rdoColl)->end(); ++itCM2) {
707  int i_cmaId2 = (*itCM2)->onlineId();
708  int i_cma_eta = i_cmaId2;
709 
710  // RoI and trigger conditions selection
711  // begin
712  if (i_cmaId < 2) { // phi coincidence LowPt
713  if (i_cma_eta == 2 || i_cma_eta == 3) {
715  itChan2 = (*itCM2)->begin();
716  for (; itChan2 != (*itCM2)->end();
717  ++itChan2) {
718  if ((*itChan2)->ijk() == 6) {
719  int roi =
720  4 * i_padId +
721  i_cma_phi +
722  2 * (i_cma_eta - 2);
723  rpclv1ROI_LowPt->Fill(
724  float(i_sector),
725  float(roi));
726  }
727  }
728  }
729  } else if (i_cmaId == 4 ||
730  i_cmaId ==
731  5) { // phi coincidence
732  // HighPt
733  if (i_cma_eta == 6 || i_cma_eta == 7) {
735  itChan2 = (*itCM2)->begin();
736  for (; itChan2 != (*itCM2)->end();
737  ++itChan2) {
738  if ((*itChan2)->ijk() == 6) {
739  int roi =
740  4 * i_padId +
741  i_cma_phi - 4 +
742  2 * (i_cma_eta - 6);
743  rpclv1ROI_HighPt->Fill(
744  float(i_sector),
745  float(roi));
746  }
747  }
748  }
749  }
750  // end RoI selection
751 
752  } // end loop on CM2
753 
754  } // end if ijk=6 of i_channel
755 
756  // logical or
757  if (i_ijk > 1 && i_ijk < 6) {
758  if (i_cmaId == 0 || i_cmaId == 1) {
759  PhiOr[i_sector][i_cmaId][i_ijk - 2]
760  [i_channel] =
761  PhiOr[i_sector][i_cmaId][i_ijk - 2]
762  [i_channel] |
763  int(pow(2, float(i_padId)));
764  }
765  if (i_cmaId == 4 || i_cmaId == 5) {
766  PhiOr[i_sector][i_cmaId - 2][i_ijk - 2]
767  [i_channel] =
768  PhiOr[i_sector][i_cmaId - 2]
769  [i_ijk - 2][i_channel] |
770  int(pow(2, float(i_padId)));
771  }
772  }
773  // SL stat
774  rpclv1sectorlogicstat->Fill(float(i_sector));
775 
776  // tower stat
777  rpclv1towervslogicstat->Fill(float(i_sector),
778  float(i_padId));
779 
780  // cma per sector logic
781  rpclv1cmalogicstat->Fill(
782  float(i_sector), float(i_padId * 8 + i_cmaId));
783 
784  char sectorlogic_name_char[1000];
785  sprintf(sectorlogic_name_char, "SectorLogic%d",
786  i_sector);
787  std::string sectorlogic_name =
788  sectorlogic_name_char;
789  char tower_name_char[1000];
790  sprintf(tower_name_char, "Tower%d", i_padId);
791  std::string tower_name = tower_name_char;
792  char cma_name_char[1000];
793  sprintf(cma_name_char, "Cma%d", i_cmaId);
794  std::string cma_name = cma_name_char;
795  char ijk_name_char[1000];
796  sprintf(ijk_name_char, "ijk%d", i_ijk);
797  std::string ijk_name = ijk_name_char;
798 
799  std::string generic_path_RPCLV1cmatimevschcxx =
800  generic_path_rpclv1monitoring + "/" +
801  sectorlogic_name + "/";
802  generic_path_RPCLV1cmatimevschcxx += tower_name;
803  generic_path_RPCLV1cmatimevschcxx +=
804  "/rpclv1cosmic_cmatimevsch";
805  generic_path_RPCLV1cmatimevschcxx += cma_name;
806 
807  std::string
808  generic_path_RPCLV1cmatimetriggervschcxx =
809  generic_path_rpclv1monitoring + "/" +
810  sectorlogic_name + "/";
811  generic_path_RPCLV1cmatimetriggervschcxx +=
812  tower_name;
813  generic_path_RPCLV1cmatimetriggervschcxx +=
814  "/rpclv1cosmic_cmatimetriggervsch";
815  generic_path_RPCLV1cmatimetriggervschcxx +=
816  cma_name;
817 
818  // Fill time histograms begin
819  if (m_rpclv1hist) {
820  bool histo_flag = true;
821  for (std::vector<std::string>::const_iterator
823  .begin();
824  iter !=
826  ++iter) {
827  if ((sectorlogic_name + tower_name +
828  cma_name) == *iter) {
829  histo_flag = false;
830  }
831  }
832  if (histo_flag) {
834  sectorlogic_name + tower_name +
835  cma_name);
837  sectorlogic_name, tower_name,
838  cma_name));
839  }
840 
841  const MuonDQAHistList& hists =
842  m_stationHists.getList(sectorlogic_name);
843  TH2* RPCLV1cmatimevsch = hists.getH2(
844  sectorlogic_name + "_" + tower_name +
845  cma_name + "_time_vs_channel");
846  if (RPCLV1cmatimevsch) {
847  RPCLV1cmatimevsch->Fill(
848  float(i_channel + i_ijk * 32),
849  float(i_bcId * 8 + i_time));
850  } else {
852  "RPCLV1cmatimevsch not in hist list!");
853  }
854 
855  if (n_triggerlowpt > 0) {
856  TH2* RPCLV1cmatimetriggervsch = hists.getH2(
857  sectorlogic_name + "_" + tower_name +
858  cma_name +
859  "_(time-triggertime)_vs_channel");
860  if (RPCLV1cmatimetriggervsch) {
861  RPCLV1cmatimetriggervsch->Fill(
862  float(i_channel + i_ijk * 32),
863  float(i_bcId * 8 + i_time -
864  i_triggertimelowpt));
865  } else {
867  "RPCLV1cmatimetriggervsch not in "
868  "hist list!");
869  }
870  }
871  } // Fill time histograms end
872 
873  // profiles
874  if (m_rpclv1prof) {
875  int shift_ijk = 0;
876  int shift_pad = 1;
877 
878  int shift_cm = 0;
879  std::string cma_name_p;
880  char cma_name_p_char[1000];
881  if (i_cmaId == 1 || i_cmaId == 3 ||
882  i_cmaId == 5 || i_cmaId == 7) {
883  sprintf(cma_name_p_char, "Cma%d_%d",
884  i_cmaId - 1, i_cmaId);
885  cma_name_p = cma_name_p_char;
886  shift_cm = 32;
887  } else {
888  sprintf(cma_name_p_char, "Cma%d_%d",
889  i_cmaId, i_cmaId + 1);
890  cma_name_p = cma_name_p_char;
891  shift_cm = 0;
892  }
893 
894  std::string ijk_name_p;
895  if (i_ijk == 2 || i_ijk == 3) {
896  ijk_name_p = "ijk2_3";
897  shift_pad = 2;
898  shift_cm = shift_cm * 2;
899  } else {
900  if (i_ijk == 4 || i_ijk == 5) {
901  ijk_name_p = "ijk4_5";
902  shift_pad = 2;
903  shift_cm = shift_cm * 2;
904  } else {
905  ijk_name_p = ijk_name;
906  }
907  }
908 
909  if (i_ijk == 3 || i_ijk == 5) {
910  shift_ijk = 32;
911  }
912 
913  bool histo_flag = true;
914  for (std::vector<std::string>::const_iterator
915  iter = m_profile_list.begin();
916  iter != m_profile_list.end(); ++iter) {
917  if ((sectorlogic_name + cma_name_p +
918  ijk_name_p) == *iter) {
919  histo_flag = false;
920  }
921  }
922  if (histo_flag) {
923  m_profile_list.push_back(sectorlogic_name +
924  cma_name_p +
925  ijk_name_p);
926  // bookRPCLV1ProfilesHistograms( i_sector,
927  // sectorlogic_name, i_cmaId, cma_name_p,
928  // i_ijk, ijk_name_p );
929  // // compilation warning to i_cmaId
931  i_sector, sectorlogic_name, cma_name_p,
932  i_ijk, ijk_name_p));
933  }
934  const MuonDQAHistList& hists2 =
935  m_stationHists.getList(sectorlogic_name);
936  TH1* RPCLV1Profiles = hists2.getH1(
937  sectorlogic_name + "_" + cma_name_p + "_" +
938  ijk_name_p + "_Profiles");
939  if (RPCLV1Profiles) {
940  RPCLV1Profiles->Fill(float(
941  i_padId * shift_pad * 64 + shift_cm +
942  shift_ijk + i_channel));
943  } else {
945  "RPCLV1Profiles not in hist list!");
946  }
947  }
948  }
949 
950  if (m_doCoolDB) {
951  uint16_t side = 0;
952  uint16_t slogic = i_sector;
953  if (slogic > 31) {
954  slogic -= 32;
955  side = 1;
956  }
957  uint16_t padId = i_padId;
958  uint16_t cmaId = i_cmaId;
959  uint16_t ijk = i_ijk;
960  uint16_t channel = i_channel;
961 
963  m_readKey};
964  const RpcCablingCondData* readCdo{*readHandle};
965  // Get the list of offline channels corresponding to
966  // the online identifier
967  std::list<Identifier> idList =
968  readCdo->give_strip_id(
969  side, slogic, padId, cmaId, ijk, channel,
970  &m_idHelperSvc->rpcIdHelper());
971  std::list<Identifier>::const_iterator it_list;
972 
973  for (it_list = idList.begin();
974  it_list != idList.end(); ++it_list) {
975  // and add the digit to the collection
976  Identifier prdcoll_id = *it_list;
977 
978  std::vector<std::string>
979  rpclayersectorsidename =
981  m_idHelperSvc->rpcIdHelper(),
982  prdcoll_id, 0);
983  std::string sector_dphi_layer =
984  rpclayersectorsidename[12];
985 
986  std::vector<int> RpcStrip =
988  MuonDetMgr,
989  m_idHelperSvc->rpcIdHelper(),
990  prdcoll_id, 0);
991  int strip_dbindex =
993  MuonDetMgr,
994  m_idHelperSvc->rpcIdHelper(),
995  prdcoll_id, 0))
996  .at(16); // cool strip profile
997  if (m_doCoolDB) {
998  TH1* rpcCool_StripProfile = nullptr;
999  if (cmaId == 0 || cmaId == 2 ||
1000  cmaId == 4 || cmaId == 6)
1001  sc = rpcCoolDb.getHist(
1002  rpcCool_StripProfile,
1003  sector_dphi_layer +
1004  "_ProfileDataCMeven");
1005  if (cmaId == 1 || cmaId == 3 ||
1006  cmaId == 5 || cmaId == 7)
1007  sc = rpcCoolDb.getHist(
1008  rpcCool_StripProfile,
1009  sector_dphi_layer +
1010  "_ProfileDataCModd");
1011  if (sc.isFailure())
1013  "couldn't get "
1014  << sector_dphi_layer
1015  << "_ProfileDataCMeven or odd");
1016  if (rpcCool_StripProfile) {
1017  rpcCool_StripProfile->Fill(
1018  strip_dbindex);
1019  }
1020  }
1021  }
1022  } // m_doCoolDB
1023 
1024  } // loop over chan
1025  } // loop over CM
1026  } // if RDO_pad_size>0
1027  } // pads loop
1028 
1029  // Fill logical OR histograms
1030  // PhiOr[sector logic][cm][ijk][channel]
1031  // LowPt0 cm 0 1 ijk 2 3 PhiOr: 0 1 0 1
1032  // LowPt1 cm 0 1 ijk 4 5 0 1 2 3
1033  // HighPt0 cm 4 5 ijk 2 3 2 3 0 1
1034  // HighPt1 cm 4 5 ijk 4 5 2 3 2 3
1035  for (int iSL = 0; iSL != 64; iSL++) {
1036  for (int k = 0; k != 2; k++) {
1037  for (int iCh = 0; iCh != 32; iCh++) {
1038  if (PhiOr[iSL][0 + k][0 + k][iCh] != 0)
1039  rpclv1_logicalOR_LowPt0->Fill(
1040  iSL + 1, PhiOr[iSL][0 + k][0 + k][iCh]);
1041  if (PhiOr[iSL][0 + k][2 + k][iCh] != 0)
1042  rpclv1_logicalOR_LowPt1->Fill(
1043  iSL + 1, PhiOr[iSL][0 + k][2 + k][iCh]);
1044  if (PhiOr[iSL][2 + k][0 + k][iCh] != 0)
1045  rpclv1_logicalOR_HighPt0->Fill(
1046  iSL + 1, PhiOr[iSL][2 + k][0 + k][iCh]);
1047  if (PhiOr[iSL][2 + k][2 + k][iCh] != 0)
1048  rpclv1_logicalOR_HighPt1->Fill(
1049  iSL + 1, PhiOr[iSL][2 + k][2 + k][iCh]);
1050  }
1051  }
1052  }
1053 
1054  } // AthenaMonManager::tier0 || AthenaMonManager::tier0Raw
1055 
1056  return sc; // statuscode check
1057 }

◆ 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 792 of file ManagedMonitorToolBase.cxx.

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

◆ finalHists()

StatusCode ManagedMonitorToolBase::finalHists ( )
virtualinherited

Calls procHists( true, true, true ).

Implements IMonitorToolBase.

Reimplemented in TileRawChannelMonTool, TileDigitsMonTool, and TileCellNoiseMonTool.

Definition at line 1333 of file ManagedMonitorToolBase.cxx.

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

◆ 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 1614 of file ManagedMonitorToolBase.cxx.

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

◆ getHist() [2/6]

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

Definition at line 1606 of file ManagedMonitorToolBase.cxx.

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

◆ 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 1598 of file ManagedMonitorToolBase.cxx.

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

◆ 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 1588 of file ManagedMonitorToolBase.cxx.

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

◆ 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 1640 of file ManagedMonitorToolBase.cxx.

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

◆ 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 1630 of file ManagedMonitorToolBase.cxx.

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

◆ getNewStreamNameFcn()

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

Definition at line 2387 of file ManagedMonitorToolBase.cxx.

2389 {
2390  StreamNameFcn* fcn(0);
2391 
2392  switch( m_environment ) {
2394  fcn = new NoOutputStream();
2395  break;
2397  fcn = new OnlineStream();
2398  break;
2400  fcn = new DefaultStream( m_fileKey );
2401  break;
2405  case AthenaMonManager::AOD:
2407  default:
2408  fcn = new OfflineStream( m_fileKey, m_dataType, m_environment );
2409  }
2410 
2411  return fcn;
2412 }

◆ GetTriggerType()

int RpcLv1RawDataValAlg::GetTriggerType ( ) const
inlineprivate

Definition at line 71 of file RpcLv1RawDataValAlg.h.

71 { return m_trigtype; }

◆ initialize()

StatusCode RpcLv1RawDataValAlg::initialize ( )
virtual

Reimplemented from ManagedMonitorToolBase.

Definition at line 55 of file RpcLv1RawDataValAlg.cxx.

55  {
56  ATH_MSG_INFO("in initializing RpcLv1RawDataValAlg");
57 
58  ATH_MSG_INFO("properties are ");
59  ATH_MSG_INFO("RpcLv1Prof " << m_rpclv1prof);
60  ATH_MSG_INFO("RpcLv1Hist " << m_rpclv1hist);
61  ATH_MSG_INFO("RpcLv1ReduceNbins " << m_rpclv1reducenbins);
62  StatusCode sc;
63 
64  // Initialize the IdHelper
65  StoreGateSvc* detStore = nullptr;
66  sc = service("DetectorStore", detStore);
67  if (sc.isFailure()) {
68  ATH_MSG_FATAL("DetectorStore service not found !");
69  return StatusCode::FAILURE;
70  }
71 
72  // MuonDetectorManager from the conditions store
74 
75  ATH_CHECK(m_idHelperSvc.retrieve());
77 
78  std::vector<std::string> hardware_name_list;
79  std::vector<std::string> layer_name_list;
80  std::vector<std::string> layervslayer_name_list;
81  std::vector<std::string> layerPhivsEta_name_list;
82  std::vector<std::string> layerPhivsEtaSector_name_list;
83  hardware_name_list.push_back("XXX");
84 
86  .ignore(); // Ignore the checking code;
87 
90 
91  return StatusCode::SUCCESS;
92 }

◆ 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  IMessageSvc* ms(0);
655  StatusCode sc = Imp::s_svcLocator.load()->service( "MessageSvc", ms, true );
656  if( sc.isSuccess() ) {
657  MsgStream log( ms, "ManagedMonitorToolBase::intervalStringToEnum()" );
658  log << MSG::WARNING << "Unknown ManagedMonitorToolBase::Interval_t \""
659  << str << "\", returning \"file\"" << endmsg;
660  }
661  }
662 
663  return file;
664 }

◆ lbAverageInteractionsPerCrossing()

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

Average mu, i.e.

<mu>

Definition at line 1923 of file ManagedMonitorToolBase.cxx.

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

◆ lbAverageLivefraction()

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

Average luminosity livefraction.

Definition at line 1992 of file ManagedMonitorToolBase.cxx.

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

◆ 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 1959 of file ManagedMonitorToolBase.cxx.

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

◆ lbDuration()

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

Luminosity block time (in seconds)

Definition at line 2046 of file ManagedMonitorToolBase.cxx.

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

◆ lbInteractionsPerCrossing()

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

Instantaneous number of interactions, i.e.

mu

Definition at line 1939 of file ManagedMonitorToolBase.cxx.

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

◆ lbLuminosityPerBCID()

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

Instantaneous luminosity.

Definition at line 1975 of file ManagedMonitorToolBase.cxx.

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

◆ lbLumiWeight()

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

Average Integrated Luminosity Live Fraction.

Definition at line 2030 of file ManagedMonitorToolBase.cxx.

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

◆ livefractionPerBCID()

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

Livefraction per bunch crossing ID.

Definition at line 2011 of file ManagedMonitorToolBase.cxx.

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

◆ 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 2343 of file ManagedMonitorToolBase.cxx.

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

◆ preSelector()

bool ManagedMonitorToolBase::preSelector ( )
virtualinherited

Implements IMonitorToolBase.

Definition at line 1911 of file ManagedMonitorToolBase.cxx.

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

◆ procHistograms()

StatusCode RpcLv1RawDataValAlg::procHistograms ( )
virtual

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

Reimplemented from ManagedMonitorToolBase.

Definition at line 2563 of file RpcLv1RawDataValAlg.cxx.

2563  {
2564  ATH_MSG_DEBUG("RpcLv1RawDataValAlg procHistograms()");
2565  return StatusCode::SUCCESS;
2566 }

◆ 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 1648 of file ManagedMonitorToolBase.cxx.

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

◆ 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 1702 of file ManagedMonitorToolBase.cxx.

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

◆ 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 1692 of file ManagedMonitorToolBase.cxx.

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

◆ regHist() [1/4]

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

Definition at line 1522 of file ManagedMonitorToolBase.cxx.

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

◆ 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 1515 of file ManagedMonitorToolBase.cxx.

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

◆ 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 1462 of file ManagedMonitorToolBase.cxx.

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

◆ 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 1453 of file ManagedMonitorToolBase.cxx.

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

◆ registerMetadata()

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

Definition at line 1005 of file ManagedMonitorToolBase.cxx.

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

◆ regManagedEfficiencies()

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

Definition at line 1200 of file ManagedMonitorToolBase.cxx.

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

◆ regManagedGraphs()

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

Definition at line 1129 of file ManagedMonitorToolBase.cxx.

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

◆ regManagedHistograms()

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

Definition at line 1032 of file ManagedMonitorToolBase.cxx.

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

◆ regManagedLWHistograms()

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

Definition at line 1314 of file ManagedMonitorToolBase.cxx.

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

◆ regManagedTrees()

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

Definition at line 1260 of file ManagedMonitorToolBase.cxx.

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

◆ 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 1758 of file ManagedMonitorToolBase.cxx.

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

◆ 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 1748 of file ManagedMonitorToolBase.cxx.

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

◆ 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 1893 of file ManagedMonitorToolBase.cxx.

1895 {
1896  return StatusCode::SUCCESS;
1897 }

◆ setMonManager()

void ManagedMonitorToolBase::setMonManager ( AthenaMonManager manager)
virtualinherited

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

Definition at line 1435 of file ManagedMonitorToolBase.cxx.

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

◆ 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 1882 of file ManagedMonitorToolBase.cxx.

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

◆ StoreTriggerType()

StatusCode RpcLv1RawDataValAlg::StoreTriggerType ( )
private

Definition at line 94 of file RpcLv1RawDataValAlg.cxx.

94  {
96 
97  m_trigtype = eventInfo->level1TriggerType();
98 
99  return StatusCode::SUCCESS;
100 }

◆ 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 1097 of file ManagedMonitorToolBase.cxx.

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

◆ trigChainsArePassed()

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

Definition at line 2324 of file ManagedMonitorToolBase.cxx.

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

◆ updateTriggersForGroups()

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

Definition at line 2362 of file ManagedMonitorToolBase.cxx.

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

◆ 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 1803 of file ManagedMonitorToolBase.cxx.

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

Member Data Documentation

◆ m_bookHistogramsInitial

bool ManagedMonitorToolBase::m_bookHistogramsInitial
privateinherited

Definition at line 956 of file ManagedMonitorToolBase.h.

◆ m_chamberName

std::string RpcLv1RawDataValAlg::m_chamberName {}
private

Definition at line 108 of file RpcLv1RawDataValAlg.h.

◆ m_checkCabling

bool RpcLv1RawDataValAlg::m_checkCabling {false}
private

Definition at line 87 of file RpcLv1RawDataValAlg.h.

◆ m_cosmicStation

int RpcLv1RawDataValAlg::m_cosmicStation {0}
private

Definition at line 113 of file RpcLv1RawDataValAlg.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_DetectorManagerKey

SG::ReadCondHandleKey<MuonGM::MuonDetectorManager> RpcLv1RawDataValAlg::m_DetectorManagerKey
private
Initial value:
{
this, "DetectorManagerKey", "MuonDetectorManager",
"Key of input MuonDetectorManager condition data"}

Definition at line 94 of file RpcLv1RawDataValAlg.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_doClusters

bool RpcLv1RawDataValAlg::m_doClusters {false}
private

Definition at line 86 of file RpcLv1RawDataValAlg.h.

◆ m_doCoolDB

bool RpcLv1RawDataValAlg::m_doCoolDB {false}
private

Definition at line 106 of file RpcLv1RawDataValAlg.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_eventInfo

SG::ReadHandleKey<xAOD::EventInfo> RpcLv1RawDataValAlg::m_eventInfo
private
Initial value:
{this, "EventInfo",
"EventInfo", "event info"}

Definition at line 77 of file RpcLv1RawDataValAlg.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_haveClearedLastEventBlock

bool ManagedMonitorToolBase::m_haveClearedLastEventBlock
protectedinherited

Definition at line 929 of file ManagedMonitorToolBase.h.

◆ m_idHelperSvc

ServiceHandle<Muon::IMuonIdHelperSvc> RpcLv1RawDataValAlg::m_idHelperSvc
private
Initial value:
{
this, "MuonIdHelperSvc", "Muon::MuonIdHelperSvc/MuonIdHelperSvc"}

Definition at line 98 of file RpcLv1RawDataValAlg.h.

◆ m_lastEvent

int RpcLv1RawDataValAlg::m_lastEvent {0}
private

Definition at line 112 of file RpcLv1RawDataValAlg.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_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_profile_list

std::vector<std::string> RpcLv1RawDataValAlg::m_profile_list {}
private

Definition at line 84 of file RpcLv1RawDataValAlg.h.

◆ m_readKey

SG::ReadCondHandleKey<RpcCablingCondData> RpcLv1RawDataValAlg::m_readKey
private
Initial value:
{
this, "ReadKey", "RpcCablingCondData", "Key of RpcCablingCondData"}

Definition at line 101 of file RpcLv1RawDataValAlg.h.

◆ m_rpclv1file

bool RpcLv1RawDataValAlg::m_rpclv1file {false}
private

Definition at line 88 of file RpcLv1RawDataValAlg.h.

◆ m_rpclv1hist

bool RpcLv1RawDataValAlg::m_rpclv1hist {false}
private

Definition at line 89 of file RpcLv1RawDataValAlg.h.

◆ m_rpclv1prof

bool RpcLv1RawDataValAlg::m_rpclv1prof {false}
private

Definition at line 90 of file RpcLv1RawDataValAlg.h.

◆ m_rpclv1reducenbins

int RpcLv1RawDataValAlg::m_rpclv1reducenbins {false}
private

Definition at line 91 of file RpcLv1RawDataValAlg.h.

◆ m_rpcRdoKey

SG::ReadHandleKey<RpcPadContainer> RpcLv1RawDataValAlg::m_rpcRdoKey
private
Initial value:
{this, "RpcRdo", "RPCPAD",
"RPC RDO"}

Definition at line 79 of file RpcLv1RawDataValAlg.h.

◆ m_sector

int RpcLv1RawDataValAlg::m_sector {0}
private

Definition at line 74 of file RpcLv1RawDataValAlg.h.

◆ m_sectorlogicTowerCma_name_list

std::vector<std::string> RpcLv1RawDataValAlg::m_sectorlogicTowerCma_name_list {}
private

Definition at line 82 of file RpcLv1RawDataValAlg.h.

◆ m_sectorlogicTowerCma_name_list2

std::vector<std::string> RpcLv1RawDataValAlg::m_sectorlogicTowerCma_name_list2 {}
private

Definition at line 83 of file RpcLv1RawDataValAlg.h.

◆ m_side

int RpcLv1RawDataValAlg::m_side {0}
private

Definition at line 75 of file RpcLv1RawDataValAlg.h.

◆ m_StationEta

int RpcLv1RawDataValAlg::m_StationEta {0}
private

Definition at line 110 of file RpcLv1RawDataValAlg.h.

◆ m_stationHists

MuonDQAHistMap RpcLv1RawDataValAlg::m_stationHists
private

Definition at line 68 of file RpcLv1RawDataValAlg.h.

◆ m_StationPhi

int RpcLv1RawDataValAlg::m_StationPhi {0}
private

Definition at line 111 of file RpcLv1RawDataValAlg.h.

◆ m_StationSize

std::string RpcLv1RawDataValAlg::m_StationSize {}
private

Definition at line 109 of file RpcLv1RawDataValAlg.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_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_trigtype

int RpcLv1RawDataValAlg::m_trigtype {0}
private

Definition at line 72 of file RpcLv1RawDataValAlg.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:
AthenaMonManager::ownedLWHistOfKey
virtual LWHist * ownedLWHistOfKey(const std::string &key) const
Definition: AthenaMonManager.cxx:726
ManagedMonitorToolBase::m_nEvents
unsigned int m_nEvents
Definition: ManagedMonitorToolBase.h:926
xAOD::iterator
JetConstituentVector::iterator iterator
Definition: JetConstituentVector.cxx:68
MuonGM::MuonDetectorManager::getRpcReadoutElement
const RpcReadoutElement * getRpcReadoutElement(const Identifier &id) const
access via extended identifier (requires unpacking)
Definition: MuonDetDescr/MuonReadoutGeometry/src/MuonDetectorManager.cxx:168
LWHist
Definition: LWHist.h:26
TH2::Fill
int Fill(double, double)
Definition: rootspy.cxx:382
RpcLv1RawDataValAlg::m_DetectorManagerKey
SG::ReadCondHandleKey< MuonGM::MuonDetectorManager > m_DetectorManagerKey
Definition: RpcLv1RawDataValAlg.h:94
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:1098
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:743
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
ManagedMonitorToolBase::bookHistograms
virtual StatusCode bookHistograms()
An inheriting class should either override this function or bookHists().
Definition: ManagedMonitorToolBase.cxx:1407
ManagedMonitorToolBase::m_DQFilterTools
ToolHandleArray< IDQFilterTool > m_DQFilterTools
Definition: ManagedMonitorToolBase.h:912
ATH_MSG_FATAL
#define ATH_MSG_FATAL(x)
Definition: AthMsgStreamMacros.h:34
DataModel_detail::const_iterator
Const iterator class for DataVector/DataList.
Definition: DVLIterator.h:82
checkFileSG.line
line
Definition: checkFileSG.py:75
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:1589
RpcCablingCondData::give_strip_id
std::list< Identifier > give_strip_id(unsigned short int SubsystemId, unsigned short int SectorId, unsigned short int PADId, unsigned short int CMAId, unsigned short ijk, unsigned short int Channel, const RpcIdHelper *rpcId) const
Definition: RpcCablingCondData.cxx:269
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
RpcLv1RawDataValAlg::m_sector
int m_sector
Definition: RpcLv1RawDataValAlg.h:74
PowhegControl_ttHplus_NLO.ss
ss
Definition: PowhegControl_ttHplus_NLO.py:83
AddEmptyComponent.histName
string histName
Definition: AddEmptyComponent.py:64
plotting.yearwise_efficiency.channel
channel
Definition: yearwise_efficiency.py:28
SG::ReadCondHandle
Definition: ReadCondHandle.h:44
ATH_MSG_INFO
#define ATH_MSG_INFO(x)
Definition: AthMsgStreamMacros.h:31
RpcLv1RawDataValAlg::StoreTriggerType
StatusCode StoreTriggerType()
Definition: RpcLv1RawDataValAlg.cxx:94
CaloCellPos2Ntuple.int
int
Definition: CaloCellPos2Ntuple.py:24
ManagedMonitorToolBase::higStat
@ higStat
Definition: ManagedMonitorToolBase.h:115
RpcLv1RawDataValAlg::m_rpclv1file
bool m_rpclv1file
Definition: RpcLv1RawDataValAlg.h:88
ManagedMonitorToolBase::lumiBlock
@ lumiBlock
Definition: ManagedMonitorToolBase.h:114
ManagedMonitorToolBase::m_endOfLumiBlock
bool m_endOfLumiBlock
Definition: ManagedMonitorToolBase.h:885
TH1I
Definition: rootspy.cxx:332
RpcLv1RawDataValAlg::m_doCoolDB
bool m_doCoolDB
Definition: RpcLv1RawDataValAlg.h:106
SG::ReadHandle
Definition: StoreGate/StoreGate/ReadHandle.h:70
ManagedMonitorToolBase::m_THistSvc
ServiceHandle< ITHistSvc > m_THistSvc
Definition: ManagedMonitorToolBase.h:906
RpcLv1RawDataValAlg::m_doClusters
bool m_doClusters
Definition: RpcLv1RawDataValAlg.h:86
ManagedMonitorToolBase::m_procNEventsProp
long m_procNEventsProp
Definition: ManagedMonitorToolBase.h:914
AthCommonDataStore< AthCommonMsg< AlgTool > >::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:802
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:1749
AthenaMonManager::runNumber
static unsigned int runNumber()
Definition: AthenaMonManager.cxx:364
AthenaMonManager::fileKey
virtual std::string fileKey() const
Definition: AthenaMonManager.cxx:699
ManagedMonitorToolBase::Imp::benchPreFillHistograms
void benchPreFillHistograms()
Definition: ManagedMonitorToolBase.cxx:97
AthenaMonManager::AOD
@ AOD
Definition: AthenaMonManager.h:49
ManagedMonitorToolBase::regManagedGraphs
StatusCode regManagedGraphs(std::vector< MgmtParams< TGraph > > &templateGraphs)
Definition: ManagedMonitorToolBase.cxx:1130
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:707
ManagedMonitorToolBase::Imp::benchPostFillHistograms
void benchPostFillHistograms()
Definition: ManagedMonitorToolBase.cxx:106
conifer::pow
constexpr int pow(int x)
Definition: conifer.h:20
ManagedMonitorToolBase::regManagedHistograms
StatusCode regManagedHistograms(std::vector< MgmtParams< TH1 > > &templateHistograms)
Definition: ManagedMonitorToolBase.cxx:1033
ManagedMonitorToolBase::lbDuration
virtual double lbDuration(const EventContext &ctx=Gaudi::Hive::currentContext()) const
Luminosity block time (in seconds)
Definition: ManagedMonitorToolBase.cxx:2047
ManagedMonitorToolBase::m_trigDecTool
PublicToolHandle< Trig::ITrigDecisionTool > m_trigDecTool
Definition: ManagedMonitorToolBase.h:908
PlotCalibFromCool.begin
begin
Definition: PlotCalibFromCool.py:94
skel.it
it
Definition: skel.GENtoEVGEN.py:423
AthCommonDataStore< AthCommonMsg< AlgTool > >::m_evtStore
StoreGateSvc_t m_evtStore
Pointer to StoreGate (event store by default)
Definition: AthCommonDataStore.h:390
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
MuonGM::RpcReadoutElement
An RpcReadoutElement corresponds to a single RPC module; therefore typicaly a barrel muon station con...
Definition: MuonDetDescr/MuonReadoutGeometry/MuonReadoutGeometry/RpcReadoutElement.h:54
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:1693
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
RpcLv1RawDataValAlg::m_rpclv1hist
bool m_rpclv1hist
Definition: RpcLv1RawDataValAlg.h:89
ManagedMonitorToolBase::procHistograms
virtual StatusCode procHistograms()
An inheriting class should either override this function or finalHists().
Definition: ManagedMonitorToolBase.cxx:1423
SG::VarHandleKey::empty
bool empty() const
Test if the key is blank.
Definition: AthToolSupport/AsgDataHandles/Root/VarHandleKey.cxx:150
covarianceTool.XLabel
XLabel
Definition: covarianceTool.py:538
RpcLv1RawDataValAlg::m_rpcRdoKey
SG::ReadHandleKey< RpcPadContainer > m_rpcRdoKey
Definition: RpcLv1RawDataValAlg.h:79
python.SystemOfUnits.ms
int ms
Definition: SystemOfUnits.py:132
Identifier::is_valid
bool is_valid() const
Check if id is in a valid state.
RpcGM::RpcStripShift
std::vector< int > RpcStripShift(const MuonGM::MuonDetectorManager *muonMgr, const RpcIdHelper &rpcIdHelper, Identifier prdcoll_id, int irpctriggerInfo)
Definition: RpcGlobalUtilities.cxx:17
RpcLv1RawDataValAlg::bookRPCLV1cmatimevschHistograms
StatusCode bookRPCLV1cmatimevschHistograms(const std::string &m_sectorlogic_name, const std::string &m_tower_name, const std::string &m_cma_name)
Definition: RpcLv1RawDataValAlg.cxx:2107
ManagedMonitorToolBase::regManagedTrees
StatusCode regManagedTrees(std::vector< MgmtParams< TTree > > &templateTrees)
Definition: ManagedMonitorToolBase.cxx:1261
ManagedMonitorToolBase::registerMetadata
StatusCode registerMetadata(const std::string &streamName, const std::string &hName, const MonGroup &group)
Definition: ManagedMonitorToolBase.cxx:1006
AthenaMonManager::getLBsLowStat
static unsigned int getLBsLowStat()
Definition: AthenaMonManager.cxx:326
RpcLv1RawDataValAlg::m_checkCabling
bool m_checkCabling
Definition: RpcLv1RawDataValAlg.h:87
ManagedMonitorToolBase::m_newHigStatInterval
bool m_newHigStatInterval
Definition: ManagedMonitorToolBase.h:882
RpcLv1RawDataValAlg::m_rpclv1reducenbins
int m_rpclv1reducenbins
Definition: RpcLv1RawDataValAlg.h:91
ManagedMonitorToolBase::m_newMedStatInterval
bool m_newMedStatInterval
Definition: ManagedMonitorToolBase.h:882
TruthTest.itE
itE
Definition: TruthTest.py:25
AthenaPoolTestRead.sc
sc
Definition: AthenaPoolTestRead.py:27
mergePhysValFiles.end
end
Definition: DataQuality/DataQualityUtils/scripts/mergePhysValFiles.py:93
MuonDQAHistList::addHist
void addHist(TH1 *p)
Definition: MuonDQAHistMap.h:37
RpcCablingCondData
Definition: RpcCablingCondData.h:21
AthCommonDataStore< AthCommonMsg< AlgTool > >::detStore
const ServiceHandle< StoreGateSvc > & detStore() const
The standard StoreGateSvc/DetectorStore Returns (kind of) a pointer to the StoreGateSvc.
Definition: AthCommonDataStore.h:95
SG::VarHandleKeyArray::setOwner
virtual void setOwner(IDataHandleHolder *o)=0
PlotCalibFromCool.ie
ie
Definition: PlotCalibFromCool.py:420
AthenaMonManager::environment
static Environment_t environment()
Returns the running environment of the monitoring application to help ManagedMonitorToolBase objects ...
Definition: AthenaMonManager.cxx:321
LWHistAthMonWrapper::streamName
static const std::string & streamName(LWHist *)
TRT::Hit::side
@ side
Definition: HitInfo.h:83
python.checkMetadata.metadata
metadata
Definition: checkMetadata.py:175
AthenaMonManager::getLBsMedStat
static unsigned int getLBsMedStat()
Definition: AthenaMonManager.cxx:329
SCT_CalibAlgs::nbins
@ nbins
Definition: SCT_CalibNumbers.h:10
ManagedMonitorToolBase::m_bookHistogramsInitial
bool m_bookHistogramsInitial
Definition: ManagedMonitorToolBase.h:956
ManagedMonitorToolBase::Imp::m_warnAboutMissingInitialize
bool m_warnAboutMissingInitialize
Definition: ManagedMonitorToolBase.cxx:51
python.setupRTTAlg.size
int size
Definition: setupRTTAlg.py:39
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:2388
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:2325
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
StoreGateSvc
The Athena Transient Store API.
Definition: StoreGateSvc.h:128
AthenaMonManager::tier0ESD
@ tier0ESD
Definition: AthenaMonManager.h:49
ManagedMonitorToolBase::lbAverageLivefraction
virtual float lbAverageLivefraction(const EventContext &ctx=Gaudi::Hive::currentContext()) const
Average luminosity livefraction.
Definition: ManagedMonitorToolBase.cxx:1993
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:338
ATH_MSG_ERROR
#define ATH_MSG_ERROR(x)
Definition: AthMsgStreamMacros.h:33
RpcLv1RawDataValAlg::m_side
int m_side
Definition: RpcLv1RawDataValAlg.h:75
ManagedMonitorToolBase::m_manager
AthenaMonManager * m_manager
Definition: ManagedMonitorToolBase.h:892
RpcLv1RawDataValAlg::m_trigtype
int m_trigtype
Definition: RpcLv1RawDataValAlg.h:72
ManagedMonitorToolBase::initialize
virtual StatusCode initialize()
Definition: ManagedMonitorToolBase.cxx:669
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
xAOD::uint16_t
setWord1 uint16_t
Definition: eFexEMRoI_v1.cxx:88
lumiFormat.i
int i
Definition: lumiFormat.py:92
AthenaMonManager::tier0
@ tier0
Definition: AthenaMonManager.h:49
Identifier
Definition: DetectorDescription/Identifier/Identifier/Identifier.h:32
python.CaloCondTools.g
g
Definition: CaloCondTools.py:15
RpcLv1RawDataValAlg::m_stationHists
MuonDQAHistMap m_stationHists
Definition: RpcLv1RawDataValAlg.h:68
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
RpcLv1RawDataValAlg::m_idHelperSvc
ServiceHandle< Muon::IMuonIdHelperSvc > m_idHelperSvc
Definition: RpcLv1RawDataValAlg.h:98
TH2I
Definition: rootspy.cxx:410
AthenaMonManager::online
@ online
Definition: AthenaMonManager.h:49
RpcLv1RawDataValAlg::GetTriggerType
int GetTriggerType() const
Definition: RpcLv1RawDataValAlg.h:71
ManagedMonitorToolBase::file
@ file
Definition: ManagedMonitorToolBase.h:114
TRT::Hit::layer
@ layer
Definition: HitInfo.h:79
RpcLv1RawDataValAlg::m_lastEvent
int m_lastEvent
Definition: RpcLv1RawDataValAlg.h:112
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:870
MuonGM::RpcReadoutElement::NphiStrips
int NphiStrips() const
returns the number of phi strips
getLatestRuns.interval
interval
Definition: getLatestRuns.py:24
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:49
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:49
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.
IdentifiableContainerMT::const_iterator
Definition: IdentifiableContainerMT.h:82
AthCommonDataStore< AthCommonMsg< AlgTool > >::m_detStore
StoreGateSvc_t m_detStore
Pointer to StoreGate (detector store by default)
Definition: AthCommonDataStore.h:393
RpcLv1RawDataValAlg::m_profile_list
std::vector< std::string > m_profile_list
Definition: RpcLv1RawDataValAlg.h:84
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
TH1::Fill
int Fill(double)
Definition: rootspy.cxx:285
RpcLv1RawDataValAlg::m_cosmicStation
int m_cosmicStation
Definition: RpcLv1RawDataValAlg.h:113
ManagedMonitorToolBase::m_endOfEventsBlock
bool m_endOfEventsBlock
Definition: ManagedMonitorToolBase.h:885
TH2
Definition: rootspy.cxx:373
fcn
void fcn(int &, double *, double &result, double par[], int)
this is where we write out chi2
Definition: Chi2LJets.cxx:183
MuonGM::RpcReadoutElement::NetaStrips
int NetaStrips() const
returns the number of eta strips
ManagedMonitorToolBase::m_trigLiveFractionDataKey
SG::ReadCondHandleKey< TrigLiveFractionCondData > m_trigLiveFractionDataKey
Definition: ManagedMonitorToolBase.h:954
RpcLv1RawDataValAlg::m_sectorlogicTowerCma_name_list2
std::vector< std::string > m_sectorlogicTowerCma_name_list2
Definition: RpcLv1RawDataValAlg.h:83
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
RpcLv1RawDataValAlg::m_StationEta
int m_StationEta
Definition: RpcLv1RawDataValAlg.h:110
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
RpcLv1RawDataValAlg::bookRPCLV1TriggerRoadHistograms
StatusCode bookRPCLV1TriggerRoadHistograms(const std::string &m_sectorlogic_name, const std::string &m_tower_name, const std::string &m_cma_name, const std::string &m_thr_name)
Definition: RpcLv1RawDataValAlg.cxx:2188
ManagedMonitorToolBase::m_lbDurationDataKey
SG::ReadCondHandleKey< LBDurationCondData > m_lbDurationDataKey
Definition: ManagedMonitorToolBase.h:952
RpcLv1RawDataValAlg::m_StationPhi
int m_StationPhi
Definition: RpcLv1RawDataValAlg.h:111
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:1395
name
std::string name
Definition: Control/AthContainers/Root/debug.cxx:192
RpcLv1RawDataValAlg::bookRPCLV1ProfilesHistograms
StatusCode bookRPCLV1ProfilesHistograms(int m_i_sector, const std::string &m_sectorlogic_name, const std::string &m_cma_name, int m_i_ijk, const std::string &m_ijk_name)
profile cabling
Definition: RpcLv1RawDataValAlg.cxx:2242
MuonDQAHistMap::getList
MuonDQAHistList & getList(std::string station_name)
Definition: MuonDQAHistMap.h:118
AthenaMonManager::getLBsHigStat
static unsigned int getLBsHigStat()
Definition: AthenaMonManager.cxx:332
RpcLv1RawDataValAlg::m_StationSize
std::string m_StationSize
Definition: RpcLv1RawDataValAlg.h:109
LWHistAthMonWrapper::setKey
static void setKey(LWHist *, const std::string &key)
RpcLv1RawDataValAlg::bookRPCCoolHistograms
void bookRPCCoolHistograms(std::vector< std::string >::const_iterator &m_iter, int, int, const std::string &m_layer)
Definition: RpcLv1RawDataValAlg.cxx:2319
ExtractEBRunDetails.endOfRun
endOfRun
Definition: ExtractEBRunDetails.py:245
SG::CondHandleKey::initialize
StatusCode initialize(bool used=true)
RpcLv1RawDataValAlg::m_rpclv1prof
bool m_rpclv1prof
Definition: RpcLv1RawDataValAlg.h:90
item
Definition: ItemListSvc.h:43
ManagedMonitorToolBase::lowStat
@ lowStat
Definition: ManagedMonitorToolBase.h:115
RpcPad
Definition: RpcPad.h:21
LWHist::setOwnsROOTHisto
void setOwnsROOTHisto(bool b)
Definition: LWHist.h:75
ManagedMonitorToolBase::m_lwhists
std::set< LWHist * > m_lwhists
Definition: ManagedMonitorToolBase.h:891
MuonDQAHistList
Definition: MuonDQAHistMap.h:31
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
ir
int ir
counter of the current depth
Definition: fastadd.cxx:49
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:113
DiTauMassTools::MaxHistStrategyV2::e
e
Definition: PhysicsAnalysis/TauID/DiTauMassTools/DiTauMassTools/HelperFunctions.h:26
a
TList * a
Definition: liststreamerinfos.cxx:10
RpcLv1RawDataValAlg::m_readKey
SG::ReadCondHandleKey< RpcCablingCondData > m_readKey
Definition: RpcLv1RawDataValAlg.h:101
CaloLCW_tf.group
group
Definition: CaloLCW_tf.py:28
ManagedMonitorToolBase::regManagedLWHistograms
StatusCode regManagedLWHistograms(std::vector< MgmtParams< LWHist > > &templateLWHistograms)
Definition: ManagedMonitorToolBase.cxx:1315
h
AthenaMonManager::forkedProcess
bool forkedProcess()
Definition: AthenaMonManager.cxx:345
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
RpcLv1RawDataValAlg::m_chamberName
std::string m_chamberName
Definition: RpcLv1RawDataValAlg.h:108
MuonGM::MuonDetectorManager
The MuonDetectorManager stores the transient representation of the Muon Spectrometer geometry and pro...
Definition: MuonDetDescr/MuonReadoutGeometry/MuonReadoutGeometry/MuonDetectorManager.h: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
RpcLv1RawDataValAlg::m_sectorlogicTowerCma_name_list
std::vector< std::string > m_sectorlogicTowerCma_name_list
Definition: RpcLv1RawDataValAlg.h:82
AthenaMonManager::altprod
@ altprod
Definition: AthenaMonManager.h:49
ManagedMonitorToolBase::eventsBlock
@ eventsBlock
Definition: ManagedMonitorToolBase.h:114
python.envutil.filelist
filelist
print ("Checking files %s..." % fullfile)
Definition: envutil.py:152
python.CaloScaleNoiseConfig.type
type
Definition: CaloScaleNoiseConfig.py:78
TH1
Definition: rootspy.cxx:268
RpcGM::RpcLayerSectorSideName
std::vector< std::string > RpcLayerSectorSideName(const RpcIdHelper &rpcIdHelper, Identifier prdcoll_id, int irpctriggerInfo)
Definition: RpcGlobalUtilities.cxx:468
DeMoScan.first
bool first
Definition: DeMoScan.py:534
DEBUG
#define DEBUG
Definition: page_access.h:11
AthCommonMsg< AlgTool >::msg
MsgStream & msg() const
Definition: AthCommonMsg.h:24
MuonGM::MuonReadoutElement::identify
Identifier identify() const override final
Returns the ATLAS Identifier of the MuonReadOutElement.
Definition: MuonDetDescr/MuonReadoutGeometry/MuonReadoutGeometry/MuonReadoutElement.h:184
MuonDQAHistList::getH1
TH1 * getH1(const std::string &hist_name) const
Definition: MuonDQAHistMap.h:43
python.CaloCondTools.log
log
Definition: CaloCondTools.py:20
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:1852
SG::VarHandleBase::vhKey
SG::VarHandleKey & vhKey()
Return a non-const reference to the HandleKey.
Definition: StoreGate/src/VarHandleBase.cxx:616
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...
declareProperty
#define declareProperty(n, p, h)
Definition: BaseFakeBkgTool.cxx:15
ManagedMonitorToolBase::fillHistograms
virtual StatusCode fillHistograms()
An inheriting class should either override this function or fillHists().
Definition: ManagedMonitorToolBase.cxx:1415
CxxUtils::atoi
int atoi(std::string_view str)
Helper functions to unpack numbers decoded in string into integers and doubles The strings are requir...
Definition: Control/CxxUtils/Root/StringUtils.cxx:85
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:1960
str
Definition: BTagTrackIpAccessor.cxx:11
python.Bindings.keys
keys
Definition: Control/AthenaPython/python/Bindings.py:790
python.Logging.manager
manager
Definition: PhysicsAnalysis/D3PDTools/AnaAlgorithm/python/Logging.py:92
ManagedMonitorToolBase::m_useTrigger
bool m_useTrigger
Definition: ManagedMonitorToolBase.h:920
python.TrigEgammaMonitorHelper.TH1F
def TH1F(name, title, nxbins, bins_par2, bins_par3=None, path='', **kwargs)
Definition: TrigEgammaMonitorHelper.py:24
ManagedMonitorToolBase::m_haveClearedLastEventBlock
bool m_haveClearedLastEventBlock
Definition: ManagedMonitorToolBase.h:929
AthenaMonManager::lumiBlockNumber
static unsigned int lumiBlockNumber()
Definition: AthenaMonManager.cxx:352
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
python.PyAthena.obj
obj
Definition: PyAthena.py:135
MuonGM::RpcReadoutElement::getDoubletZ
int getDoubletZ() const
return DoubletZ value for the given readout element
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
RpcLv1RawDataValAlg::m_eventInfo
SG::ReadHandleKey< xAOD::EventInfo > m_eventInfo
Definition: RpcLv1RawDataValAlg.h:77
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:1454
readCCLHist.float
float
Definition: readCCLHist.py:83
merge
Definition: merge.py:1
AthenaMonManager::noOutput
@ noOutput
Definition: AthenaMonManager.h:49
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
xAOD::RpcStrip
RpcStrip_v1 RpcStrip
Defined the version of the RpcStrip.
Definition: RpcStrip.h:12
ManagedMonitorToolBase::m_defaultLBDuration
float m_defaultLBDuration
Definition: ManagedMonitorToolBase.h:958
ManagedMonitorToolBase::newRunFlag
bool newRunFlag() const
Definition: ManagedMonitorToolBase.h:854