ATLAS Offline Software
Loading...
Searching...
No Matches
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
19namespace Trig{
20 class TrigDecisionTool;
21}
22
23
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
Base class for elements of a container that can have aux data.
AthFilterAlgorithm(const std::string &name, ISvcLocator *pSvcLocator)
Constructor with parameters:
StringArrayProperty m_triggerList
The list of triggers to cut on.
BooleanProperty m_decoEvtInfo
Decide if we also want to decorate the xAOD::EventInfo object with the pass/fail information.
StringProperty m_evtInfoName
Name of the xAOD::EventInfo object that we want to decorate.
virtual ~TriggerSelectionAlg()
Destructor:
virtual StatusCode finalize() override
Athena algorithm's finalize hook.
StringProperty m_varPrefix
Prefix used for the decoration variables.
virtual StatusCode execute() override
Athena algorithm's execute hook.
TriggerSelectionAlg(const std::string &name, ISvcLocator *pSvcLocator)
Constructor with parameters:
std::vector< std::string > m_varNameList
The list of all variables names.
BooleanProperty m_storePrescaleInfo
Decide if we also want to decorate the xAOD::EventInfo object with the (full-chain) prescale informat...
virtual StatusCode initialize() override
Athena algorithm's initalize hook.
ToolHandle< Trig::TrigDecisionTool > m_trigDecisionTool
The ToolHandle for the TrigDecisionTool.
The common trigger namespace for trigger analysis tools.