ATLAS Offline Software
Loading...
Searching...
No Matches
TrigEgammaEmulationToolTest.h
Go to the documentation of this file.
1/*
2 Copyright (C) 2002-2026 CERN for the benefit of the ATLAS collaboration
3*/
4
5// TrigEgammaMatchingToolTest.h
6
7#ifndef TrigEgammaEmulationToolTest_H
8#define TrigEgammaEmulationToolTest_H
9
16
17
19{
20 public:
21
22 struct TrigInfo{
23 std::string trigger;
24 std::string type;
25 float threshold{};
26 bool etcut{};
27 bool idperf{};
28 bool gsf{};
29 bool lrt{};
30 };
31
32
33 public:
35 TrigEgammaEmulationToolTest(const std::string& name, ISvcLocator* pSvcLocator);
38
40 virtual StatusCode initialize() override;
41 virtual StatusCode fillHistograms(const EventContext& ctx) const override;
42
43
44 private:
45
47
48 ToolHandle<Trig::TrigDecisionTool> m_trigdec;
49 ToolHandle<TrigEgammaMatchingToolMT> m_matchTool;
50 ToolHandle<Trig::TrigEgammaEmulationToolMT> m_emulatorTool;
51
52 Gaudi::Property<std::vector<std::string>> m_electronTriggerList {this, "ElectronTriggerList", {}, };
53 Gaudi::Property<std::vector<std::string>> m_photonTriggerList {this, "PhotonTriggerList", {}, };
54
55 SG::ReadHandleKey<xAOD::ElectronContainer> m_offElectronKey{ this, "ElectronKey", "Electrons", ""};
56 SG::ReadHandleKey<xAOD::PhotonContainer> m_offPhotonKey{ this, "PhotonKey", "Photons", ""};
57
58 asg::AcceptData setAccept( const EventContext& ctx,
61
62 TrigEgammaEmulationToolTest::TrigInfo getInfo( std::string trigger ) const;
63
64
65 void fillLabel( const ToolHandle<GenericMonitoringTool>& groupHandle,
66 const std::string &histname,
67 const std::string &label ) const;
68};
69
70#endif
AthMonitorAlgorithm(const std::string &name, ISvcLocator *pSvcLocator)
Constructor.
Property holding a SG store/key/clid from which a ReadHandle is made.
TrigEgammaEmulationToolTest(const std::string &name, ISvcLocator *pSvcLocator)
Constructor with parameters:
ToolHandle< Trig::TrigEgammaEmulationToolMT > m_emulatorTool
asg::AcceptData setAccept(const EventContext &ctx, const TrigCompositeUtils::Decision *dec, const TrigEgammaEmulationToolTest::TrigInfo &info) const
TrigEgammaEmulationToolTest::TrigInfo getInfo(std::string trigger) const
ToolHandle< TrigEgammaMatchingToolMT > m_matchTool
Gaudi::Property< std::vector< std::string > > m_photonTriggerList
virtual StatusCode fillHistograms(const EventContext &ctx) const override
adds event to the monitoring histograms
SG::ReadHandleKey< xAOD::ElectronContainer > m_offElectronKey
void fillLabel(const ToolHandle< GenericMonitoringTool > &groupHandle, const std::string &histname, const std::string &label) const
ToolHandle< Trig::TrigDecisionTool > m_trigdec
virtual StatusCode initialize() override
Athena algorithm's Hooks.
Gaudi::Property< std::vector< std::string > > m_electronTriggerList
SG::ReadHandleKey< xAOD::PhotonContainer > m_offPhotonKey
std::string label(const std::string &format, int i)
Definition label.h:19