Analysis Software
Documentation for sPHENIX simulation software
|
Handle particle decays using the Geant4 decay models. More...
#include <acts/blob/sPHENIX/Fatras/Geant4/include/ActsFatras/Geant4/Geant4Decay.hpp>
Public Types | |
using | Scalar = Particle::Scalar |
Public Member Functions | |
Geant4Decay () | |
Constructor. | |
template<typename generator_t > | |
Scalar | generateProperTimeLimit (generator_t &generator, const Particle &particle) const |
template<typename generator_t > | |
std::vector< Particle > | run (generator_t &generator, Particle &particle) const |
Private Member Functions | |
std::vector< Particle > | decayParticle (const Particle &parent) const |
Private Attributes | |
G4RunManager * | m_g4RunManager |
for dummy G4 initialization | |
PDGtoG4Converter | m_pdgToG4Conv |
Handle for converting a PDG ID into a Geant4 particle. | |
Handle particle decays using the Geant4 decay models.
Definition at line 28 of file Geant4Decay.hpp.
View newest version in sPHENIX GitHub at line 28 of file Geant4Decay.hpp
Definition at line 30 of file Geant4Decay.hpp.
View newest version in sPHENIX GitHub at line 30 of file Geant4Decay.hpp
ActsFatras::Geant4Decay::Geant4Decay | ( | ) |
Constructor.
Definition at line 23 of file Geant4Decay.cpp.
View newest version in sPHENIX GitHub at line 23 of file Geant4Decay.cpp
|
private |
This function evaluates the decay products of a given particle
[in] | parent | The decaying particle |
Definition at line 26 of file Geant4Decay.cpp.
View newest version in sPHENIX GitHub at line 26 of file Geant4Decay.cpp
References channel(), Acts::eEnergy, Acts::eMom0, Acts::eMom1, Acts::eMom2, ActsFatras::Particle::fourMomentum(), ActsFatras::Particle::fourPosition(), Acts::UnitConstants::GeV, i, ActsFatras::Barcode::makeDescendant(), testing::internal::move(), ActsFatras::Particle::particleId(), pdg, ActsFatras::Particle::pdg(), ActsFatras::Particle::setPosition4(), and ActsFatras::Particle::setProcess().
Referenced by run().
Particle::Scalar ActsFatras::Geant4Decay::generateProperTimeLimit | ( | generator_t & | generator, |
const Particle & | particle | ||
) | const |
Generate the particle life time.
generator_t | Type of the random number generator |
[in,out] | generator | The random number generator |
[in] | particle | The particle that gets a lifetime assigned |
Definition at line 70 of file Geant4Decay.hpp.
View newest version in sPHENIX GitHub at line 70 of file Geant4Decay.hpp
References Acts::eMuon, ActsFatras::PDGtoG4Converter::getParticleDefinition(), m_pdgToG4Conv, Acts::makeAbsolutePdgParticle(), Acts::UnitConstants::mm, ActsFatras::Particle::pdg(), physmon_simulation::s, and tau.
std::vector< Particle > ActsFatras::Geant4Decay::run | ( | generator_t & | generator, |
Particle & | particle | ||
) | const |
Decay the particle and create the decay products.
generator_t | Type of the random number generator |
[in,out] | particle | The particle that may decay |
Definition at line 97 of file Geant4Decay.hpp.
View newest version in sPHENIX GitHub at line 97 of file Geant4Decay.hpp
References decayParticle().
|
mutableprivate |
for dummy G4 initialization
Definition at line 63 of file Geant4Decay.hpp.
View newest version in sPHENIX GitHub at line 63 of file Geant4Decay.hpp
|
private |
Handle for converting a PDG ID into a Geant4 particle.
Definition at line 66 of file Geant4Decay.hpp.
View newest version in sPHENIX GitHub at line 66 of file Geant4Decay.hpp
Referenced by generateProperTimeLimit().