ATLAS Offline Software
egammaMonitorElectronAlgorithm.h
Go to the documentation of this file.
1 /*
2  Copyright (C) 2002-2021 CERN for the benefit of the ATLAS collaboration
3 */
4 
5 #ifndef egammaMonitorElectronAlgorithm_H
6 #define egammaMonitorElectronAlgorithm_H
7 
9 
11 
13 {
14 
15  public:
16 
17  egammaMonitorElectronAlgorithm(const std::string& name, ISvcLocator* pSvcLocator);
18  virtual StatusCode initialize() override;
19  virtual StatusCode execute(const EventContext& ctx) const override;
20 
21  protected:
22 
23  void filltopoElectronTrackCaloMatch(const EventContext& ctx) const;
24  void filltopoElectronShowerShapes(const EventContext& ctx) const;
25  void filltopoElectronIsolation(const EventContext& ctx) const;
26 
27  private:
28 
29  TString m_baseName;
30  SG::ReadHandleKey<xAOD::ElectronContainer> m_electronsKey{this, "ElectronKey", "Electrons", ""};
31  SG::ReadDecorHandleKeyArray<xAOD::ElectronContainer> m_isoKey{this, "IsoVarKeys", { }, "The list of isolation variables to be monitored"};
32  ToolHandle<GenericMonitoringTool> m_monTool{this, "MonTool", "", "Monitoring tool"};
33 };
34 
35 
36 
37 #endif
egammaMonitorElectronAlgorithm::execute
virtual StatusCode execute(const EventContext &ctx) const override
Definition: egammaMonitorElectronAlgorithm.cxx:23
egammaMonitorElectronAlgorithm::initialize
virtual StatusCode initialize() override
Definition: egammaMonitorElectronAlgorithm.cxx:11
SG::HandleKeyArray
Definition: StoreGate/StoreGate/HandleKeyArray.h:38
SG::ReadHandleKey< xAOD::ElectronContainer >
egammaMonitorElectronAlgorithm::m_electronsKey
SG::ReadHandleKey< xAOD::ElectronContainer > m_electronsKey
Definition: egammaMonitorElectronAlgorithm.h:30
egammaMonitorElectronAlgorithm::filltopoElectronIsolation
void filltopoElectronIsolation(const EventContext &ctx) const
Definition: egammaMonitorElectronAlgorithm.cxx:134
EL::StatusCode
::StatusCode StatusCode
StatusCode definition for legacy code.
Definition: PhysicsAnalysis/D3PDTools/EventLoop/EventLoop/StatusCode.h:22
egammaMonitorElectronAlgorithm::m_isoKey
SG::ReadDecorHandleKeyArray< xAOD::ElectronContainer > m_isoKey
Definition: egammaMonitorElectronAlgorithm.h:31
egammaMonitorElectronAlgorithm::filltopoElectronTrackCaloMatch
void filltopoElectronTrackCaloMatch(const EventContext &ctx) const
Definition: egammaMonitorElectronAlgorithm.cxx:31
name
std::string name
Definition: Control/AthContainers/Root/debug.cxx:221
egammaMonitorElectronAlgorithm
Definition: egammaMonitorElectronAlgorithm.h:13
egammaMonitorBaseAlgorithm
Definition: egammaMonitorBaseAlgorithm.h:24
egammaMonitorElectronAlgorithm::m_monTool
ToolHandle< GenericMonitoringTool > m_monTool
Definition: egammaMonitorElectronAlgorithm.h:32
egammaMonitorElectronAlgorithm::egammaMonitorElectronAlgorithm
egammaMonitorElectronAlgorithm(const std::string &name, ISvcLocator *pSvcLocator)
Definition: egammaMonitorElectronAlgorithm.cxx:7
egammaMonitorBaseAlgorithm.h
ReadDecorHandleKeyArray.h
egammaMonitorElectronAlgorithm::filltopoElectronShowerShapes
void filltopoElectronShowerShapes(const EventContext &ctx) const
Definition: egammaMonitorElectronAlgorithm.cxx:78
egammaMonitorElectronAlgorithm::m_baseName
TString m_baseName
Definition: egammaMonitorElectronAlgorithm.h:29