|
ATLAS Offline Software
|
Go to the documentation of this file.
5 #ifndef HEPMCTRUTHREADER_H
6 #define HEPMCTRUTHREADER_H
35 this,
"HepMCContainerKey",
"GEN_EVENT",
"The input McEvenCollection"};
40 static void printEvent(
const HepMC::GenEvent*
evt,
bool do4momPtEtaPhi);
48 #endif // HEPMCTRUTHREADER_H
Property holding a SG store/key/clid from which a ReadHandle is made.
Algorithm demonstrating reading of HepMC truth, and printing to screen.
static void printParticle(const HepMC::ConstGenParticlePtr &part, bool do4momPtEtaPhi)
An algorithm that can be simultaneously executed in multiple threads.
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)
HepMCTruthReader(const std::string &name, ISvcLocator *svcLoc)
Regular algorithm constructor.
::StatusCode StatusCode
StatusCode definition for legacy code.
SG::ReadHandleKey< McEventCollection > m_hepMCContainerKey
The key of the input HepMC truth container.
virtual StatusCode execute(const EventContext &ctx) const
Function executing the algorithm.
const GenParticle * ConstGenParticlePtr
virtual StatusCode initialize()
Function initialising the algorithm.
static void printVertex(const HepMC::ConstGenVertexPtr &vtx, bool do4momPtEtaPhi)
const HepMC::GenVertex * ConstGenVertexPtr