ATLAS Offline Software
Toggle main menu visibility
Loading...
Searching...
No Matches
Simulation
Tools
McEventCollectionFilter
src
PileUpTruthDecoration.h
Go to the documentation of this file.
1
/*
2
Copyright (C) 2002-2025 CERN for the benefit of the ATLAS collaboration
3
*/
4
5
#ifndef PILEUPTRUTHDECORATION_H
6
#define PILEUPTRUTHDECORATION_H
7
8
// Base class include
9
#include <
AthenaBaseComps/AthReentrantAlgorithm.h
>
10
#include <
GeneratorObjects/McEventCollection.h
>
11
#include <
xAODBase/IParticleContainer.h
>
12
#include <
StoreGate/WriteDecorHandleKey.h
>
13
14
class
PileUpTruthDecoration
:
public
AthReentrantAlgorithm
15
{
16
public
:
17
PileUpTruthDecoration
(
const
std::string &name, ISvcLocator *pSvcLocator);
18
19
virtual
StatusCode
initialize
()
override
;
20
virtual
StatusCode
execute
(
const
EventContext &ctx)
const override
;
21
22
private
:
23
virtual
float
getPVtxZ
(
SG::ReadHandle<McEventCollection>
& inputCollection)
const
;
24
25
SG::ReadHandleKey<McEventCollection>
m_inputTruthCollectionKey
{
this
,
"InputTruthCollection"
,
"TruthEventOLD"
,
"Input truth collection name"
};
26
SG::ReadHandleKey<xAOD::IParticleContainer>
m_particleKey
{
this
,
"InputParticleContainer"
,
""
,
"Input particle collection name"
};
27
SG::WriteDecorHandleKey<xAOD::IParticleContainer>
m_decKey
{
this
,
"OutputDecoration"
,
m_particleKey
,
""
,
"Output decoration name"
};
28
};
29
30
#endif
AthReentrantAlgorithm.h
McEventCollection.h
WriteDecorHandleKey.h
Property holding a SG store/key/clid/attr name from which a WriteDecorHandle is made.
AthReentrantAlgorithm
An algorithm that can be simultaneously executed in multiple threads.
Definition
AthReentrantAlgorithm.h:74
PileUpTruthDecoration::initialize
virtual StatusCode initialize() override
Definition
PileUpTruthDecoration.cxx:17
PileUpTruthDecoration::execute
virtual StatusCode execute(const EventContext &ctx) const override
Definition
PileUpTruthDecoration.cxx:30
PileUpTruthDecoration::m_particleKey
SG::ReadHandleKey< xAOD::IParticleContainer > m_particleKey
Definition
PileUpTruthDecoration.h:26
PileUpTruthDecoration::m_decKey
SG::WriteDecorHandleKey< xAOD::IParticleContainer > m_decKey
Definition
PileUpTruthDecoration.h:27
PileUpTruthDecoration::getPVtxZ
virtual float getPVtxZ(SG::ReadHandle< McEventCollection > &inputCollection) const
Definition
PileUpTruthDecoration.cxx:53
PileUpTruthDecoration::m_inputTruthCollectionKey
SG::ReadHandleKey< McEventCollection > m_inputTruthCollectionKey
Definition
PileUpTruthDecoration.h:25
PileUpTruthDecoration::PileUpTruthDecoration
PileUpTruthDecoration(const std::string &name, ISvcLocator *pSvcLocator)
Definition
PileUpTruthDecoration.cxx:11
SG::ReadHandleKey
Property holding a SG store/key/clid from which a ReadHandle is made.
Definition
StoreGate/StoreGate/ReadHandleKey.h:40
SG::ReadHandle
Definition
StoreGate/StoreGate/ReadHandle.h:67
SG::WriteDecorHandleKey
Property holding a SG store/key/clid/attr name from which a WriteDecorHandle is made.
Definition
StoreGate/StoreGate/WriteDecorHandleKey.h:90
IParticleContainer.h
Generated on
for ATLAS Offline Software by
1.17.0