ATLAS Offline Software
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 
15 namespace 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
CP::EventFlagSelectionAlg::m_selFlags
Gaudi::Property< std::vector< std::string > > m_selFlags
flags that we want to select events with
Definition: EventFlagSelectionAlg.h:28
PropertyWrapper.h
CP::EventFlagSelectionAlg::m_filterParams
FilterReporterParams m_filterParams
the filter reporter params
Definition: EventFlagSelectionAlg.h:37
CP
Select isolated Photons, Electrons and Muons.
Definition: Control/xAODRootAccess/xAODRootAccess/TEvent.h:48
EL::AnaAlgorithm::AnaAlgorithm
AnaAlgorithm(const std::string &name, ISvcLocator *pSvcLocator)
constructor with parameters
Definition: AnaAlgorithm.cxx:40
FilterReporterParams
a handle for applying algorithm filter decisions
Definition: FilterReporterParams.h:58
AnaAlgorithm.h
EL::AnaAlgorithm
the (new) base class for EventLoop algorithms
Definition: AnaAlgorithm.h:73
EL::StatusCode
::StatusCode StatusCode
StatusCode definition for legacy code.
Definition: PhysicsAnalysis/D3PDTools/EventLoop/EventLoop/StatusCode.h:22
CP::EventFlagSelectionAlg::m_invertFlags
Gaudi::Property< std::vector< bool > > m_invertFlags
invert flags
Definition: EventFlagSelectionAlg.h:31
CP::EventFlagSelectionAlg::finalize
virtual StatusCode finalize() final
Definition: EventFlagSelectionAlg.cxx:68
CP::EventFlagSelectionAlg
an algorithm for selecting events by flag
Definition: EventFlagSelectionAlg.h:19
CP::EventFlagSelectionAlg::initialize
virtual StatusCode initialize() final
Definition: EventFlagSelectionAlg.cxx:11
CP::EventFlagSelectionAlg::execute
virtual StatusCode execute() final
Definition: EventFlagSelectionAlg.cxx:43
ISelectionReadAccessor.h
CP::EventFlagSelectionAlg::m_accessors
std::vector< std::unique_ptr< ISelectionReadAccessor > > m_accessors
a vector of accessors to read the flags
Definition: EventFlagSelectionAlg.h:34
FilterReporterParams.h