ATLAS Offline Software
Toggle main menu visibility
Loading...
Searching...
No Matches
PhysicsAnalysis
Algorithms
TriggerAnalysisAlgorithms
TriggerAnalysisAlgorithms
TrigMatchingAlg.h
Go to the documentation of this file.
1
/*
2
Copyright (C) 2002-2026 CERN for the benefit of the ATLAS collaboration
3
*/
4
6
7
#ifndef TRIGGER_ANALYSIS_ALGORITHMS__TRIG_MATCHING_ALG_H
8
#define TRIGGER_ANALYSIS_ALGORITHMS__TRIG_MATCHING_ALG_H
9
10
// Algorithm includes
11
#include <
AnaAlgorithm/AnaAlgorithm.h
>
12
#include <
SystematicsHandles/SysListHandle.h
>
13
#include <
SystematicsHandles/SysReadHandle.h
>
14
#include <
AsgTools/PropertyWrapper.h
>
15
16
// Framework includes
17
#include <
AthContainers/Decorator.h
>
18
#include <
xAODBase/IParticleContainer.h
>
19
#include <
AsgTools/ToolHandle.h
>
20
21
// Trigger Include
22
#include <
TriggerMatchingTool/IMatchingTool.h
>
23
24
#include <string>
25
#include <vector>
26
27
namespace
CP
28
{
31
32
class
TrigMatchingAlg
final :
public
EL::AnaAlgorithm
33
{
35
public
:
36
TrigMatchingAlg
(
const
std::string&
name
, ISvcLocator* pSvcLocator);
37
38
public
:
39
virtual
StatusCode
initialize
()
final
override
;
40
virtual
StatusCode
execute
(
const
EventContext& ctx)
final
override
;
41
43
private
:
44
ToolHandle<Trig::IMatchingTool>
m_trigMatchingTool
;
45
47
SysListHandle
m_systematicsList
{
this
};
48
50
Gaudi::Property<std::string>
m_matchingDecoration
{
this
,
"matchingDecoration"
, {},
"The decoration for trigger matching"
};
51
53
Gaudi::Property<std::vector<std::string>>
m_trigSingleMatchingList
{
this
,
"trigSingleMatchingList"
, {},
"List of triggers for Matching"
};
54
56
Gaudi::Property<std::vector<std::string>>
m_trigSingleMatchingListDummy
{
this
,
"trigSingleMatchingListDummy"
, {},
"List of triggers for dummy matching decorations"
};
57
59
SysReadHandle<xAOD::IParticleContainer>
m_particlesHandle
{
this
,
"particles"
,
""
,
"the particle container to use"
};
60
62
struct
MatchingChain
63
{
64
std::string
chain
;
65
float
dR
{};
66
SG::Decorator<char>
decorator
;
67
};
68
std::vector<MatchingChain>
m_matchingChains
;
69
71
struct
DummyChain
72
{
73
std::string
chain
;
74
SG::Decorator<char>
decorator
;
75
};
76
std::vector<DummyChain>
m_dummyChains
;
77
78
};
79
80
}
// namespace CP
81
82
#endif
/* TRIGGER_ANALYSIS_ALGORITHMS__TRIG_MATCHING_ALG_H */
AnaAlgorithm.h
Decorator.h
Helper class to provide type-safe access to aux data.
IMatchingTool.h
PropertyWrapper.h
SysListHandle.h
SysReadHandle.h
ToolHandle.h
CP::SysListHandle
a class managing the property to configure the list of systematics to process
Definition
SysListHandle.h:33
CP::SysReadHandle
a data handle for reading systematics varied input data
Definition
SysReadHandle.h:33
CP::TrigMatchingAlg::m_particlesHandle
SysReadHandle< xAOD::IParticleContainer > m_particlesHandle
input particle collection
Definition
TrigMatchingAlg.h:59
CP::TrigMatchingAlg::m_dummyChains
std::vector< DummyChain > m_dummyChains
Definition
TrigMatchingAlg.h:76
CP::TrigMatchingAlg::m_trigSingleMatchingListDummy
Gaudi::Property< std::vector< std::string > > m_trigSingleMatchingListDummy
list of triggers for dummy matching decorations
Definition
TrigMatchingAlg.h:56
CP::TrigMatchingAlg::initialize
virtual StatusCode initialize() final override
Definition
TrigMatchingAlg.cxx:22
CP::TrigMatchingAlg::m_matchingChains
std::vector< MatchingChain > m_matchingChains
Definition
TrigMatchingAlg.h:68
CP::TrigMatchingAlg::TrigMatchingAlg
TrigMatchingAlg(const std::string &name, ISvcLocator *pSvcLocator)
the standard constructor
Definition
TrigMatchingAlg.cxx:15
CP::TrigMatchingAlg::m_trigMatchingTool
ToolHandle< Trig::IMatchingTool > m_trigMatchingTool
trigger decision tool handle
Definition
TrigMatchingAlg.h:44
CP::TrigMatchingAlg::m_matchingDecoration
Gaudi::Property< std::string > m_matchingDecoration
the decoration for trigger matching
Definition
TrigMatchingAlg.h:50
CP::TrigMatchingAlg::m_systematicsList
SysListHandle m_systematicsList
the systematics list we run
Definition
TrigMatchingAlg.h:47
CP::TrigMatchingAlg::m_trigSingleMatchingList
Gaudi::Property< std::vector< std::string > > m_trigSingleMatchingList
list of triggers
Definition
TrigMatchingAlg.h:53
EL::AnaAlgorithm
the (new) base class for EventLoop algorithms
Definition
AnaAlgorithm.h:74
EL::AnaAlgorithm::execute
virtual::StatusCode execute()
execute this algorithm
Definition
AnaAlgorithm.cxx:315
CP
Select isolated Photons, Electrons and Muons.
Definition
Control/xAODRootAccess/xAODRootAccess/TEvent.h:27
SG::Decorator
SG::Decorator< T, ALLOC > Decorator
Helper class to provide type-safe access to aux data, specialized for JaggedVecElt.
Definition
AuxElement.h:576
xAOD::name
name
Definition
TriggerMenuJson_v1.cxx:29
CP::TrigMatchingAlg::DummyChain
per-chain dummy matching decorations, built in initialize()
Definition
TrigMatchingAlg.h:72
CP::TrigMatchingAlg::DummyChain::chain
std::string chain
Definition
TrigMatchingAlg.h:73
CP::TrigMatchingAlg::DummyChain::decorator
SG::Decorator< char > decorator
Definition
TrigMatchingAlg.h:74
CP::TrigMatchingAlg::MatchingChain
per-chain matching configuration, built in initialize()
Definition
TrigMatchingAlg.h:63
CP::TrigMatchingAlg::MatchingChain::decorator
SG::Decorator< char > decorator
Definition
TrigMatchingAlg.h:66
CP::TrigMatchingAlg::MatchingChain::dR
float dR
Definition
TrigMatchingAlg.h:65
CP::TrigMatchingAlg::MatchingChain::chain
std::string chain
Definition
TrigMatchingAlg.h:64
IParticleContainer.h
Generated on
for ATLAS Offline Software by
1.17.0