ATLAS Offline Software
Toggle main menu visibility
Loading...
Searching...
No Matches
PhysicsAnalysis
Algorithms
TriggerAnalysisAlgorithms
TriggerAnalysisAlgorithms
TrigEventSelectionAlg.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_EVENT_SELECTION_ALG_H
8
#define TRIGGER_ANALYSIS_ALGORITHMS__TRIG_EVENT_SELECTION_ALG_H
9
10
#include <
AnaAlgorithm/AnaAlgorithm.h
>
11
#include <
AsgTools/ToolHandle.h
>
12
#include <
AsgDataHandles/ReadHandleKey.h
>
13
#include <
EventBookkeeperTools/FilterReporterParams.h
>
14
#include <
TrigDecisionInterface/ITrigDecisionTool.h
>
15
#include <
TrigDecisionInterface/Conditions.h
>
16
#include <
xAODEventInfo/EventInfo.h
>
17
#include <
AsgTools/PropertyWrapper.h
>
//Gaudi::Property
18
#include <vector>
19
#include <string>
20
21
namespace
CP
22
{
23
class
TrigEventSelectionAlg
:
public
EL::AnaAlgorithm
24
{
25
public
:
26
TrigEventSelectionAlg
(
const
std::string &
name
,
27
ISvcLocator *svcLoc =
nullptr
);
28
29
virtual
StatusCode
initialize
()
final
override
;
30
virtual
StatusCode
execute
(
const
EventContext& ctx)
final
override
;
31
virtual
StatusCode
finalize
()
final
override
;
32
33
private
:
35
ToolHandle<Trig::ITrigDecisionTool>
m_trigDecisionTool
;
36
38
SG::ReadHandleKey<xAOD::EventInfo>
m_eventInfoKey
{
this
,
"eventInfo"
,
"EventInfo"
,
"the EventInfo to decorate"
};
39
41
Gaudi::Property<std::vector<std::string>>
m_trigList
{
this
,
"triggers"
, {},
"trigger selection list"
};
42
44
Gaudi::Property<std::string>
m_selectionDecoration
{
this
,
"selectionDecoration"
,
""
,
"the decoration the trigger pass status"
};
45
47
Gaudi::Property<bool>
m_noFilter
{
this
,
"noFilter"
,
false
,
"whether to not apply an event filter"
};
48
50
Gaudi::Property<bool>
m_noL1
{
this
,
"noL1"
,
false
,
"whether to not require L1 decision"
};
51
53
std::vector<SG::Decorator<bool>>
m_selectionAccessors
;
54
56
FilterReporterParams
m_filterParams
{
this
,
"TriggerEventSelection"
,
"trigger event selection"
};
57
};
58
}
59
60
#endif
AnaAlgorithm.h
ReadHandleKey.h
Property holding a SG store/key/clid from which a ReadHandle is made.
FilterReporterParams.h
ITrigDecisionTool.h
PropertyWrapper.h
ToolHandle.h
Conditions.h
CP::TrigEventSelectionAlg::m_eventInfoKey
SG::ReadHandleKey< xAOD::EventInfo > m_eventInfoKey
the EventInfo to decorate
Definition
TrigEventSelectionAlg.h:38
CP::TrigEventSelectionAlg::m_trigDecisionTool
ToolHandle< Trig::ITrigDecisionTool > m_trigDecisionTool
trigger decision tool handle
Definition
TrigEventSelectionAlg.h:35
CP::TrigEventSelectionAlg::m_noFilter
Gaudi::Property< bool > m_noFilter
whether to not apply an event filter
Definition
TrigEventSelectionAlg.h:47
CP::TrigEventSelectionAlg::finalize
virtual StatusCode finalize() final override
Definition
TrigEventSelectionAlg.cxx:67
CP::TrigEventSelectionAlg::TrigEventSelectionAlg
TrigEventSelectionAlg(const std::string &name, ISvcLocator *svcLoc=nullptr)
Definition
TrigEventSelectionAlg.cxx:12
CP::TrigEventSelectionAlg::m_noL1
Gaudi::Property< bool > m_noL1
whether to not require L1 decision
Definition
TrigEventSelectionAlg.h:50
CP::TrigEventSelectionAlg::m_selectionDecoration
Gaudi::Property< std::string > m_selectionDecoration
the decoration for trigger selection
Definition
TrigEventSelectionAlg.h:44
CP::TrigEventSelectionAlg::m_filterParams
FilterReporterParams m_filterParams
the filter reporter params
Definition
TrigEventSelectionAlg.h:56
CP::TrigEventSelectionAlg::m_selectionAccessors
std::vector< SG::Decorator< bool > > m_selectionAccessors
the accessors for m_selectionDecoration and m_trigList combination
Definition
TrigEventSelectionAlg.h:53
CP::TrigEventSelectionAlg::initialize
virtual StatusCode initialize() final override
Definition
TrigEventSelectionAlg.cxx:20
CP::TrigEventSelectionAlg::m_trigList
Gaudi::Property< std::vector< std::string > > m_trigList
list of triggers or trigger chains
Definition
TrigEventSelectionAlg.h:41
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
FilterReporterParams
a handle for applying algorithm filter decisions
Definition
FilterReporterParams.h:57
SG::ReadHandleKey
Property holding a SG store/key/clid from which a ReadHandle is made.
Definition
StoreGate/StoreGate/ReadHandleKey.h:40
CP
Select isolated Photons, Electrons and Muons.
Definition
Control/xAODRootAccess/xAODRootAccess/TEvent.h:27
xAOD::name
name
Definition
TriggerMenuJson_v1.cxx:29
EventInfo.h
Generated on
for ATLAS Offline Software by
1.17.0