ATLAS Offline Software
AsgUnionPreselectionAlg.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__UNION_PRE_SELECTION_ALG_H
8 #define ASG_ANALYSIS_ALGORITHMS__UNION_PRE_SELECTION_ALG_H
9 
18 #include <optional>
19 
20 
21 namespace CP
22 {
40 
42  {
44  public:
46  virtual StatusCode initialize () override;
47  virtual StatusCode execute () override;
48 
49 
50 
52  private:
54 
56  private:
58  this, "particles", "", "the asg collection to run on"};
59 
61  private:
63  this, "preselection", "", "the preselection to apply"};
64 
66  private:
67  Gaudi::Property<std::string> m_selectionDecoration {this, "selectionDecoration", "", "the decoration for the union selection"};
68 
70  private:
71  std::optional<SG::AuxElement::Decorator<char>> m_decorator;
72  };
73 
74 } // namespace CP
75 
76 #endif
PropertyWrapper.h
CP::SysListHandle
a class managing the property to configure the list of systematics to process
Definition: SysListHandle.h:33
SysListHandle.h
CP::SysReadHandle
a data handle for reading systematics varied input data
Definition: SysReadHandle.h:32
CP::AsgUnionPreselectionAlg
an algorithm for turning a systematics depending selection decoration into a selection decoration wit...
Definition: AsgUnionPreselectionAlg.h:42
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
SysReadHandle.h
AnaAlgorithm.h
CP::AsgUnionPreselectionAlg::m_selectionDecoration
Gaudi::Property< std::string > m_selectionDecoration
the decoration of the selection
Definition: AsgUnionPreselectionAlg.h:67
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
IParticleContainer.h
CP::AsgUnionPreselectionAlg::m_particlesHandle
SysReadHandle< xAOD::IParticleContainer > m_particlesHandle
the particle continer we run on
Definition: AsgUnionPreselectionAlg.h:57
CP::AsgUnionPreselectionAlg::initialize
virtual StatusCode initialize() override
Definition: AsgUnionPreselectionAlg.cxx:23
SysReadSelectionHandle.h
CP::SysReadSelectionHandle
a data handle for reading systematically varied selection properties from objects
Definition: SysReadSelectionHandle.h:32
CP::AsgUnionPreselectionAlg::m_decorator
std::optional< SG::AuxElement::Decorator< char > > m_decorator
the accessor for m_selectionDecoration
Definition: AsgUnionPreselectionAlg.h:71
CP::AsgUnionPreselectionAlg::m_preselection
SysReadSelectionHandle m_preselection
the preselection we apply to our input
Definition: AsgUnionPreselectionAlg.h:62
ISelectionWriteAccessor.h
CP::AsgUnionPreselectionAlg::execute
virtual StatusCode execute() override
Definition: AsgUnionPreselectionAlg.cxx:48
CP::AsgUnionPreselectionAlg::m_systematicsList
SysListHandle m_systematicsList
the systematics list we run and have containers
Definition: AsgUnionPreselectionAlg.h:53
AuxElement.h
Base class for elements of a container that can have aux data.