ATLAS Offline Software
TrigMatchingAlg.h
Go to the documentation of this file.
1 /*
2  Copyright (C) 2002-2024 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
18 
19 // Framework includes
23 #include <AsgTools/AsgTool.h>
24 #include <AsgTools/ToolHandle.h>
25 #include <AsgTools/AnaToolHandle.h>
26 
27 // Trigger Include
29 
30 namespace CP
31 {
34 
35  class TrigMatchingAlg final : public EL::AnaAlgorithm
36  {
38  public:
39  TrigMatchingAlg(const std::string& name, ISvcLocator* pSvcLocator);
40 
41  public:
42  virtual StatusCode initialize() final override;
43  virtual StatusCode execute() final override;
44 
46  private:
47  ToolHandle<Trig::IMatchingTool> m_trigMatchingTool;
48 
51 
53  Gaudi::Property<std::string> m_matchingDecoration {this, "matchingDecoration", {}, "The decoration for trigger matching"};
54 
56  std::unordered_map<std::string, SG::AuxElement::Decorator<char>> m_matchingDecorators;
57 
59  Gaudi::Property<std::vector<std::string>> m_trigSingleMatchingList {this, "trigSingleMatchingList", {}, "List of triggers for Matching"};
60 
62  SysReadHandle<xAOD::IParticleContainer> m_particlesHandle { this, "particles", "", "the particle container to use"};
63 
65  SysReadSelectionHandle m_particleSelection {this, "particleSelection", "", "the selection on the input particles"};
66 
67  };
68 
69 } // namespace CP
70 
71 #endif /* TRIGGER_ANALYSIS_ALGORITHMS__TRIG_MATCHING_ALG_H */
72 
CP::TrigMatchingAlg::m_systematicsList
SysListHandle m_systematicsList
the systematics list we run
Definition: TrigMatchingAlg.h:50
PropertyWrapper.h
CP::SysListHandle
a class managing the property to configure the list of systematics to process
Definition: SysListHandle.h:33
SysWriteDecorHandle.h
CP::TrigMatchingAlg::TrigMatchingAlg
TrigMatchingAlg(const std::string &name, ISvcLocator *pSvcLocator)
the standard constructor
Definition: TrigMatchingAlg.cxx:15
CP::SysReadHandle
a data handle for reading systematics varied input data
Definition: SysReadHandle.h:32
CP::TrigMatchingAlg::m_particlesHandle
SysReadHandle< xAOD::IParticleContainer > m_particlesHandle
input particle collection
Definition: TrigMatchingAlg.h:62
CP
Select isolated Photons, Electrons and Muons.
Definition: Control/xAODRootAccess/xAODRootAccess/TEvent.h:48
CP::TrigMatchingAlg::m_particleSelection
SysReadSelectionHandle m_particleSelection
input particle selection
Definition: TrigMatchingAlg.h:65
CP::TrigMatchingAlg::m_trigSingleMatchingList
Gaudi::Property< std::vector< std::string > > m_trigSingleMatchingList
list of triggers
Definition: TrigMatchingAlg.h:59
SysReadHandle.h
AsgMessaging.h
SysWriteHandle.h
AnaAlgorithm.h
EL::AnaAlgorithm
the (new) base class for EventLoop algorithms
Definition: AnaAlgorithm.h:73
EL::StatusCode
::StatusCode StatusCode
StatusCode definition for legacy code.
Definition: PhysicsAnalysis/D3PDTools/EventLoop/EventLoop/StatusCode.h:22
IParticleContainer.h
CP::TrigMatchingAlg::execute
virtual StatusCode execute() final override
Definition: TrigMatchingAlg.cxx:54
CP::TrigMatchingAlg::m_matchingDecoration
Gaudi::Property< std::string > m_matchingDecoration
the decoration for trigger matching
Definition: TrigMatchingAlg.h:53
AnaToolHandle.h
SysFilterReporterParams.h
name
std::string name
Definition: Control/AthContainers/Root/debug.cxx:228
SysReadSelectionHandle.h
CP::TrigMatchingAlg
an algorithm to provide and decorate trigger matching for leptons Currently only single leg triggers ...
Definition: TrigMatchingAlg.h:36
CP::TrigMatchingAlg::m_trigMatchingTool
ToolHandle< Trig::IMatchingTool > m_trigMatchingTool
trigger decision tool handle
Definition: TrigMatchingAlg.h:47
CP::TrigMatchingAlg::initialize
virtual StatusCode initialize() final override
Definition: TrigMatchingAlg.cxx:22
EventInfo.h
IMatchingTool.h
CP::SysReadSelectionHandle
a data handle for reading systematically varied selection properties from objects
Definition: SysReadSelectionHandle.h:32
CP::TrigMatchingAlg::m_matchingDecorators
std::unordered_map< std::string, SG::AuxElement::Decorator< char > > m_matchingDecorators
the decorators for m_matchingDecoration and triggers combination
Definition: TrigMatchingAlg.h:56
ToolHandle.h
AsgTool.h