ATLAS Offline Software
Loading...
Searching...
No Matches
Simulation
Tools
McEventCollectionFilter
src
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
9
#include <
AthenaBaseComps/AthReentrantAlgorithm.h
>
10
#include <
GeneratorObjects/McEventCollection.h
>
11
#include <
GeneratorObjects/HepMcParticleLink.h
>
12
13
14
class
HitsTruthRelinkBase
:
public
AthReentrantAlgorithm
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
AthReentrantAlgorithm.h
HepMcParticleLink.h
McEventCollection.h
AthReentrantAlgorithm
An algorithm that can be simultaneously executed in multiple threads.
Definition
AthReentrantAlgorithm.h:74
HepMcParticleLink
a link optimized in size for a GenParticle in a McEventCollection
Definition
HepMcParticleLink.h:72
HitsTruthRelinkBase::initialize
virtual StatusCode initialize() override
Definition
HitsTruthRelinkBase.cxx:14
HitsTruthRelinkBase::getReferenceBarcode
StatusCode getReferenceBarcode(const EventContext &ctx, int *barcode) const
Definition
HitsTruthRelinkBase.cxx:23
HitsTruthRelinkBase::m_inputTruthCollectionKey
SG::ReadHandleKey< McEventCollection > m_inputTruthCollectionKey
Definition
HitsTruthRelinkBase.h:26
HitsTruthRelinkBase::updatedLink
virtual HepMcParticleLink updatedLink(const EventContext &ctx, const HepMcParticleLink &oldLink, int referenceId, int pdgID=0) const
Definition
HitsTruthRelinkBase.cxx:107
HitsTruthRelinkBase::getReferenceId
StatusCode getReferenceId(const EventContext &ctx, int *id) const
Definition
HitsTruthRelinkBase.cxx:64
HitsTruthRelinkBase::HitsTruthRelinkBase
HitsTruthRelinkBase(const std::string &name, ISvcLocator *pSvcLocator)
Definition
HitsTruthRelinkBase.cxx:8
SG::ReadHandleKey
Property holding a SG store/key/clid from which a ReadHandle is made.
Definition
StoreGate/StoreGate/ReadHandleKey.h:40
Generated on
for ATLAS Offline Software by
1.14.0