ATLAS Offline Software
TrigEgammaMonitorElectronAlgorithm.h
Go to the documentation of this file.
1 /*
2  Copyright (C) 2002-2019 CERN for the benefit of the ATLAS collaboration
3 */
4 
5 #ifndef TrigEgammaMonitorElectronAlgorithm_H
6 #define TrigEgammaMonitorElectronAlgorithm_H
7 
8 
11 
12 
13 
15 {
16 
17  public:
18 
19  TrigEgammaMonitorElectronAlgorithm( const std::string& name, ISvcLocator* pSvcLocator );
20 
21  virtual ~TrigEgammaMonitorElectronAlgorithm() override;
22 
23  virtual StatusCode initialize() override;
24 
25  virtual StatusCode fillHistograms( const EventContext& ctx) const override;
26 
27 
28 
29  private:
30 
31 
32 
34  StatusCode executeNavigation(const EventContext& ctx, const std::string& trigItem,float,const std::string&,
35  std::vector<std::pair<std::shared_ptr<const xAOD::Egamma>, const TrigCompositeUtils::Decision*>> &) const;
36 
37 
39  std::vector<std::string> m_trigList;
41  Gaudi::Property<std::vector<std::string>> m_trigInputList{this, "TriggerList", {}};
43  Gaudi::Property<std::string> m_anatype{this, "Analysis", "Electron"};
45  Gaudi::Property<std::string> m_offProbeIsolation{ this, "OfflineProbeIsolation", "Loose"};
47  Gaudi::Property<bool> m_forceProbeIsolation{this, "ForceProbeIsolation", false};
49  Gaudi::Property<bool> m_forcePidSelection{ this, "ForcePidSelection", true};
50  /* force et cluster cut*/
51  Gaudi::Property<bool> m_forceEtThr{ this, "ForceEtThreshold", true};
52  /* force experimentalSelection selection*/
53  Gaudi::Property<bool> m_forceVetoVeryLoose{ this, "ForceVetoVeryLoose", false};
55  Gaudi::Property<bool> m_rmCrack{ this, "RemoveCrack", true};
57  SG::ReadHandleKey<xAOD::ElectronContainer> m_offElectronKey{ this, "ElectronKey", "Electrons", ""};
58  SG::ReadDecorHandleKey<xAOD::EventInfo> m_eventInfoDecorKey{this, "LArStatusFlag", "EventInfo.larFlags", "Key for EventInfo object"}; //To get data-dependencies right
60  SG::ReadDecorHandleKey<xAOD::ElectronContainer> m_electronIsolationKeyPtCone20 { this, "PtCone20Decoration", m_offElectronKey, "ptcone20", "Decoration key for the ptcone20 isolation decoration" };
61 
62 };
63 
64 #endif
TrigEgammaMonitorElectronAlgorithm::m_offProbeIsolation
Gaudi::Property< std::string > m_offProbeIsolation
Define isolation working point for Probe electron.
Definition: TrigEgammaMonitorElectronAlgorithm.h:45
ReadDecorHandleKey.h
Property holding a SG store/key/clid/attr name from which a ReadDecorHandle is made.
TrigEgammaMonitorElectronAlgorithm::m_forceVetoVeryLoose
Gaudi::Property< bool > m_forceVetoVeryLoose
Definition: TrigEgammaMonitorElectronAlgorithm.h:53
TrigEgammaMonitorElectronAlgorithm::m_rmCrack
Gaudi::Property< bool > m_rmCrack
Remove crack region for Probe default True.
Definition: TrigEgammaMonitorElectronAlgorithm.h:55
TrigEgammaMonitorElectronAlgorithm::m_eventInfoDecorKey
SG::ReadDecorHandleKey< xAOD::EventInfo > m_eventInfoDecorKey
Definition: TrigEgammaMonitorElectronAlgorithm.h:58
TrigEgammaMonitorElectronAlgorithm::fillHistograms
virtual StatusCode fillHistograms(const EventContext &ctx) const override
adds event to the monitoring histograms
Definition: TrigEgammaMonitorElectronAlgorithm.cxx:46
TrigEgammaMonitorAnalysisAlgorithm.h
SG::ReadHandleKey< xAOD::ElectronContainer >
TrigEgammaMonitorElectronAlgorithm::m_trigList
std::vector< std::string > m_trigList
List of triggers to study.
Definition: TrigEgammaMonitorElectronAlgorithm.h:39
TrigEgammaMonitorElectronAlgorithm::m_anatype
Gaudi::Property< std::string > m_anatype
Directory name for each algorithm.
Definition: TrigEgammaMonitorElectronAlgorithm.h:43
TrigEgammaMonitorElectronAlgorithm::m_offElectronKey
SG::ReadHandleKey< xAOD::ElectronContainer > m_offElectronKey
Event Wise offline ElectronContainer Access and end iterator.
Definition: TrigEgammaMonitorElectronAlgorithm.h:57
TrigEgammaMonitorElectronAlgorithm
Definition: TrigEgammaMonitorElectronAlgorithm.h:15
EL::StatusCode
::StatusCode StatusCode
StatusCode definition for legacy code.
Definition: PhysicsAnalysis/D3PDTools/EventLoop/EventLoop/StatusCode.h:22
xAOD::TrigComposite_v1
Class used to describe composite objects in the HLT.
Definition: TrigComposite_v1.h:52
TrigEgammaMonitorElectronAlgorithm::executeNavigation
StatusCode executeNavigation(const EventContext &ctx, const std::string &trigItem, float, const std::string &, std::vector< std::pair< std::shared_ptr< const xAOD::Egamma >, const TrigCompositeUtils::Decision * >> &) const
navigation method called by executeNavigation
Definition: TrigEgammaMonitorElectronAlgorithm.cxx:103
TrigEgammaMonitorElectronAlgorithm::m_trigInputList
Gaudi::Property< std::vector< std::string > > m_trigInputList
List of triggers from menu.
Definition: TrigEgammaMonitorElectronAlgorithm.h:41
TrigEgammaMonitorElectronAlgorithm::initialize
virtual StatusCode initialize() override
initialize
Definition: TrigEgammaMonitorElectronAlgorithm.cxx:22
name
std::string name
Definition: Control/AthContainers/Root/debug.cxx:228
TrigEgammaMonitorElectronAlgorithm::~TrigEgammaMonitorElectronAlgorithm
virtual ~TrigEgammaMonitorElectronAlgorithm() override
Definition: TrigEgammaMonitorElectronAlgorithm.cxx:17
TrigEgammaMonitorElectronAlgorithm::m_forcePidSelection
Gaudi::Property< bool > m_forcePidSelection
force pid and crack selection into electron navigation
Definition: TrigEgammaMonitorElectronAlgorithm.h:49
TrigEgammaMonitorElectronAlgorithm::m_forceProbeIsolation
Gaudi::Property< bool > m_forceProbeIsolation
force probe isolation
Definition: TrigEgammaMonitorElectronAlgorithm.h:47
SG::ReadDecorHandleKey
Property holding a SG store/key/clid/attr name from which a ReadDecorHandle is made.
Definition: StoreGate/StoreGate/ReadDecorHandleKey.h:85
TrigEgammaMonitorElectronAlgorithm::m_forceEtThr
Gaudi::Property< bool > m_forceEtThr
Definition: TrigEgammaMonitorElectronAlgorithm.h:51
TrigEgammaMonitorAnalysisAlgorithm
Definition: TrigEgammaMonitorAnalysisAlgorithm.h:11
TrigEgammaMonitorElectronAlgorithm::TrigEgammaMonitorElectronAlgorithm
TrigEgammaMonitorElectronAlgorithm(const std::string &name, ISvcLocator *pSvcLocator)
Definition: TrigEgammaMonitorElectronAlgorithm.cxx:13
TrigEgammaMonitorElectronAlgorithm::m_electronIsolationKeyPtCone20
SG::ReadDecorHandleKey< xAOD::ElectronContainer > m_electronIsolationKeyPtCone20
Ensure offline electron isolation decoration is retrieved after being created.
Definition: TrigEgammaMonitorElectronAlgorithm.h:60