ATLAS Offline Software
MuonEventInfoMonTool.h
Go to the documentation of this file.
1 /*
2  Copyright (C) 2002-2022 CERN for the benefit of the ATLAS collaboration
3 */
4 
6 // Package : MuonDQAMonitoring
7 // Author: N. Benekos(Illinois)
8 // March 2008
9 //
10 // DESCRIPTION:
11 // Subject: MDT-->Offline Muon Data Quality
13 
14 #ifndef MuonEventInfoMonTool_H
15 #define MuonEventInfoMonTool_H
16 
17 
21 #include <string>
22 
23 class StatusCode;
24 namespace MuonDQA{
25  class MuonDQAEvent;
26 }
27 class TH1F;
28 class StoreGateSvc;
29 
30 template <class ConcreteAlgorithm> class AlgFactory;
31 
32 namespace MuonDQA {
33  class MuonDQAEventInfo;
34  //}
36 
38  {
39  public:
40 
41 
42  MuonEventInfoMonTool( const std::string & type, const std::string & name, const IInterface* parent );
43 
44  virtual ~MuonEventInfoMonTool()=default;
45  virtual StatusCode initialize() override;
46  virtual StatusCode bookHistograms() override;
47  virtual StatusCode fillHistograms() override;
48  virtual StatusCode procHistograms() override;
49 
50 
51  private:
52 
54  const MuonDQAEvent* retrieveEvent();
57 
59 
60  //Declare Properties
61 
64 
65  std::string m_eventTag;
66 
68 
70  { this, "EventInfoKey", "EventInfo", "EventInfo SG key" };
71  };
72 }
73 
74 #endif
ReadHandleKey.h
Property holding a SG store/key/clid from which a ReadHandle is made.
MuonDQA::MuonEventInfoMonTool::m_hTriggerType
TH1F * m_hTriggerType
Definition: MuonEventInfoMonTool.h:67
MuonDQA::MuonEventInfoMonTool::initialize
virtual StatusCode initialize() override
Definition: MuonEventInfoMonTool.cxx:42
MuonDQA
Definition: MuonDQAEvent.cxx:9
MuonDQA::MuonEventInfoMonTool::m_TriggerTagAdd
bool m_TriggerTagAdd
property toggling if the Trigger type should be added to the EventTag
Definition: MuonEventInfoMonTool.h:63
ManagedMonitorToolBase
Provides functionality for users to implement and save histograms, ntuples, and summary data,...
Definition: ManagedMonitorToolBase.h:74
MuonDQA::MuonEventInfoMonTool::m_eventTag
std::string m_eventTag
tag of the event, describing reconstruction mechanism
Definition: MuonEventInfoMonTool.h:65
MuonDQA::MuonEventInfoMonTool::MuonEventInfoMonTool
MuonEventInfoMonTool(const std::string &type, const std::string &name, const IInterface *parent)
Definition: MuonEventInfoMonTool.cxx:31
MuonDQA::MuonEventInfoMonTool::retrieveEvent
const MuonDQAEvent * retrieveEvent()
retrieve event information from storegate and convert to MuonRawDQAEventInfo
Definition: MuonEventInfoMonTool.cxx:220
MuonDQA::MuonEventInfoMonTool::m_eventInfoKey
SG::ReadHandleKey< xAOD::EventInfo > m_eventInfoKey
Definition: MuonEventInfoMonTool.h:70
MuonDQA::MuonEventInfoMonTool::fillHistograms
virtual StatusCode fillHistograms() override
An inheriting class should either override this function or fillHists().
Definition: MuonEventInfoMonTool.cxx:102
SG::ReadHandleKey< xAOD::EventInfo >
MuonDQA::MuonEventInfoMonTool::m_eventStore
StoreGateSvc * m_eventStore
Definition: MuonEventInfoMonTool.h:58
ManagedMonitorToolBase.h
StoreGateSvc
The Athena Transient Store API.
Definition: StoreGateSvc.h:128
MuonDQA::MuonEventInfoMonTool
Definition: MuonEventInfoMonTool.h:38
EL::StatusCode
::StatusCode StatusCode
StatusCode definition for legacy code.
Definition: PhysicsAnalysis/D3PDTools/EventLoop/EventLoop/StatusCode.h:22
MuonDQA::MuonEventInfoMonTool::~MuonEventInfoMonTool
virtual ~MuonEventInfoMonTool()=default
MuonDQA::MuonEventInfoMonTool::bookHistograms
virtual StatusCode bookHistograms() override
An inheriting class should either override this function or bookHists().
Definition: MuonEventInfoMonTool.cxx:58
test_pyathena.parent
parent
Definition: test_pyathena.py:15
MuonDQA::MuonEventInfoMonTool::m_lastEvent
int m_lastEvent
Definition: MuonEventInfoMonTool.h:62
MuonDQA::MuonDQAEventInfo
Definition: MuonDQAEventInfo.h:39
MuonDQA::MuonDQAEvent
Definition: MuonDQAEvent.h:28
name
std::string name
Definition: Control/AthContainers/Root/debug.cxx:195
EventInfo.h
TH1F
Definition: rootspy.cxx:320
python.CaloScaleNoiseConfig.type
type
Definition: CaloScaleNoiseConfig.py:78
MuonDQA::MuonEventInfoMonTool::retrieveEventInfo
MuonDQAEventInfo retrieveEventInfo()
retrieve event information from storegate and convert to MuonCalibEventInfo
Definition: MuonEventInfoMonTool.cxx:115
AlgFactory
Definition: RootNtupleOutputStream.h:26
MuonDQA::MuonEventInfoMonTool::procHistograms
virtual StatusCode procHistograms() override
An inheriting class should either override this function or finalHists().
Definition: MuonEventInfoMonTool.cxx:207