5#ifndef HEPMCTRUTHREADER_H
6#define HEPMCTRUTHREADER_H
30 virtual StatusCode
execute(
const EventContext& ctx)
const;
37 this,
"HepMCContainerKey",
"GEN_EVENT",
"The input McEvenCollection"};
42 static void printEvent(
const HepMC::GenEvent* evt,
bool do4momPtEtaPhi);
Property holding a SG store/key/clid from which a ReadHandle is made.
An algorithm that can be simultaneously executed in multiple threads.
static void printVertex(const HepMC::ConstGenVertexPtr &vtx, bool do4momPtEtaPhi)
virtual StatusCode initialize()
Function initialising the algorithm.
HepMCTruthReader(const std::string &name, ISvcLocator *svcLoc)
Regular algorithm constructor.
Gaudi::Property< bool > m_do4momPtEtaPhi
Flag to printout in pt,eta,phi instead of px,py,pz.
static void printEvent(const HepMC::GenEvent *evt, bool do4momPtEtaPhi)
SG::ReadHandleKey< McEventCollection > m_hepMCContainerKey
The key of the input HepMC truth container.
static void printParticle(const HepMC::ConstGenParticlePtr &part, bool do4momPtEtaPhi)
virtual StatusCode execute(const EventContext &ctx) const
Function executing the algorithm.
Property holding a SG store/key/clid from which a ReadHandle is made.
const GenParticle * ConstGenParticlePtr
const HepMC::GenVertex * ConstGenVertexPtr