ATLAS Offline Software
AsgPriorityDecorationAlg.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__ASG_PRIORITY_DECORATION_ALG_H
8 #define ASG_ANALYSIS_ALGORITHMS__ASG_PRIORITY_DECORATION_ALG_H
9 
16 
17 
18 namespace CP
19 {
20 
23 {
25 public:
27  virtual StatusCode initialize() override;
28  virtual StatusCode execute() override;
29 
30 
32 private:
34 
36 private:
38  this, "preselections", {}, "the preselections to apply with the highest priority first"};
39 
41 private:
43  this, "particles", "", "the container to use"};
44 
46 private:
47  Gaudi::Property<std::vector<int>> m_priorities {this, "priorities", {}, "priorities to use with the highest one first"};
48 
50 private:
51  Gaudi::Property<std::string> m_priorityDecoration {this, "priorityDecoration", "", "the decoration for the priority"};
52 
54 private:
55  std::unique_ptr<const SG::AuxElement::Decorator<char> > m_priorityDecorator {};
56 };
57 
58 } // namespace CP
59 
60 #endif
CP::AsgPriorityDecorationAlg::m_preselections
SysReadSelectionHandleArray m_preselections
the preselection we apply to our input
Definition: AsgPriorityDecorationAlg.h:37
PropertyWrapper.h
CP::AsgPriorityDecorationAlg::initialize
virtual StatusCode initialize() override
Definition: AsgPriorityDecorationAlg.cxx:14
CP::SysListHandle
a class managing the property to configure the list of systematics to process
Definition: SysListHandle.h:33
CP::AsgPriorityDecorationAlg::m_priorities
Gaudi::Property< std::vector< int > > m_priorities
the values of the priorities
Definition: AsgPriorityDecorationAlg.h:47
SysListHandle.h
CP::AsgPriorityDecorationAlg::m_particlesHandle
SysReadHandle< xAOD::IParticleContainer > m_particlesHandle
particles container handle
Definition: AsgPriorityDecorationAlg.h:42
CP::AsgPriorityDecorationAlg::execute
virtual StatusCode execute() override
Definition: AsgPriorityDecorationAlg.cxx:45
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
EL::AnaAlgorithm::AnaAlgorithm
AnaAlgorithm(const std::string &name, ISvcLocator *pSvcLocator)
constructor with parameters
Definition: AnaAlgorithm.cxx:40
SysReadHandle.h
CP::AsgPriorityDecorationAlg
an algorithm for decorating priorities
Definition: AsgPriorityDecorationAlg.h:23
AnaAlgorithm.h
EL::AnaAlgorithm
the (new) base class for EventLoop algorithms
Definition: AnaAlgorithm.h:73
CP::AsgPriorityDecorationAlg::m_systematicsList
SysListHandle m_systematicsList
the systematics list we run
Definition: AsgPriorityDecorationAlg.h:33
EL::StatusCode
::StatusCode StatusCode
StatusCode definition for legacy code.
Definition: PhysicsAnalysis/D3PDTools/EventLoop/EventLoop/StatusCode.h:22
CP::AsgPriorityDecorationAlg::m_priorityDecorator
std::unique_ptr< const SG::AuxElement::Decorator< char > > m_priorityDecorator
the accessor for m_priorityDecoration
Definition: AsgPriorityDecorationAlg.h:55
IParticleContainer.h
SysReadSelectionHandle.h
CP::SysHandleArray< SysReadSelectionHandle >
CP::AsgPriorityDecorationAlg::m_priorityDecoration
Gaudi::Property< std::string > m_priorityDecoration
the decoration for the priority
Definition: AsgPriorityDecorationAlg.h:51