ATLAS Offline Software
Simulation
Tools
McEventCollectionFilter
src
TRT_HitsTruthRelink.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_TRTHITSTRUTHRELINK_H
6
#define MCEVENTCOLLECTIONFILTER_TRTHITSTRUTHRELINK_H
7
8
// Base class include
9
#include "
HitsTruthRelinkBase.h
"
10
11
#include <
InDetSimEvent/TRTUncompressedHitCollection.h
>
12
13
14
class
TRT_HitsTruthRelink
final :
public
HitsTruthRelinkBase
15
{
16
public
:
17
TRT_HitsTruthRelink
(
const
std::string &
name
, ISvcLocator *pSvcLocator);
18
19
virtual
StatusCode
initialize
()
override
;
20
virtual
StatusCode
execute
(
const
EventContext &ctx)
const override
;
21
private
:
22
virtual
HepMcParticleLink
updatedLink
(
const
EventContext &ctx,
const
HepMcParticleLink
& oldLink,
int
referenceId,
int
pdgID=0)
const
override
final
;
23
SG::ReadHandleKey<TRTUncompressedHitCollection>
m_inputHitsKey
{
this
,
"InputHits"
,
"TRTUncompressedHitsOLD"
,
"Input TRT hits name"
};
24
SG::WriteHandleKey<TRTUncompressedHitCollection>
m_outputHitsKey
{
this
,
"OutputHits"
,
"TRTUncompressedHits"
,
"Output TRT hits name"
};
25
26
Gaudi::Property<bool>
m_keepElectronsLinkedToTRTHits
{
this
,
"KeepElectronsLinkedToTRTHits"
,
false
,
"Keep electrons linked to TRT hits"
};
27
};
28
29
#endif // MCEVENTCOLLECTIONFILTER_TRTHITSTRUTHRELINK_H
TRT_HitsTruthRelink::updatedLink
virtual HepMcParticleLink updatedLink(const EventContext &ctx, const HepMcParticleLink &oldLink, int referenceId, int pdgID=0) const override final
Definition:
TRT_HitsTruthRelink.cxx:72
TRT_HitsTruthRelink::m_outputHitsKey
SG::WriteHandleKey< TRTUncompressedHitCollection > m_outputHitsKey
Definition:
TRT_HitsTruthRelink.h:24
TRT_HitsTruthRelink::m_keepElectronsLinkedToTRTHits
Gaudi::Property< bool > m_keepElectronsLinkedToTRTHits
Definition:
TRT_HitsTruthRelink.h:26
SG::ReadHandleKey
Property holding a SG store/key/clid from which a ReadHandle is made.
Definition:
StoreGate/StoreGate/ReadHandleKey.h:39
TRT_HitsTruthRelink::m_inputHitsKey
SG::ReadHandleKey< TRTUncompressedHitCollection > m_inputHitsKey
Definition:
TRT_HitsTruthRelink.h:23
TRT_HitsTruthRelink::execute
virtual StatusCode execute(const EventContext &ctx) const override
Definition:
TRT_HitsTruthRelink.cxx:28
TRT_HitsTruthRelink::TRT_HitsTruthRelink
TRT_HitsTruthRelink(const std::string &name, ISvcLocator *pSvcLocator)
Definition:
TRT_HitsTruthRelink.cxx:9
HepMcParticleLink
a link optimized in size for a GenParticle in a McEventCollection
Definition:
HepMcParticleLink.h:72
HitsTruthRelinkBase.h
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
TRT_HitsTruthRelink
Definition:
TRT_HitsTruthRelink.h:15
name
std::string name
Definition:
Control/AthContainers/Root/debug.cxx:221
TRTUncompressedHitCollection.h
HitsTruthRelinkBase
Definition:
HitsTruthRelinkBase.h:15
TRT_HitsTruthRelink::initialize
virtual StatusCode initialize() override
Definition:
TRT_HitsTruthRelink.cxx:15
Generated on Thu Nov 7 2024 21:30:36 for ATLAS Offline Software by
1.8.18