ATLAS Offline Software
Loading...
Searching...
No Matches
TrigEventSelectionAlg.h
Go to the documentation of this file.
1/*
2 Copyright (C) 2002-2025 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
12#include <AsgTools/ToolHandle.h>
17
18namespace CP
19{
21 {
22 public:
23 TrigEventSelectionAlg(const std::string &name,
24 ISvcLocator *svcLoc = nullptr);
25
26 virtual StatusCode initialize() final;
27 virtual StatusCode execute() final;
28 virtual StatusCode finalize() final;
29
30 private:
32 ToolHandle<Trig::ITrigDecisionTool> m_trigDecisionTool;
33
35 Gaudi::Property<std::vector<std::string>> m_trigList {this, "triggers", {}, "trigger selection list"};
36
38 Gaudi::Property<std::string> m_selectionDecoration {this, "selectionDecoration", "", "the decoration the trigger pass status"};
39
41 Gaudi::Property<bool> m_noFilter {this, "noFilter", false, "whether to not apply an event filter"};
42
44 Gaudi::Property<bool> m_noL1 {this, "noL1", false, "whether to not require L1 decision"};
45
47 std::vector<SG::Decorator<bool>> m_selectionAccessors;
48
50 FilterReporterParams m_filterParams {this, "TriggerEventSelection", "trigger event selection"};
51 };
52}
53
54#endif
virtual StatusCode initialize() final
ToolHandle< Trig::ITrigDecisionTool > m_trigDecisionTool
trigger decision tool handle
Gaudi::Property< bool > m_noFilter
whether to not apply an event filter
TrigEventSelectionAlg(const std::string &name, ISvcLocator *svcLoc=nullptr)
Gaudi::Property< bool > m_noL1
whether to not require L1 decision
Gaudi::Property< std::string > m_selectionDecoration
the decoration for trigger selection
FilterReporterParams m_filterParams
the filter reporter params
virtual StatusCode execute() final
std::vector< SG::Decorator< bool > > m_selectionAccessors
the accessors for m_selectionDecoration and m_trigList combination
virtual StatusCode finalize() final
Gaudi::Property< std::vector< std::string > > m_trigList
list of triggers or trigger chains
the (new) base class for EventLoop algorithms
a handle for applying algorithm filter decisions
Select isolated Photons, Electrons and Muons.