ATLAS Offline Software
TruthPVCollectionMaker.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 DERIVATIONFRAMEWORK_TRUTHPVCOLLECTIONMAKER_H
6 #define DERIVATIONFRAMEWORK_TRUTHPVCOLLECTIONMAKER_H
7 
8 // Base classes
15 
16 namespace DerivationFramework {
17 
18  class TruthPVCollectionMaker : public extends<AthAlgTool, IAugmentationTool> {
19  public:
20 
21  using base_class::base_class;
22 
23  virtual StatusCode initialize() override final;
24  virtual StatusCode addBranches(const EventContext& ctx) const override final;
25 
26  private:
27  SG::ReadHandleKey<xAOD::TruthEventContainer> m_eventsKey{this, "EventsKey", "TruthEvents"};
29  };
30 }
31 
32 #endif // DERIVATIONFRAMEWORK_TRUTHPVCOLLECTIONMAKER_H
ReadHandleKey.h
Property holding a SG store/key/clid from which a ReadHandle is made.
IAugmentationTool.h
TruthVertexContainer.h
DerivationFramework::TruthPVCollectionMaker::addBranches
virtual StatusCode addBranches(const EventContext &ctx) const override final
Definition: TruthPVCollectionMaker.cxx:34
SG::ReadHandleKey
Property holding a SG store/key/clid from which a ReadHandle is made.
Definition: StoreGate/StoreGate/ReadHandleKey.h:39
SG::WriteHandleKey
Property holding a SG store/key/clid from which a WriteHandle is made.
Definition: StoreGate/StoreGate/WriteHandleKey.h:40
EL::StatusCode
::StatusCode StatusCode
StatusCode definition for legacy code.
Definition: PhysicsAnalysis/D3PDTools/EventLoop/EventLoop/StatusCode.h:22
AthAlgTool.h
DerivationFramework::TruthPVCollectionMaker::initialize
virtual StatusCode initialize() override final
Definition: TruthPVCollectionMaker.cxx:19
DerivationFramework
THE reconstruction tool.
Definition: ParticleSortingAlg.h:24
WriteHandleKey.h
Property holding a SG store/key/clid from which a WriteHandle is made.
DerivationFramework::TruthPVCollectionMaker::m_outVtxKey
SG::WriteHandleKey< xAOD::TruthVertexContainer > m_outVtxKey
Output collection name.
Definition: TruthPVCollectionMaker.h:28
TruthEventContainer.h
DerivationFramework::TruthPVCollectionMaker
Definition: TruthPVCollectionMaker.h:18
DerivationFramework::TruthPVCollectionMaker::m_eventsKey
SG::ReadHandleKey< xAOD::TruthEventContainer > m_eventsKey
Input event collection (navigates to the vertices)
Definition: TruthPVCollectionMaker.h:27