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 12 of file Decayer.cc.
References sysUtil::pid, 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 34 of file Decayer.cc.
References funct::abs(), fastsim::Particle::charge(), fastsim::Particle::getMotherDeltaR(), fastsim::Particle::getMotherPdgId(), isExotic(), fastsim::Particle::momentum(), fastsim::Particle::pdgId(), sysUtil::pid, fastsim::Particle::position(), pythia_, pythiaRandomEngine_, and fastsim::Particle::simTrackIndex().
Referenced by FastSimProducer::createFSimTrack(), and FastSimProducer::produce().
|
private |
|
private |