ATLAS Offline Software
Loading...
Searching...
No Matches
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
13
15{
16public:
17 PileUpTruthDecoration(const std::string &name, ISvcLocator *pSvcLocator);
18
19 virtual StatusCode initialize() override;
20 virtual StatusCode execute(const EventContext &ctx) const override;
21
22private:
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
Property holding a SG store/key/clid/attr name from which a WriteDecorHandle is made.
An algorithm that can be simultaneously executed in multiple threads.
virtual StatusCode initialize() override
virtual StatusCode execute(const EventContext &ctx) const override
SG::ReadHandleKey< xAOD::IParticleContainer > m_particleKey
SG::WriteDecorHandleKey< xAOD::IParticleContainer > m_decKey
virtual float getPVtxZ(SG::ReadHandle< McEventCollection > &inputCollection) const
SG::ReadHandleKey< McEventCollection > m_inputTruthCollectionKey
PileUpTruthDecoration(const std::string &name, ISvcLocator *pSvcLocator)
Property holding a SG store/key/clid from which a ReadHandle is made.
Property holding a SG store/key/clid/attr name from which a WriteDecorHandle is made.