ATLAS Offline Software
TrigEgammaEmulationToolTest.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 // 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 
60 
61  TrigEgammaEmulationToolTest::TrigInfo getInfo( std::string trigger ) const;
62 
63 
64  void fillLabel( const ToolHandle<GenericMonitoringTool>& groupHandle,
65  const std::string &histname,
66  const std::string &label ) const;
67 };
68 
69 #endif
grepfile.info
info
Definition: grepfile.py:38
TrigEgammaMatchingToolMT.h
TrigEgammaEmulationToolTest::m_trigdec
ToolHandle< Trig::TrigDecisionTool > m_trigdec
Definition: TrigEgammaEmulationToolTest.h:48
TrigEgammaEmulationToolTest::m_electronTriggerList
Gaudi::Property< std::vector< std::string > > m_electronTriggerList
Definition: TrigEgammaEmulationToolTest.h:52
TrigEgammaEmulationToolTest::m_offElectronKey
SG::ReadHandleKey< xAOD::ElectronContainer > m_offElectronKey
Definition: TrigEgammaEmulationToolTest.h:55
PlotCalibFromCool.label
label
Definition: PlotCalibFromCool.py:78
TrigEgammaEmulationToolTest::getInfo
TrigEgammaEmulationToolTest::TrigInfo getInfo(std::string trigger) const
Definition: TrigEgammaEmulationToolTest.cxx:258
TrigEgammaEmulationToolTest::TrigInfo::trigger
std::string trigger
Definition: TrigEgammaEmulationToolTest.h:23
TrigEgammaEmulationToolTest::m_matchTool
ToolHandle< TrigEgammaMatchingToolMT > m_matchTool
Definition: TrigEgammaEmulationToolTest.h:49
TrigEgammaEmulationToolTest::m_offPhotonKey
SG::ReadHandleKey< xAOD::PhotonContainer > m_offPhotonKey
Definition: TrigEgammaEmulationToolTest.h:56
SG::ReadHandleKey< xAOD::ElectronContainer >
TrigEgammaEmulationToolTest::m_emulatorTool
ToolHandle< Trig::TrigEgammaEmulationToolMT > m_emulatorTool
Definition: TrigEgammaEmulationToolTest.h:50
TrigEgammaEmulationToolTest::TrigInfo::gsf
bool gsf
Definition: TrigEgammaEmulationToolTest.h:28
TrigEgammaEmulationToolTest::TrigInfo::threshold
float threshold
Definition: TrigEgammaEmulationToolTest.h:25
AthMonitorAlgorithm
Base class for Athena Monitoring Algorithms.
Definition: AthMonitorAlgorithm.h:36
TrigEgammaEmulationToolTest
Definition: TrigEgammaEmulationToolTest.h:19
TrigEgammaEmulationToolTest::TrigInfo::etcut
bool etcut
Definition: TrigEgammaEmulationToolTest.h:26
TrigEgammaEmulationToolTest::initialize
virtual StatusCode initialize() override
Athena algorithm's Hooks.
Definition: TrigEgammaEmulationToolTest.cxx:28
GenericMonitoringTool.h
TrigEgammaEmulationToolTest::TrigInfo::idperf
bool idperf
Definition: TrigEgammaEmulationToolTest.h:27
PixelAthClusterMonAlgCfg.histname
histname
Definition: PixelAthClusterMonAlgCfg.py:106
asg::AcceptInfo
Definition: AcceptInfo.h:28
ElectronContainer.h
TrigEgammaEmulationToolTest::TrigInfo
Definition: TrigEgammaEmulationToolTest.h:22
EL::StatusCode
::StatusCode StatusCode
StatusCode definition for legacy code.
Definition: PhysicsAnalysis/D3PDTools/EventLoop/EventLoop/StatusCode.h:22
AthMonitorAlgorithm.h
TrigEgammaEmulationToolTest::fillHistograms
virtual StatusCode fillHistograms(const EventContext &ctx) const override
adds event to the monitoring histograms
Definition: TrigEgammaEmulationToolTest.cxx:55
xAOD::TrigComposite_v1
Class used to describe composite objects in the HLT.
Definition: TrigComposite_v1.h:52
TrigEgammaEmulationToolTest::TrigInfo::lrt
bool lrt
Definition: TrigEgammaEmulationToolTest.h:29
name
std::string name
Definition: Control/AthContainers/Root/debug.cxx:221
TrigEgammaEmulationToolTest::~TrigEgammaEmulationToolTest
virtual ~TrigEgammaEmulationToolTest()
Destructor:
Definition: TrigEgammaEmulationToolTest.cxx:24
TrigEgammaEmulationToolTest::fillLabel
void fillLabel(const ToolHandle< GenericMonitoringTool > &groupHandle, const std::string &histname, const std::string &label) const
Definition: TrigEgammaEmulationToolTest.cxx:287
TrigEgammaEmulationToolTest::setAccept
asg::AcceptData setAccept(const TrigCompositeUtils::Decision *dec, const TrigEgammaEmulationToolTest::TrigInfo &info) const
Definition: TrigEgammaEmulationToolTest.cxx:163
TrigEgammaEmulationToolTest::TrigEgammaEmulationToolTest
TrigEgammaEmulationToolTest(const std::string &name, ISvcLocator *pSvcLocator)
Constructor with parameters:
Definition: TrigEgammaEmulationToolTest.cxx:14
TrigEgammaEmulationToolTest::m_photonTriggerList
Gaudi::Property< std::vector< std::string > > m_photonTriggerList
Definition: TrigEgammaEmulationToolTest.h:53
TrigEgammaEmulationToolTest::m_accept
asg::AcceptInfo m_accept
Definition: TrigEgammaEmulationToolTest.h:46
asg::AcceptData
Definition: AcceptData.h:30
TrigEgammaEmulationToolTest::TrigInfo::type
std::string type
Definition: TrigEgammaEmulationToolTest.h:24
PhotonContainer.h
TrigEgammaEmulationToolMT.h