ATLAS Offline Software
SaveFilterAlg.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 EVENT_SELECTOR_SAVEFILTERALG_H
8 #define EVENT_SELECTOR_SAVEFILTERALG_H
9 
10 // Algorithm includes
19 
20 // Framework includes
22 
23 namespace CP {
24 
26 
27  class SaveFilterAlg final : public EL::AnaAlgorithm {
28 
30  public:
31  SaveFilterAlg(const std::string &name, ISvcLocator *pSvcLocator);
32  virtual StatusCode initialize() override;
33  virtual StatusCode execute() override;
34  virtual StatusCode finalize() override;
35 
36  private:
37 
40 
43  this, "selection", "SetMe", "names of the selections to check"
44  };
45 
48  this, "eventInfoContainer", "EventInfo", "the EventInfo container to read selection decisions from"
49  };
50 
53  this, "event selector SAVE filter"
54  };
55 
57  Gaudi::Property<bool> m_noFilter {this, "noFilter", false, "whether to disable the event filter"};
58 
61  this, "selectionName", "SetMe", "name of the output selection decision"
62  };
63 
66  this, "decorationName", "SetMe", "additional decoration name for the event filter (stores the decision even when the filter is off)"
67  };
68 
69  }; // class
70 } // namespace CP
71 
72 #endif // EVENT_SELECTOR_SAVEFILTERALG_H
CP::SaveFilterAlg::m_decoration
CP::SysWriteDecorHandle< char > m_decoration
the output selection decoration for the event filter
Definition: SaveFilterAlg.h:65
PropertyWrapper.h
CP::SysListHandle
a class managing the property to configure the list of systematics to process
Definition: SysListHandle.h:33
SysWriteDecorHandle.h
SysWriteSelectionHandle.h
CP::SaveFilterAlg::SaveFilterAlg
SaveFilterAlg(const std::string &name, ISvcLocator *pSvcLocator)
the standard constructor
Definition: SaveFilterAlg.cxx:13
CP::SaveFilterAlg::m_systematicsList
CP::SysListHandle m_systematicsList
the systematics
Definition: SaveFilterAlg.h:39
CP::SaveFilterAlg::m_outputselection
CP::SysWriteSelectionHandle m_outputselection
the output selection decoration
Definition: SaveFilterAlg.h:60
CP::SaveFilterAlg::m_filterParams
CP::SysFilterReporterParams m_filterParams
the save filter
Definition: SaveFilterAlg.h:52
CP::SysReadHandle
a data handle for reading systematics varied input data
Definition: SysReadHandle.h:32
CP
Select isolated Photons, Electrons and Muons.
Definition: Control/xAODRootAccess/xAODRootAccess/TEvent.h:48
CP::SaveFilterAlg::execute
virtual StatusCode execute() override
Definition: SaveFilterAlg.cxx:31
CP::SaveFilterAlg::m_eventInfoHandle
CP::SysReadHandle< xAOD::EventInfo > m_eventInfoHandle
the event info handle
Definition: SaveFilterAlg.h:47
SysReadHandle.h
CP::SaveFilterAlg::finalize
virtual StatusCode finalize() override
Definition: SaveFilterAlg.cxx:59
AnaAlgorithm.h
EL::AnaAlgorithm
the (new) base class for EventLoop algorithms
Definition: AnaAlgorithm.h:73
CP::SaveFilterAlg
an algorithm to turn event selections into filters for cutflow saving
Definition: SaveFilterAlg.h:27
CP::SaveFilterAlg::initialize
virtual StatusCode initialize() override
Definition: SaveFilterAlg.cxx:17
EL::StatusCode
::StatusCode StatusCode
StatusCode definition for legacy code.
Definition: PhysicsAnalysis/D3PDTools/EventLoop/EventLoop/StatusCode.h:22
CP::SaveFilterAlg::m_inputselection
CP::SysReadSelectionHandle m_inputselection
the input selections
Definition: SaveFilterAlg.h:42
SysFilterReporterParams.h
name
std::string name
Definition: Control/AthContainers/Root/debug.cxx:195
SysReadSelectionHandle.h
EventInfo.h
SysReadDecorHandle.h
CP::SysReadSelectionHandle
a data handle for reading systematically varied selection properties from objects
Definition: SysReadSelectionHandle.h:32
CP::SysFilterReporterParams
the properties and persistent data for systematics aware filter reporters
Definition: SysFilterReporterParams.h:38
CP::SysWriteDecorHandle< char >
CP::SaveFilterAlg::m_noFilter
Gaudi::Property< bool > m_noFilter
whether to not apply an event filter
Definition: SaveFilterAlg.h:57
CP::SysWriteSelectionHandle
a data handle for writing systematically varied selection properties from objects
Definition: SysWriteSelectionHandle.h:32