Changeset View
Changeset View
Standalone View
Standalone View
src/EvtGenBase/EvtHepMCEvent.cpp
Show First 20 Lines • Show All 71 Lines • ▼ Show 20 Lines | void EvtHepMCEvent::constructEvent( EvtParticle* baseParticle, | ||||
this->addVertex( baseParticle, hepMCGenParticle ); | this->addVertex( baseParticle, hepMCGenParticle ); | ||||
} | } | ||||
GenParticlePtr EvtHepMCEvent::createGenParticle( EvtParticle* theParticle, | GenParticlePtr EvtHepMCEvent::createGenParticle( EvtParticle* theParticle, | ||||
int frameType ) | int frameType ) | ||||
{ | { | ||||
// Create an HepMC GenParticle, with the 4-momenta in the frame given by the frameType integer | // Create an HepMC GenParticle, with the 4-momenta in the frame given by the frameType integer | ||||
GenParticlePtr genParticle{nullptr}; | GenParticlePtr genParticle{ nullptr }; | ||||
if ( theParticle != nullptr ) { | if ( theParticle != nullptr ) { | ||||
// Set the particle status integer to either stable or decayed | // Set the particle status integer to either stable or decayed | ||||
int status( EvtHepMCEvent::STABLE ); | int status( EvtHepMCEvent::STABLE ); | ||||
int nDaug = theParticle->getNDaug(); | int nDaug = theParticle->getNDaug(); | ||||
if ( nDaug > 0 ) { | if ( nDaug > 0 ) { | ||||
status = EvtHepMCEvent::DECAYED; | status = EvtHepMCEvent::DECAYED; | ||||
} | } | ||||
▲ Show 20 Lines • Show All 107 Lines • Show Last 20 Lines |