ATLAS Offline Software
HitsTruthRelinkBase.h
Go to the documentation of this file.
1 /*
2  Copyright (C) 2002-2024 CERN for the benefit of the ATLAS collaboration
3 */
4 
5 #ifndef MCEVENTCOLLECTIONFILTER_HITSTRUTHRELINKBASE_H
6 #define MCEVENTCOLLECTIONFILTER_HITSTRUTHRELINKBASE_H
7 
8 // Base class include
12 
13 
15 {
16 public:
17  HitsTruthRelinkBase(const std::string &name, ISvcLocator *pSvcLocator);
18 
19  virtual StatusCode initialize() override;
20 
21 protected:
22  StatusCode getReferenceBarcode(const EventContext &ctx, int *barcode) const;
23  StatusCode getReferenceId(const EventContext &ctx, int *id) const;
24  virtual HepMcParticleLink updatedLink(const EventContext &ctx, const HepMcParticleLink& oldLink, int referenceId, int pdgID=0) const;
25 
26  SG::ReadHandleKey<McEventCollection> m_inputTruthCollectionKey {this, "InputTruthCollection", "TruthEvent", "Input truth collection name"};
27 };
28 
29 #endif // MCEVENTCOLLECTIONFILTER_HITSTRUTHRELINKBASE_H
HitsTruthRelinkBase::getReferenceId
StatusCode getReferenceId(const EventContext &ctx, int *id) const
Definition: HitsTruthRelinkBase.cxx:64
SG::ReadHandleKey< McEventCollection >
HitsTruthRelinkBase::getReferenceBarcode
StatusCode getReferenceBarcode(const EventContext &ctx, int *barcode) const
Definition: HitsTruthRelinkBase.cxx:23
HitsTruthRelinkBase::initialize
virtual StatusCode initialize() override
Definition: HitsTruthRelinkBase.cxx:14
AthReentrantAlgorithm
An algorithm that can be simultaneously executed in multiple threads.
Definition: AthReentrantAlgorithm.h:83
HitsTruthRelinkBase::m_inputTruthCollectionKey
SG::ReadHandleKey< McEventCollection > m_inputTruthCollectionKey
Definition: HitsTruthRelinkBase.h:26
McEventCollection.h
EL::StatusCode
::StatusCode StatusCode
StatusCode definition for legacy code.
Definition: PhysicsAnalysis/D3PDTools/EventLoop/EventLoop/StatusCode.h:22
HepMC::barcode
int barcode(const T *p)
Definition: Barcode.h:16
HitsTruthRelinkBase::updatedLink
virtual HepMcParticleLink updatedLink(const EventContext &ctx, const HepMcParticleLink &oldLink, int referenceId, int pdgID=0) const
Definition: HitsTruthRelinkBase.cxx:107
AthReentrantAlgorithm.h
name
std::string name
Definition: Control/AthContainers/Root/debug.cxx:228
HitsTruthRelinkBase
Definition: HitsTruthRelinkBase.h:15
HitsTruthRelinkBase::HitsTruthRelinkBase
HitsTruthRelinkBase(const std::string &name, ISvcLocator *pSvcLocator)
Definition: HitsTruthRelinkBase.cxx:8