ATLAS Offline Software
Loading...
Searching...
No Matches
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
11#include <AsgTools/ToolHandle.h>
17#include <AsgTools/PropertyWrapper.h> //Gaudi::Property
18#include <vector>
19#include <string>
20
21namespace CP
22{
24 {
25 public:
27
28 virtual StatusCode initialize() final override;
29 virtual StatusCode execute(const EventContext& ctx) final override;
30 virtual StatusCode finalize() final override;
31
32 private:
34 PublicToolHandle<Trig::ITrigDecisionTool> m_trigDecisionTool{this, "tool", "Trig::TrigDecisionTool/TrigDecisionTool", "trigger decision tool"};
35
37 SG::ReadHandleKey<xAOD::EventInfo> m_eventInfoKey {this, "eventInfo", "EventInfo", "the EventInfo to decorate"};
38
40 Gaudi::Property<std::vector<std::string>> m_trigList {this, "triggers", {}, "trigger selection list"};
41
43 Gaudi::Property<std::string> m_selectionDecoration {this, "selectionDecoration", "", "the decoration the trigger pass status"};
44
46 Gaudi::Property<bool> m_noFilter {this, "noFilter", false, "whether to not apply an event filter"};
47
49 Gaudi::Property<bool> m_noL1 {this, "noL1", false, "whether to not require L1 decision"};
50
52 std::vector<SG::Decorator<char>> m_selectionAccessors;
53
55 FilterReporterParams m_filterParams {this, "TriggerEventSelection", "trigger event selection"};
56 };
57}
58
59#endif
Property holding a SG store/key/clid from which a ReadHandle is made.
SG::ReadHandleKey< xAOD::EventInfo > m_eventInfoKey
the EventInfo to decorate
Gaudi::Property< bool > m_noFilter
whether to not apply an event filter
virtual StatusCode finalize() final override
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
PublicToolHandle< Trig::ITrigDecisionTool > m_trigDecisionTool
trigger decision tool handle
virtual StatusCode initialize() final override
std::vector< SG::Decorator< char > > m_selectionAccessors
the accessors for m_selectionDecoration and m_trigList combination
Gaudi::Property< std::vector< std::string > > m_trigList
list of triggers or trigger chains
the (new) base class for EventLoop algorithms
AnaAlgorithm(const std::string &name, ISvcLocator *pSvcLocator)
constructor with parameters
virtual::StatusCode execute()
execute this algorithm
a handle for applying algorithm filter decisions
Property holding a SG store/key/clid from which a ReadHandle is made.
Select isolated Photons, Electrons and Muons.