Geant4
10.02.p02
|
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... | |
Public Member Functions inherited from G4INCL::IPhaseSpaceGenerator | |
IPhaseSpaceGenerator () | |
virtual | ~IPhaseSpaceGenerator () |
Private Member Functions | |
G4double | betaKopylov (G4int K) const |
Internal function used by the Kopylov algorithm. More... | |
Private Attributes | |
std::vector< G4double > | masses |
std::vector< G4double > | sumMasses |
ThreeVector | PFragCM |
ThreeVector | PRestCM |
ThreeVector | boostV |
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(), and sumMasses.
|
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().