ATLAS Offline Software
Loading...
Searching...
No Matches
McEventCollectionFilter.h
Go to the documentation of this file.
1/*
2 Copyright (C) 2002-2022 CERN for the benefit of the ATLAS collaboration
3*/
4
5#ifndef MCEVENTCOLLECTIONFILTER_H
6#define MCEVENTCOLLECTIONFILTER_H
7
8// Base class include
12
14{
15public:
16 McEventCollectionFilter(const std::string &name, ISvcLocator *pSvcLocator);
17
18 virtual StatusCode initialize() override;
19 virtual StatusCode execute(const EventContext &ctx) const override;
20
21private:
22
23 SG::ReadHandleKey<McEventCollection> m_inputTruthCollectionKey {this, "InputTruthCollection", "TruthEventOLD", "Input truth collection name"};
24 SG::WriteHandleKey<McEventCollection> m_outputTruthCollectionKey {this, "OutputTruthCollection", "TruthEvent", "Output truth collection name"};
25
26 Gaudi::Property<bool> m_keepElectronsLinkedToTRTHits {this, "KeepElectronsLinkedToTRTHits", false, "Keep electrons linked to TRT hits"};
27 SG::ReadHandleKey<TRTUncompressedHitCollection> m_inputTRTHitsKey {this, "InputTRTHits", "TRTUncompressedHitsOLD", "Input TRT hits name"};
28
29 Gaudi::Property<int> m_pileUpParticlePDGID {this, "PileUpParticlePDGID", 999, "Pile-up particle PDG ID (defaults to geantino)"};
30};
31
32#endif
An algorithm that can be simultaneously executed in multiple threads.
McEventCollectionFilter(const std::string &name, ISvcLocator *pSvcLocator)
Gaudi::Property< bool > m_keepElectronsLinkedToTRTHits
SG::ReadHandleKey< McEventCollection > m_inputTruthCollectionKey
virtual StatusCode initialize() override
SG::WriteHandleKey< McEventCollection > m_outputTruthCollectionKey
Gaudi::Property< int > m_pileUpParticlePDGID
virtual StatusCode execute(const EventContext &ctx) const override
SG::ReadHandleKey< TRTUncompressedHitCollection > m_inputTRTHitsKey
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.