ATLAS Offline Software
EventDecoratorAlg.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 
8 #ifndef ASG_ANALYSIS_ALGORITHMS__EVENT_DECORATOR_ALG_H
9 #define ASG_ANALYSIS_ALGORITHMS__EVENT_DECORATOR_ALG_H
10 
16 #include <map>
17 #include <functional>
18 
19 namespace CP
20 {
22 
23  class EventDecoratorAlg final : public EL::AnaAlgorithm
24  {
25  public:
26 
29  StatusCode initialize () override;
30  StatusCode execute () override;
31 
32 
33 
34  private:
35 
38 
40  CP::SysReadHandle<xAOD::EventInfo> m_eventInfoHandle {this, "eventInfo", "EventInfo", "the input EventInfo object"};
41 
43  Gaudi::Property<std::map<std::string, uint32_t>> m_uint32Decorations {this, "uint32Decorations", {}, "the uint32_t decorations to add"};
44 
46  std::vector<std::function<void(const xAOD::EventInfo&)>> m_decFunctions {};
47  };
48 }
49 
50 #endif
PropertyWrapper.h
CP::SysListHandle
a class managing the property to configure the list of systematics to process
Definition: SysListHandle.h:33
CP::EventDecoratorAlg
an algorithm for decorating EventInfo
Definition: EventDecoratorAlg.h:24
SysListHandle.h
CP::EventDecoratorAlg::initialize
StatusCode initialize() override
Definition: EventDecoratorAlg.cxx:29
CP::EventDecoratorAlg::m_eventInfoHandle
CP::SysReadHandle< xAOD::EventInfo > m_eventInfoHandle
the name of the event info object
Definition: EventDecoratorAlg.h:40
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
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::EventDecoratorAlg::m_systematicsList
SysListHandle m_systematicsList
the systematics list we run
Definition: EventDecoratorAlg.h:37
CP::EventDecoratorAlg::m_uint32Decorations
Gaudi::Property< std::map< std::string, uint32_t > > m_uint32Decorations
the uint32_t decorations to add
Definition: EventDecoratorAlg.h:43
CP::EventDecoratorAlg::m_decFunctions
std::vector< std::function< void(const xAOD::EventInfo &)> > m_decFunctions
the functions to add decorations
Definition: EventDecoratorAlg.h:46
EventInfo.h
xAOD::EventInfo_v1
Class describing the basic event information.
Definition: EventInfo_v1.h:43
CP::EventDecoratorAlg::execute
StatusCode execute() override
Definition: EventDecoratorAlg.cxx:45