ATLAS Offline Software
TrigEgammaMonitorPhotonAlgorithm.h
Go to the documentation of this file.
1 /*
2  Copyright (C) 2002-2022 CERN for the benefit of the ATLAS collaboration
3 */
4 
5 #ifndef TrigEgammaMonitorPhotonAlgorithm_H
6 #define TrigEgammaMonitorPhotonAlgorithm_H
7 
8 
12 
13 
15 {
16 
17  public:
18 
19  TrigEgammaMonitorPhotonAlgorithm( const std::string& name, ISvcLocator* pSvcLocator );
20 
21  virtual ~TrigEgammaMonitorPhotonAlgorithm() override;
22 
23  virtual StatusCode initialize() override;
24 
25  virtual StatusCode fillHistograms( const EventContext& ctx) const override;
26 
27 
28 
29  private:
30 
31 
33  StatusCode executeNavigation(const EventContext& ctx, const TrigInfo& info,
34  std::vector<std::pair<std::shared_ptr<const xAOD::Egamma>, const TrigCompositeUtils::Decision*>> &) const;
35 
37  std::vector<std::string> m_trigList;
39  Gaudi::Property<std::string> m_photonPid{this, "PhotonPid","Tight" };
41  Gaudi::Property<bool> m_doUnconverted{this, "DoUnconverted", false};
43  Gaudi::Property<std::vector<std::string>> m_trigInputList{this, "TriggerList", {}};
44 
45 
46  // Stores a map of Bootstrap triggers
47  Gaudi::Property< std::map<std::string, std::string> > m_BSTrigMap{this, "BootstrapTriggerMap", {{"",""}}, "Dictionary of Triggers (as keys) and Bootstraps (value) to configure Bootstrapping of photon triggers" };
49  Gaudi::Property<std::string> m_anatype{this, "Analysis", "Photon"};
51  Gaudi::Property<bool> m_forcePidSelection{ this, "ForcePidSelection", true};
52 
53  // Containers
55  SG::ReadHandleKey<xAOD::PhotonContainer> m_offPhotonKey{ this, "PhotonKey", "Photons", ""};
57  SG::ReadDecorHandleKeyArray<xAOD::PhotonContainer> m_offPhotonIsolationKeys {this, "PhotonIsolationKeys", {"Photons.topoetcone20", "Photons.topoetcone40"} };
58  SG::ReadDecorHandleKey<xAOD::EventInfo> m_eventInfoDecorKey{this, "LArStatusFlag", "EventInfo.larFlags", "Key for EventInfo object"}; //To get data-dependencies right
59 };
60 
61 #endif
grepfile.info
info
Definition: grepfile.py:38
TrigEgammaMonitorPhotonAlgorithm::m_eventInfoDecorKey
SG::ReadDecorHandleKey< xAOD::EventInfo > m_eventInfoDecorKey
Definition: TrigEgammaMonitorPhotonAlgorithm.h:58
TrigEgammaMonitorPhotonAlgorithm::m_offPhotonKey
SG::ReadHandleKey< xAOD::PhotonContainer > m_offPhotonKey
Event Wise offline PhotonContainer Access and end iterator.
Definition: TrigEgammaMonitorPhotonAlgorithm.h:55
TrigEgammaMonitorPhotonAlgorithm::initialize
virtual StatusCode initialize() override
initialize
Definition: TrigEgammaMonitorPhotonAlgorithm.cxx:23
ReadDecorHandleKey.h
Property holding a SG store/key/clid/attr name from which a ReadDecorHandle is made.
TrigEgammaMonitorPhotonAlgorithm::m_photonPid
Gaudi::Property< std::string > m_photonPid
Photon pid word.
Definition: TrigEgammaMonitorPhotonAlgorithm.h:39
_triginfo
Definition: TrigEgammaMonitorBaseAlgorithm.h:42
TrigEgammaMonitorPhotonAlgorithm::m_trigList
std::vector< std::string > m_trigList
List of triggers to study.
Definition: TrigEgammaMonitorPhotonAlgorithm.h:37
TrigEgammaMonitorPhotonAlgorithm::m_forcePidSelection
Gaudi::Property< bool > m_forcePidSelection
force pid selection into photon navigation
Definition: TrigEgammaMonitorPhotonAlgorithm.h:51
SG::HandleKeyArray
Definition: StoreGate/StoreGate/HandleKeyArray.h:38
TrigEgammaMonitorPhotonAlgorithm::executeNavigation
StatusCode executeNavigation(const EventContext &ctx, const TrigInfo &info, std::vector< std::pair< std::shared_ptr< const xAOD::Egamma >, const TrigCompositeUtils::Decision * >> &) const
navigation method called by executeNavigation
Definition: TrigEgammaMonitorPhotonAlgorithm.cxx:121
TrigEgammaMonitorPhotonAlgorithm::fillHistograms
virtual StatusCode fillHistograms(const EventContext &ctx) const override
adds event to the monitoring histograms
Definition: TrigEgammaMonitorPhotonAlgorithm.cxx:46
TrigEgammaMonitorAnalysisAlgorithm.h
SG::ReadHandleKey
Property holding a SG store/key/clid from which a ReadHandle is made.
Definition: StoreGate/StoreGate/ReadHandleKey.h:39
TrigEgammaMonitorPhotonAlgorithm::m_doUnconverted
Gaudi::Property< bool > m_doUnconverted
doUnconverted analysis
Definition: TrigEgammaMonitorPhotonAlgorithm.h:41
TrigEgammaMonitorPhotonAlgorithm::~TrigEgammaMonitorPhotonAlgorithm
virtual ~TrigEgammaMonitorPhotonAlgorithm() override
Definition: TrigEgammaMonitorPhotonAlgorithm.cxx:18
EL::StatusCode
::StatusCode StatusCode
StatusCode definition for legacy code.
Definition: PhysicsAnalysis/D3PDTools/EventLoop/EventLoop/StatusCode.h:22
TrigEgammaMonitorPhotonAlgorithm::m_anatype
Gaudi::Property< std::string > m_anatype
Directory name for each algorithm.
Definition: TrigEgammaMonitorPhotonAlgorithm.h:49
TrigEgammaMonitorPhotonAlgorithm
Definition: TrigEgammaMonitorPhotonAlgorithm.h:15
xAOD::TrigComposite_v1
Class used to describe composite objects in the HLT.
Definition: TrigComposite_v1.h:52
TrigEgammaMonitorPhotonAlgorithm::m_BSTrigMap
Gaudi::Property< std::map< std::string, std::string > > m_BSTrigMap
Definition: TrigEgammaMonitorPhotonAlgorithm.h:47
name
std::string name
Definition: Control/AthContainers/Root/debug.cxx:228
TrigEgammaMonitorPhotonAlgorithm::TrigEgammaMonitorPhotonAlgorithm
TrigEgammaMonitorPhotonAlgorithm(const std::string &name, ISvcLocator *pSvcLocator)
Definition: TrigEgammaMonitorPhotonAlgorithm.cxx:14
TrigEgammaMonitorPhotonAlgorithm::m_offPhotonIsolationKeys
SG::ReadDecorHandleKeyArray< xAOD::PhotonContainer > m_offPhotonIsolationKeys
Ensure offline photon isolation decoration is retrieved after being created.
Definition: TrigEgammaMonitorPhotonAlgorithm.h:57
SG::ReadDecorHandleKey
Property holding a SG store/key/clid/attr name from which a ReadDecorHandle is made.
Definition: StoreGate/StoreGate/ReadDecorHandleKey.h:85
TrigEgammaMonitorAnalysisAlgorithm
Definition: TrigEgammaMonitorAnalysisAlgorithm.h:11
ReadDecorHandleKeyArray.h
TrigEgammaMonitorPhotonAlgorithm::m_trigInputList
Gaudi::Property< std::vector< std::string > > m_trigInputList
List of triggers from menu.
Definition: TrigEgammaMonitorPhotonAlgorithm.h:43