ATLAS Offline Software
Loading...
Searching...
No Matches
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
15#include <map>
16#include <functional>
17
18namespace CP
19{
21
23 {
24 public:
25
28 StatusCode initialize () override;
29 StatusCode execute (const EventContext& ctx) const override;
30
31
32
33 private:
34
36 SG::ReadHandleKey<xAOD::EventInfo> m_eventInfoKey {this, "eventInfo", "EventInfo", "the input EventInfo object"};
37
39 Gaudi::Property<std::map<std::string, uint32_t>> m_uint32Decorations {this, "uint32Decorations", {}, "the uint32_t decorations to add"};
40
42 std::vector<std::function<void(const xAOD::EventInfo&)>> m_decFunctions {};
43 };
44}
45
46#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.