ATLAS Offline Software
Loading...
Searching...
No Matches
EventDecoratorAlg.h
Go to the documentation of this file.
1/*
2 Copyright (C) 2002-2026 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
15#include <map>
16#include <functional>
17#include <cstdint> //for uint32_t
18
19namespace CP
20{
22
24 {
25 public:
26
29 StatusCode initialize () override;
30 StatusCode execute (const EventContext& ctx) const override;
31
32
33
34 private:
35
37 SG::ReadHandleKey<xAOD::EventInfo> m_eventInfoKey {this, "eventInfo", "EventInfo", "the input EventInfo object"};
38
40 Gaudi::Property<std::map<std::string, uint32_t>> m_uint32Decorations {this, "uint32Decorations", {}, "the uint32_t decorations to add"};
41
43 std::vector<std::function<void(const xAOD::EventInfo&)>> m_decFunctions {};
44 };
45}
46
47#endif
Property holding a SG store/key/clid from which a ReadHandle is made.
an algorithm for decorating EventInfo with constant values
StatusCode initialize() override
SG::ReadHandleKey< xAOD::EventInfo > m_eventInfoKey
the name of the event info object
std::vector< std::function< void(const xAOD::EventInfo &)> > m_decFunctions
the functions to add decorations
StatusCode execute(const EventContext &ctx) const override
Gaudi::Property< std::map< std::string, uint32_t > > m_uint32Decorations
the uint32_t decorations to add
the base class for EventLoop reentrant algorithms
AnaReentrantAlgorithm(const std::string &name, ISvcLocator *pSvcLocator)
constructor with parameters
Property holding a SG store/key/clid from which a ReadHandle is made.
Select isolated Photons, Electrons and Muons.
EventInfo_v1 EventInfo
Definition of the latest event info version.