5#ifndef XAODCREATORALGS_XAODTRUTHREADER_H
6#define XAODCREATORALGS_XAODTRUTHREADER_H
29 virtual StatusCode
execute(
const EventContext& ctx)
const;
36 this,
"xAODTruthEventContainerKey",
"TruthEvents",
"The input TruthEventContainer"};
An algorithm that can be simultaneously executed in multiple threads.
Property holding a SG store/key/clid from which a ReadHandle is made.
virtual StatusCode initialize()
Function initialising the algorithm.
static void printEvent(const xAOD::TruthEventBase *evt, bool do4momPtEtaPhi)
SG::ReadHandleKey< xAOD::TruthEventContainer > m_xaodTruthEventContainerKey
The keys for the input xAOD truth containers.
Gaudi::Property< bool > m_doPUEventPrintout
xAODTruthReader(const std::string &name, ISvcLocator *svcLoc)
Regular algorithm constructor.
static void printParticle(const xAOD::TruthParticle *part, bool do4momPtEtaPhi)
Gaudi::Property< bool > m_do4momPtEtaPhi
Flag to printout in pt,eta,phi instead of px,py,pz.
static void printVertex(const xAOD::TruthVertex *vtx, bool do4momPtEtaPhi)
virtual StatusCode execute(const EventContext &ctx) const
Function executing the algorithm.
TruthEventBase_v1 TruthEventBase
Typedef to implementation.
TruthVertex_v1 TruthVertex
Typedef to implementation.
TruthParticle_v1 TruthParticle
Typedef to implementation.