ATLAS Offline Software
Loading...
Searching...
No Matches
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
10
12
13
15{
16public:
17 TRT_HitsTruthRelink(const std::string &name, ISvcLocator *pSvcLocator);
18
19 virtual StatusCode initialize() override;
20 virtual StatusCode execute(const EventContext &ctx) const override;
21private:
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
HitsTruthRelinkBase(const std::string &name, ISvcLocator *pSvcLocator)
Property holding a SG store/key/clid from which a ReadHandle is made.
Property holding a SG store/key/clid from which a WriteHandle is made.