ATLAS Offline Software
TriggerSelectionAlg.h
Go to the documentation of this file.
1 /*
2  Copyright (C) 2002-2025 CERN for the benefit of the ATLAS collaboration
3 */
4 
5 #ifndef EVENTUTILS_TRIGGERSELECTIONALG_H
6 #define EVENTUTILS_TRIGGERSELECTIONALG_H 1
7 
8 // STL includes
9 #include <string>
10 
11 // FrameWork includes
13 #include "GaudiKernel/ToolHandle.h"
14 
15 // EDM includes
17 
18 // Forward declarations
19 namespace Trig{
20  class TrigDecisionTool;
21 }
22 
23 
25  : public ::AthFilterAlgorithm
26 {
28  // Public methods:
30  public:
31 
33  TriggerSelectionAlg( const std::string& name, ISvcLocator* pSvcLocator );
34 
36  virtual ~TriggerSelectionAlg();
37 
39  virtual StatusCode initialize() override;
40 
42  virtual StatusCode execute() override;
43 
45  virtual StatusCode finalize() override;
46 
47 
48  private:
49 
52 
54  ToolHandle<Trig::TrigDecisionTool> m_trigDecisionTool{ this, "TrigDecisionTool", "Trig::TrigDecisionTool/TrigDecisionTool",
55  "The TrigDecisionTool" };
56 
58  StringArrayProperty m_triggerList{ this, "TriggerList", {},
59  "The list of triggers to cut on" };
60 
62  BooleanProperty m_decoEvtInfo{ this, "DecorateEventInfo", true,
63  "Decide if we also want to decorate the xAOD::EventInfo object with the pass/fail information" };
64 
66  StringProperty m_evtInfoName{ this, "EventInfoName", "EventInfo",
67  "Name of the xAOD::EventInfo object that we want to decorate" };
68 
70  StringProperty m_varPrefix{ this, "VarNamePrefix", "pass_",
71  "Prefix used for the decoration variables" };
72 
74  BooleanProperty m_storePrescaleInfo{ this, "StorePrescaleInfo", false,
75  "Decide if we also want to decorate the xAOD::EventInfo object with the full-chain prescale information" };
76 
78 
81 
83  std::vector<std::string> m_varNameList;
84 
86 
87 };
88 
89 
90 
91 #endif //> !EVENTUTILS_TRIGGERSELECTIONALG_H
TriggerSelectionAlg::initialize
virtual StatusCode initialize() override
Athena algorithm's initalize hook.
Definition: TriggerSelectionAlg.cxx:22
TriggerSelectionAlg::TriggerSelectionAlg
TriggerSelectionAlg(const std::string &name, ISvcLocator *pSvcLocator)
Constructor with parameters:
Definition: TriggerSelectionAlg.cxx:13
TriggerSelectionAlg::execute
virtual StatusCode execute() override
Athena algorithm's execute hook.
Definition: TriggerSelectionAlg.cxx:57
Trig
The common trigger namespace for trigger analysis tools.
Definition: LArCellMonAlg.h:33
TriggerSelectionAlg::finalize
virtual StatusCode finalize() override
Athena algorithm's finalize hook.
Definition: TriggerSelectionAlg.cxx:46
TriggerSelectionAlg::m_varPrefix
StringProperty m_varPrefix
Prefix used for the decoration variables.
Definition: TriggerSelectionAlg.h:70
TriggerSelectionAlg::m_varNameList
std::vector< std::string > m_varNameList
The list of all variables names.
Definition: TriggerSelectionAlg.h:83
AthFilterAlgorithm
Definition: AthFilterAlgorithm.h:26
EL::StatusCode
::StatusCode StatusCode
StatusCode definition for legacy code.
Definition: PhysicsAnalysis/D3PDTools/EventLoop/EventLoop/StatusCode.h:22
TriggerSelectionAlg::m_triggerList
StringArrayProperty m_triggerList
The list of triggers to cut on.
Definition: TriggerSelectionAlg.h:58
TriggerSelectionAlg::m_evtInfoName
StringProperty m_evtInfoName
Name of the xAOD::EventInfo object that we want to decorate.
Definition: TriggerSelectionAlg.h:66
TriggerSelectionAlg::m_decoEvtInfo
BooleanProperty m_decoEvtInfo
Decide if we also want to decorate the xAOD::EventInfo object with the pass/fail information.
Definition: TriggerSelectionAlg.h:62
TriggerSelectionAlg::~TriggerSelectionAlg
virtual ~TriggerSelectionAlg()
Destructor:
Definition: TriggerSelectionAlg.cxx:19
TriggerSelectionAlg::m_trigDecisionTool
ToolHandle< Trig::TrigDecisionTool > m_trigDecisionTool
The ToolHandle for the TrigDecisionTool.
Definition: TriggerSelectionAlg.h:54
name
std::string name
Definition: Control/AthContainers/Root/debug.cxx:240
TriggerSelectionAlg
Definition: TriggerSelectionAlg.h:26
LArSCvsRawChannelConfig.TrigDecisionTool
TrigDecisionTool
Definition: LArSCvsRawChannelConfig.py:83
AthFilterAlgorithm.h
TriggerSelectionAlg::m_storePrescaleInfo
BooleanProperty m_storePrescaleInfo
Decide if we also want to decorate the xAOD::EventInfo object with the (full-chain) prescale informat...
Definition: TriggerSelectionAlg.h:74
AuxElement.h
Base class for elements of a container that can have aux data.