ATLAS Offline Software
Toggle main menu visibility
Loading...
Searching...
No Matches
PhysicsAnalysis
Algorithms
AsgAnalysisAlgorithms
AsgAnalysisAlgorithms
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
11
#include <
xAODEventInfo/EventInfo.h
>
12
#include <
AnaAlgorithm/AnaReentrantAlgorithm.h
>
13
#include <
AsgDataHandles/ReadHandleKey.h
>
14
#include <
AsgTools/PropertyWrapper.h
>
15
#include <map>
16
#include <functional>
17
#include <cstdint>
//for uint32_t
18
19
namespace
CP
20
{
22
23
class
EventDecoratorAlg
final :
public
EL::AnaReentrantAlgorithm
24
{
25
public
:
26
28
using
EL::AnaReentrantAlgorithm::AnaReentrantAlgorithm
;
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
AnaReentrantAlgorithm.h
ReadHandleKey.h
Property holding a SG store/key/clid from which a ReadHandle is made.
PropertyWrapper.h
CP::EventDecoratorAlg
an algorithm for decorating EventInfo with constant values
Definition
EventDecoratorAlg.h:24
CP::EventDecoratorAlg::initialize
StatusCode initialize() override
Definition
EventDecoratorAlg.cxx:25
CP::EventDecoratorAlg::m_eventInfoKey
SG::ReadHandleKey< xAOD::EventInfo > m_eventInfoKey
the name of the event info object
Definition
EventDecoratorAlg.h:37
CP::EventDecoratorAlg::m_decFunctions
std::vector< std::function< void(const xAOD::EventInfo &)> > m_decFunctions
the functions to add decorations
Definition
EventDecoratorAlg.h:43
CP::EventDecoratorAlg::execute
StatusCode execute(const EventContext &ctx) const override
Definition
EventDecoratorAlg.cxx:55
CP::EventDecoratorAlg::m_uint32Decorations
Gaudi::Property< std::map< std::string, uint32_t > > m_uint32Decorations
the uint32_t decorations to add
Definition
EventDecoratorAlg.h:40
EL::AnaReentrantAlgorithm
the base class for EventLoop reentrant algorithms
Definition
AnaReentrantAlgorithm.h:51
EL::AnaReentrantAlgorithm::AnaReentrantAlgorithm
AnaReentrantAlgorithm(const std::string &name, ISvcLocator *pSvcLocator)
constructor with parameters
Definition
AnaReentrantAlgorithm.cxx:29
SG::ReadHandleKey
Property holding a SG store/key/clid from which a ReadHandle is made.
Definition
StoreGate/StoreGate/ReadHandleKey.h:40
CP
Select isolated Photons, Electrons and Muons.
Definition
Control/xAODRootAccess/xAODRootAccess/TEvent.h:27
xAOD::EventInfo
EventInfo_v1 EventInfo
Definition of the latest event info version.
Definition
IEventInfoCnvTool.h:16
EventInfo.h
Generated on
for ATLAS Offline Software by
1.17.0