ATLAS Offline Software
Loading...
Searching...
No Matches
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
Property holding a SG store/key/clid/attr name from which a ReadDecorHandle is made.
Property holding a SG store/key/clid/attr name from which a ReadDecorHandle is made.
Property holding a SG store/key/clid from which a ReadHandle is made.
TrigEgammaMonitorAnalysisAlgorithm(const std::string &name, ISvcLocator *pSvcLocator)
virtual StatusCode initialize() override
initialize
Gaudi::Property< bool > m_rmCrack
Remove crack region for Probe default True.
TrigEgammaMonitorElectronAlgorithm(const std::string &name, ISvcLocator *pSvcLocator)
virtual StatusCode fillHistograms(const EventContext &ctx) const override
adds event to the monitoring histograms
Gaudi::Property< std::string > m_anatype
Directory name for each algorithm.
Gaudi::Property< bool > m_forceProbeIsolation
force probe isolation
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
SG::ReadDecorHandleKey< xAOD::ElectronContainer > m_electronIsolationKeyPtCone20
Ensure offline electron isolation decoration is retrieved after being created.
SG::ReadHandleKey< xAOD::ElectronContainer > m_offElectronKey
Event Wise offline ElectronContainer Access and end iterator.
SG::ReadDecorHandleKey< xAOD::EventInfo > m_eventInfoDecorKey
Gaudi::Property< std::vector< std::string > > m_trigInputList
List of triggers from menu.
Gaudi::Property< bool > m_forcePidSelection
force pid and crack selection into electron navigation
std::vector< std::string > m_trigList
List of triggers to study.
Gaudi::Property< std::string > m_offProbeIsolation
Define isolation working point for Probe electron.