ATLAS Offline Software
Loading...
Searching...
No Matches
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{
16public:
17 HitsTruthRelinkBase(const std::string &name, ISvcLocator *pSvcLocator);
18
19 virtual StatusCode initialize() override;
20
21protected:
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
An algorithm that can be simultaneously executed in multiple threads.
virtual StatusCode initialize() override
StatusCode getReferenceBarcode(const EventContext &ctx, int *barcode) const
SG::ReadHandleKey< McEventCollection > m_inputTruthCollectionKey
virtual HepMcParticleLink updatedLink(const EventContext &ctx, const HepMcParticleLink &oldLink, int referenceId, int pdgID=0) const
StatusCode getReferenceId(const EventContext &ctx, int *id) const
HitsTruthRelinkBase(const std::string &name, ISvcLocator *pSvcLocator)
Property holding a SG store/key/clid from which a ReadHandle is made.