ATLAS Offline Software
Loading...
Searching...
No Matches
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};
53 Gaudi::Property<bool> m_onlyHLT{ this, "OnlyHLT", false};
54
55 // Containers
57 SG::ReadHandleKey<xAOD::PhotonContainer> m_offPhotonKey{ this, "PhotonKey", "Photons", ""};
59 SG::ReadDecorHandleKeyArray<xAOD::PhotonContainer> m_offPhotonIsolationKeys {this, "PhotonIsolationKeys", {"Photons.topoetcone20", "Photons.topoetcone40"} };
60 SG::ReadDecorHandleKey<xAOD::EventInfo> m_eventInfoDecorKey{this, "LArStatusFlag", "EventInfo.larFlags", "Key for EventInfo object"}; //To get data-dependencies right
61};
62
63#endif
Property holding a SG store/key/clid/attr name from which a ReadDecorHandle is made.
struct _triginfo TrigInfo
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)
Gaudi::Property< bool > m_forcePidSelection
force pid selection into photon navigation
Gaudi::Property< bool > m_doUnconverted
doUnconverted analysis
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
Gaudi::Property< std::map< std::string, std::string > > m_BSTrigMap
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.
virtual StatusCode initialize() override
initialize
std::vector< std::string > m_trigList
List of triggers to study.
Gaudi::Property< std::vector< std::string > > m_trigInputList
List of triggers from menu.
Gaudi::Property< std::string > m_photonPid
Photon pid word.
SG::ReadDecorHandleKeyArray< xAOD::PhotonContainer > m_offPhotonIsolationKeys
Ensure offline photon isolation decoration is retrieved after being created.
SG::ReadHandleKey< xAOD::PhotonContainer > m_offPhotonKey
Event Wise offline PhotonContainer Access and end iterator.
SG::ReadDecorHandleKey< xAOD::EventInfo > m_eventInfoDecorKey
TrigEgammaMonitorPhotonAlgorithm(const std::string &name, ISvcLocator *pSvcLocator)
Gaudi::Property< bool > m_onlyHLT
Compute only final HLT decision.
DecorHandleKeyArray< ReadDecorHandle< T, S >, ReadDecorHandleKey< T >, Gaudi::DataHandle::Reader > ReadDecorHandleKeyArray