ATLAS Offline Software
PileUpTruthDecoration.h
Go to the documentation of this file.
1 /*
2  Copyright (C) 2002-2021 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 {
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", "", "Output decoration name"};
28 };
29 
30 #endif
SG::WriteDecorHandleKey
Property holding a SG store/key/clid/attr name from which a WriteDecorHandle is made.
Definition: StoreGate/StoreGate/WriteDecorHandleKey.h:89
SG::ReadHandle< McEventCollection >
PileUpTruthDecoration::initialize
virtual StatusCode initialize() override
Definition: PileUpTruthDecoration.cxx:17
SG::ReadHandleKey< McEventCollection >
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
AthReentrantAlgorithm
An algorithm that can be simultaneously executed in multiple threads.
Definition: AthReentrantAlgorithm.h:83
WriteDecorHandleKey.h
Property holding a SG store/key/clid/attr name from which a WriteDecorHandle is made.
McEventCollection.h
PileUpTruthDecoration::m_decKey
SG::WriteDecorHandleKey< xAOD::IParticleContainer > m_decKey
Definition: PileUpTruthDecoration.h:27
EL::StatusCode
::StatusCode StatusCode
StatusCode definition for legacy code.
Definition: PhysicsAnalysis/D3PDTools/EventLoop/EventLoop/StatusCode.h:22
IParticleContainer.h
PileUpTruthDecoration::execute
virtual StatusCode execute(const EventContext &ctx) const override
Definition: PileUpTruthDecoration.cxx:30
AthReentrantAlgorithm.h
PileUpTruthDecoration
Definition: PileUpTruthDecoration.h:15
PileUpTruthDecoration::m_particleKey
SG::ReadHandleKey< xAOD::IParticleContainer > m_particleKey
Definition: PileUpTruthDecoration.h:26
name
std::string name
Definition: Control/AthContainers/Root/debug.cxx:228
PileUpTruthDecoration::PileUpTruthDecoration
PileUpTruthDecoration(const std::string &name, ISvcLocator *pSvcLocator)
Definition: PileUpTruthDecoration.cxx:11