|
ATLAS Offline Software
|
Go to the documentation of this file.
7 #ifndef THINNINGUTILS_ThinGeantTruthAlg_H
8 #define THINNINGUTILS_ThinGeantTruthAlg_H
20 #include "GaudiKernel/ServiceHandle.h"
21 #include "GaudiKernel/ToolHandle.h"
40 std::unordered_set<int>&)
const;
43 std::unordered_set<int>&)
const;
49 "Stream for which thinning is to be done." };
54 "Max eta value for e-gamma truth particles" };
61 "LongLivedParticleList",
62 { 310, 3122, 3222, 3112, 3322, 3312 },
63 "List of long lifetime particles which are likely to be decayed by "
64 "Geant but whose children must be kept"
71 "Name of the input Truth Particle container"
78 "Name of the input Truth Vertices container"
85 "Name of the input electron container"
92 "Name of the input forward electron container"
99 "Name of the input photon container"
103 m_muonsKey{
this,
"MuonsKey",
"Muons",
"Name of the input muon container" };
108 "egammaTruthParticles",
109 "Name of the input egammaTruth container"
120 #endif //> !THINNINGUTILS_ThinGeantTruthAlg_H
Gaudi::Property< float > m_etaMaxEgTruth
virtual StatusCode execute(const EventContext &ctx) const override final
void descendants(const xAOD::TruthParticle *, std::vector< bool > &, std::unordered_set< int > &) const
HandleKey object for adding thinning to an object.
virtual StatusCode initialize() override
SG::ThinningHandleKey< xAOD::TruthParticleContainer > m_truthParticlesKey
SG::ReadHandleKey< xAOD::ElectronContainer > m_electronsKey
SG::ReadHandleKey< xAOD::MuonContainer > m_muonsKey
std::atomic< unsigned long > m_nParticlesThinned
An algorithm that can be simultaneously executed in multiple threads.
SG::ReadHandleKey< xAOD::PhotonContainer > m_photonsKey
void ancestors(const xAOD::TruthParticle *, std::vector< bool > &, std::unordered_set< int > &) const
Inline method.
AthReentrantAlgorithm()
Default constructor:
::StatusCode StatusCode
StatusCode definition for legacy code.
Class describing a truth particle in the MC record.
Gaudi::Property< std::vector< int > > m_longlived
SG::ThinningHandleKey< xAOD::TruthVertexContainer > m_truthVerticesKey
Gaudi::Property< bool > m_keepEGamma
SG::ReadHandleKey< xAOD::ElectronContainer > m_fwdElectronsKey
std::atomic< unsigned long > m_nVerticesProcessed
virtual StatusCode finalize() override
std::atomic< unsigned long > m_nEventsProcessed
Counters.
std::atomic< unsigned long > m_nParticlesProcessed
SG::ReadHandleKey< xAOD::TruthParticleContainer > m_egammaTruthKey
HandleKey object for adding thinning to an object.
Gaudi::Property< bool > m_keepMuons
std::atomic< unsigned long > m_nVerticesThinned
StringProperty m_streamName