ATLAS Offline Software
Toggle main menu visibility
Loading...
Searching...
No Matches
Trigger
TrigAnalysis
TrigEgammaEmulationTool
src
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
10
#include "
AthenaMonitoring/AthMonitorAlgorithm.h
"
11
#include "
AthenaMonitoringKernel/GenericMonitoringTool.h
"
12
#include "
TrigEgammaMatchingTool/TrigEgammaMatchingToolMT.h
"
13
#include "
TrigEgammaEmulationTool/TrigEgammaEmulationToolMT.h
"
14
#include "
xAODEgamma/ElectronContainer.h
"
15
#include "
xAODEgamma/PhotonContainer.h
"
16
17
18
class
TrigEgammaEmulationToolTest
:
public
AthMonitorAlgorithm
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);
37
virtual
~TrigEgammaEmulationToolTest
();
38
40
virtual
StatusCode
initialize
()
override
;
41
virtual
StatusCode
fillHistograms
(
const
EventContext& ctx)
const override
;
42
43
44
private
:
45
46
asg::AcceptInfo
m_accept
;
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,
59
const
TrigCompositeUtils::Decision
*dec,
60
const
TrigEgammaEmulationToolTest::TrigInfo
& info)
const
;
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.h
ElectronContainer.h
PhotonContainer.h
GenericMonitoringTool.h
TrigEgammaEmulationToolMT.h
TrigEgammaMatchingToolMT.h
AthMonitorAlgorithm::AthMonitorAlgorithm
AthMonitorAlgorithm(const std::string &name, ISvcLocator *pSvcLocator)
Constructor.
Definition
AthMonitorAlgorithm.cxx:8
SG::ReadHandleKey
Property holding a SG store/key/clid from which a ReadHandle is made.
Definition
StoreGate/StoreGate/ReadHandleKey.h:40
TrigEgammaEmulationToolTest::TrigEgammaEmulationToolTest
TrigEgammaEmulationToolTest(const std::string &name, ISvcLocator *pSvcLocator)
Constructor with parameters:
Definition
TrigEgammaEmulationToolTest.cxx:14
TrigEgammaEmulationToolTest::m_emulatorTool
ToolHandle< Trig::TrigEgammaEmulationToolMT > m_emulatorTool
Definition
TrigEgammaEmulationToolTest.h:50
TrigEgammaEmulationToolTest::setAccept
asg::AcceptData setAccept(const EventContext &ctx, const TrigCompositeUtils::Decision *dec, const TrigEgammaEmulationToolTest::TrigInfo &info) const
Definition
TrigEgammaEmulationToolTest.cxx:163
TrigEgammaEmulationToolTest::getInfo
TrigEgammaEmulationToolTest::TrigInfo getInfo(std::string trigger) const
Definition
TrigEgammaEmulationToolTest.cxx:259
TrigEgammaEmulationToolTest::m_matchTool
ToolHandle< TrigEgammaMatchingToolMT > m_matchTool
Definition
TrigEgammaEmulationToolTest.h:49
TrigEgammaEmulationToolTest::m_photonTriggerList
Gaudi::Property< std::vector< std::string > > m_photonTriggerList
Definition
TrigEgammaEmulationToolTest.h:53
TrigEgammaEmulationToolTest::fillHistograms
virtual StatusCode fillHistograms(const EventContext &ctx) const override
adds event to the monitoring histograms
Definition
TrigEgammaEmulationToolTest.cxx:55
TrigEgammaEmulationToolTest::m_accept
asg::AcceptInfo m_accept
Definition
TrigEgammaEmulationToolTest.h:46
TrigEgammaEmulationToolTest::m_offElectronKey
SG::ReadHandleKey< xAOD::ElectronContainer > m_offElectronKey
Definition
TrigEgammaEmulationToolTest.h:55
TrigEgammaEmulationToolTest::fillLabel
void fillLabel(const ToolHandle< GenericMonitoringTool > &groupHandle, const std::string &histname, const std::string &label) const
Definition
TrigEgammaEmulationToolTest.cxx:288
TrigEgammaEmulationToolTest::m_trigdec
ToolHandle< Trig::TrigDecisionTool > m_trigdec
Definition
TrigEgammaEmulationToolTest.h:48
TrigEgammaEmulationToolTest::initialize
virtual StatusCode initialize() override
Athena algorithm's Hooks.
Definition
TrigEgammaEmulationToolTest.cxx:28
TrigEgammaEmulationToolTest::m_electronTriggerList
Gaudi::Property< std::vector< std::string > > m_electronTriggerList
Definition
TrigEgammaEmulationToolTest.h:52
TrigEgammaEmulationToolTest::~TrigEgammaEmulationToolTest
virtual ~TrigEgammaEmulationToolTest()
Destructor:
Definition
TrigEgammaEmulationToolTest.cxx:24
TrigEgammaEmulationToolTest::m_offPhotonKey
SG::ReadHandleKey< xAOD::PhotonContainer > m_offPhotonKey
Definition
TrigEgammaEmulationToolTest.h:56
asg::AcceptData
Definition
AcceptData.h:31
asg::AcceptInfo
Definition
AcceptInfo.h:28
label
std::string label(const std::string &format, int i)
Definition
label.h:19
TrigCompositeUtils::Decision
xAOD::TrigComposite Decision
Definition
TrigComposite.h:20
TrigEgammaEmulationToolTest::TrigInfo
Definition
TrigEgammaEmulationToolTest.h:22
TrigEgammaEmulationToolTest::TrigInfo::type
std::string type
Definition
TrigEgammaEmulationToolTest.h:24
TrigEgammaEmulationToolTest::TrigInfo::threshold
float threshold
Definition
TrigEgammaEmulationToolTest.h:25
TrigEgammaEmulationToolTest::TrigInfo::lrt
bool lrt
Definition
TrigEgammaEmulationToolTest.h:29
TrigEgammaEmulationToolTest::TrigInfo::etcut
bool etcut
Definition
TrigEgammaEmulationToolTest.h:26
TrigEgammaEmulationToolTest::TrigInfo::idperf
bool idperf
Definition
TrigEgammaEmulationToolTest.h:27
TrigEgammaEmulationToolTest::TrigInfo::gsf
bool gsf
Definition
TrigEgammaEmulationToolTest.h:28
TrigEgammaEmulationToolTest::TrigInfo::trigger
std::string trigger
Definition
TrigEgammaEmulationToolTest.h:23
Generated on
for ATLAS Offline Software by
1.17.0