Geant4-11
|
Generate momenta using the Kopylov method. More...
#include <G4INCLPhaseSpaceKopylov.hh>
Public Member Functions | |
void | generate (const G4double sqrtS, ParticleList &particles) |
Generate momenta according to a uniform, non-Lorentz-invariant phase-space model. More... | |
Private Member Functions | |
G4double | betaKopylov (G4int K) const |
Internal function used by the Kopylov algorithm. More... | |
Private Attributes | |
ThreeVector | boostV |
std::vector< G4double > | masses |
ThreeVector | PFragCM |
ThreeVector | PRestCM |
std::vector< G4double > | sumMasses |
Generate momenta using the Kopylov method.
Definition at line 48 of file G4INCLPhaseSpaceKopylov.hh.
Internal function used by the Kopylov algorithm.
Definition at line 47 of file G4INCLPhaseSpaceKopylov.cc.
References G4INCL::Random::shoot().
Referenced by generate().
|
virtual |
Generate momenta according to a uniform, non-Lorentz-invariant phase-space model.
This function will assign momenta to the particles in the list that is passed as an argument. The event is generated in the CM frame.
sqrtS | total centre-of-mass energy of the system |
particles | list of particles |
Implements G4INCL::IPhaseSpaceGenerator.
Definition at line 63 of file G4INCLPhaseSpaceKopylov.cc.
References G4INCL::Particle::adjustEnergyFromMomentum(), betaKopylov(), G4INCL::Particle::boost(), boostV, G4INCL::Particle::boostVector(), G4INCL::Particle::getMass(), masses, G4INCL::KinematicsUtils::momentumInCM(), G4INCL::Random::normVector(), PFragCM, G4INCL::Particle::setMass(), G4INCL::Particle::setMomentum(), G4INCL::ThreeVector::setX(), G4INCL::ThreeVector::setY(), G4INCL::ThreeVector::setZ(), sumMasses, and G4coutFormatters::anonymous_namespace{G4coutFormatters.cc}::transform().
|
private |
Definition at line 68 of file G4INCLPhaseSpaceKopylov.hh.
Referenced by generate().
|
private |
Definition at line 65 of file G4INCLPhaseSpaceKopylov.hh.
Referenced by generate().
|
private |
Definition at line 67 of file G4INCLPhaseSpaceKopylov.hh.
Referenced by generate().
|
private |
Definition at line 67 of file G4INCLPhaseSpaceKopylov.hh.
|
private |
Definition at line 66 of file G4INCLPhaseSpaceKopylov.hh.
Referenced by generate().