ATLAS Offline Software
Loading...
Searching...
No Matches
EventFlagSelectionAlg.h
Go to the documentation of this file.
1/*
2 Copyright (C) 2002-2024 CERN for the benefit of the ATLAS collaboration
3*/
4
6
7#ifndef ASG_ANALYSIS_ALGORITHMS__EVENT_FLAG_SELECTION_ALG_H
8#define ASG_ANALYSIS_ALGORITHMS__EVENT_FLAG_SELECTION_ALG_H
9
14
15namespace CP
16{
19 {
20 public:
22 virtual StatusCode initialize() final;
23 virtual StatusCode execute() final;
24 virtual StatusCode finalize() final;
25
26 private:
28 Gaudi::Property<std::vector<std::string>> m_selFlags {this, "selectionFlags", {}, "list of flags to use as selection criteria"};
29
31 Gaudi::Property<std::vector<bool>> m_invertFlags {this, "invertFlags", {}, "toggles for inverting the selection (index-parallel to selectionFlags)"};
32
34 std::vector<std::unique_ptr<ISelectionReadAccessor>> m_accessors;
35
37 FilterReporterParams m_filterParams {this, "EventFlagSelection", "event flag selection"};
38 };
39}
40
41#endif
an algorithm for selecting events by flag
virtual StatusCode finalize() final
virtual StatusCode initialize() final
FilterReporterParams m_filterParams
the filter reporter params
std::vector< std::unique_ptr< ISelectionReadAccessor > > m_accessors
a vector of accessors to read the flags
virtual StatusCode execute() final
Gaudi::Property< std::vector< bool > > m_invertFlags
invert flags
Gaudi::Property< std::vector< std::string > > m_selFlags
flags that we want to select events with
the (new) base class for EventLoop algorithms
AnaAlgorithm(const std::string &name, ISvcLocator *pSvcLocator)
constructor with parameters
a handle for applying algorithm filter decisions
Select isolated Photons, Electrons and Muons.