ATLAS Offline Software
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 
12 
13 
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
SG::ReadHandleKey
Property holding a SG store/key/clid from which a ReadHandle is made.
Definition: StoreGate/StoreGate/ReadHandleKey.h:39
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
name
std::string name
Definition: Control/AthContainers/Root/debug.cxx:221
TRTUncompressedHitCollection.h
HitsTruthRelinkBase
Definition: HitsTruthRelinkBase.h:15