ATLAS Offline Software
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 {
15 public:
16  McEventCollectionFilter(const std::string &name, ISvcLocator *pSvcLocator);
17 
18  virtual StatusCode initialize() override;
19  virtual StatusCode execute(const EventContext &ctx) const override;
20 
21 private:
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
McEventCollectionFilter::m_inputTruthCollectionKey
SG::ReadHandleKey< McEventCollection > m_inputTruthCollectionKey
Definition: McEventCollectionFilter.h:23
McEventCollectionFilter::McEventCollectionFilter
McEventCollectionFilter(const std::string &name, ISvcLocator *pSvcLocator)
Definition: McEventCollectionFilter.cxx:26
SG::ReadHandleKey< McEventCollection >
AthReentrantAlgorithm
An algorithm that can be simultaneously executed in multiple threads.
Definition: AthReentrantAlgorithm.h:74
SG::WriteHandleKey< McEventCollection >
McEventCollection.h
McEventCollectionFilter::m_inputTRTHitsKey
SG::ReadHandleKey< TRTUncompressedHitCollection > m_inputTRTHitsKey
Definition: McEventCollectionFilter.h:27
EL::StatusCode
::StatusCode StatusCode
StatusCode definition for legacy code.
Definition: PhysicsAnalysis/D3PDTools/EventLoop/EventLoop/StatusCode.h:22
McEventCollectionFilter::m_outputTruthCollectionKey
SG::WriteHandleKey< McEventCollection > m_outputTruthCollectionKey
Definition: McEventCollectionFilter.h:24
AthReentrantAlgorithm.h
name
std::string name
Definition: Control/AthContainers/Root/debug.cxx:228
McEventCollectionFilter::m_pileUpParticlePDGID
Gaudi::Property< int > m_pileUpParticlePDGID
Definition: McEventCollectionFilter.h:29
McEventCollectionFilter::initialize
virtual StatusCode initialize() override
Definition: McEventCollectionFilter.cxx:32
TRTUncompressedHitCollection.h
McEventCollectionFilter::execute
virtual StatusCode execute(const EventContext &ctx) const override
Definition: McEventCollectionFilter.cxx:51
McEventCollectionFilter
Definition: McEventCollectionFilter.h:14
McEventCollectionFilter::m_keepElectronsLinkedToTRTHits
Gaudi::Property< bool > m_keepElectronsLinkedToTRTHits
Definition: McEventCollectionFilter.h:26