Implementation of non-stable particle decays. More...
#include <Decayer.h>
Public Member Functions | |
void | decay (const Particle &particle, std::vector< std::unique_ptr< Particle > > &secondaries, CLHEP::HepRandomEngine &engine) const |
Decay particle using pythia. More... | |
Decayer () | |
Default Constructor. More... | |
~Decayer () | |
Default destructor. More... | |
Private Attributes | |
std::unique_ptr< Pythia8::Pythia > | pythia_ |
Instance of pythia. More... | |
std::unique_ptr< gen::P8RndmEngine > | pythiaRandomEngine_ |
Instance of pythia Random Engine. More... | |
Implementation of non-stable particle decays.
Inspired by method Pythia8Hadronizer::residualDecay() in GeneratorInterface/Pythia8Interface/src/Py8GunBase.cc
fastsim::Decayer::Decayer | ( | ) |
Default Constructor.
Definition at line 11 of file Decayer.cc.
References pythia_, and pythiaRandomEngine_.
fastsim::Decayer::~Decayer | ( | ) |
void fastsim::Decayer::decay | ( | const Particle & | particle, |
std::vector< std::unique_ptr< Particle > > & | secondaries, | ||
CLHEP::HepRandomEngine & | engine | ||
) | const |
Decay particle using pythia.
particle | The particle that should be decayed. |
secondaries | The decay products. |
engine | The Random Engine. |
Definition at line 28 of file Decayer.cc.
References funct::abs(), fastsim::Particle::charge(), fastsim::Particle::getMotherDeltaR(), fastsim::Particle::getMotherPdgId(), fastsim::Particle::momentum(), fastsim::Particle::pdgId(), fastsim::Particle::position(), and fastsim::Particle::simTrackIndex().
Referenced by FastSimProducer::createFSimTrack(), and FastSimProducer::produce().
|
private |
|
private |