Geant4-11
|
Class to adjust remnant recoil in the reaction CM system. More...
Public Types | |
typedef G4double(*const | ManipulatorFunc) (const G4double) |
Typedef to simplify the syntax of inverseCDFTable. More... | |
Public Member Functions | |
void | cleanUp (const G4bool success) const |
Clean up after root finding. More... | |
virtual G4double | getXMaximum () const |
Return the maximum allowed value of the independent variable. More... | |
virtual G4double | getXMinimum () const |
Return the minimum allowed value of the independent variable. More... | |
virtual G4double | integrate (const G4double x0, const G4double x1, const G4double step=-1.) const |
Integrate the function between two values. More... | |
InterpolationTable * | inverseCDFTable (ManipulatorFunc fWrap=0, const G4int nNodes=60) const |
Return a pointer to the inverse of the CDF of this function. More... | |
G4double | operator() (const G4double x) const |
Compute the energy-conservation violation. More... | |
IFunction1D * | primitive () const |
Return a pointer to the (numerical) primitive to this function. More... | |
RecoilCMFunctor (Nucleus *const n, const EventInfo &ei) | |
Prepare for calling the () operator and scaleParticleEnergies. More... | |
virtual | ~RecoilCMFunctor () |
Protected Attributes | |
G4double | xMax |
Maximum value of the independent variable. More... | |
G4double | xMin |
Minimum value of the independent variable. More... | |
Private Member Functions | |
void | scaleParticleCMMomenta (const G4double rescale) const |
Scale the kinetic energies of the outgoing particles. More... | |
Private Attributes | |
Nucleus * | nucleus |
Pointer to the nucleus. More... | |
ParticleList | outgoingParticles |
List of final-state particles. More... | |
std::list< ThreeVector > | particleCMMomenta |
Initial CM momenta of the outgoing particles. More... | |
EventInfo const & | theEventInfo |
Reference to the EventInfo object. More... | |
ThreeVector | theIncomingMomentum |
Incoming momentum. More... | |
ThreeVector | thePTBoostVector |
Projectile-target CM boost vector. More... | |
Static Private Attributes | |
static const G4double | integrationCoefficients [] |
Coefficients for numerical integration. More... | |
Class to adjust remnant recoil in the reaction CM system.
Definition at line 190 of file G4INCLCascade.hh.
Typedef to simplify the syntax of inverseCDFTable.
Definition at line 93 of file G4INCLIFunction1D.hh.
Prepare for calling the () operator and scaleParticleEnergies.
The constructor sets the private class members.
Definition at line 196 of file G4INCLCascade.hh.
References G4INCL::Cluster::boost(), G4INCL::Particle::getA(), G4INCL::Nucleus::getIncomingMomentum(), G4INCL::Nucleus::getInitialEnergy(), G4INCL::Particle::getMomentum(), CLHEP::detail::n, nucleus, outgoingParticles, particleCMMomenta, and thePTBoostVector.
|
inlinevirtual |
Definition at line 214 of file G4INCLCascade.hh.
|
inlinevirtual |
Clean up after root finding.
Implements G4INCL::RootFunctor.
Definition at line 227 of file G4INCLCascade.hh.
References scaleParticleCMMomenta().
|
inlinevirtualinherited |
Return the maximum allowed value of the independent variable.
Definition at line 75 of file G4INCLIFunction1D.hh.
References G4INCL::IFunction1D::xMax.
Referenced by G4INCL::IFunction1D::inverseCDFTable(), G4INCL::InvFInterpolationTable::InvFInterpolationTable(), and G4INCL::IFunction1D::primitive().
|
inlinevirtualinherited |
Return the minimum allowed value of the independent variable.
Definition at line 72 of file G4INCLIFunction1D.hh.
References G4INCL::IFunction1D::xMin.
Referenced by G4INCL::IFunction1D::inverseCDFTable(), G4INCL::InvFInterpolationTable::InvFInterpolationTable(), and G4INCL::IFunction1D::primitive().
|
virtualinherited |
Integrate the function between two values.
x0 | lower integration bound |
x1 | upper integration bound |
step | largest integration step size; if <0, 45 steps will be used |
Definition at line 66 of file G4INCLIFunction1D.cc.
References G4INCL::IFunction1D::integrationCoefficients, G4INCL::Math::max(), G4INCL::Math::min(), G4INCL::IFunction1D::operator()(), G4INCL::Math::sign(), G4INCL::IFunction1D::xMax, and G4INCL::IFunction1D::xMin.
|
inherited |
Return a pointer to the inverse of the CDF of this function.
The function parameter fWrap is wrapped around the return value of operator(). If fWrap=NULL (default), fWrap=identity.
Definition at line 123 of file G4INCLIFunction1D.cc.
References G4INCL::IFunction1D::getXMaximum(), G4INCL::IFunction1D::getXMinimum(), G4INCL::IFunction1D::IFunction1D(), G4INCL::Math::min(), G4INCL::IFunction1D::operator()(), G4INCL::IFunction1D::xMax, and G4INCL::IFunction1D::xMin.
Referenced by G4INCL::NuclearDensityFactory::createPCDFTable(), G4INCL::NuclearDensityFactory::createRCDFTable(), and G4INCL::NuclearDensityFactory::createRPCorrelationTable().
Compute the energy-conservation violation.
x | scale factor for the particle energies |
Implements G4INCL::IFunction1D.
Definition at line 221 of file G4INCLCascade.hh.
References G4INCL::Nucleus::ConservationBalance::energy, G4INCL::Nucleus::getConservationBalance(), nucleus, scaleParticleCMMomenta(), and theEventInfo.
|
inherited |
Return a pointer to the (numerical) primitive to this function.
Definition at line 105 of file G4INCLIFunction1D.cc.
References G4INCL::IFunction1D::getXMaximum(), G4INCL::IFunction1D::getXMinimum(), G4INCL::IFunction1D::IFunction1D(), G4INCL::IFunction1D::operator()(), Primitive, and G4INCL::IFunction1D::xMin.
|
inlineprivate |
Scale the kinetic energies of the outgoing particles.
rescale | scale factor |
Definition at line 250 of file G4INCLCascade.hh.
References G4INCL::Particle::getA(), G4INCL::Nucleus::getExcitationEnergy(), G4INCL::Particle::getS(), G4INCL::ParticleTable::getTableMass, G4INCL::Particle::getZ(), G4INCL::ThreeVector::mag2(), nucleus, outgoingParticles, particleCMMomenta, G4INCL::Particle::setEnergy(), G4INCL::Particle::setMomentum(), theIncomingMomentum, and thePTBoostVector.
Referenced by cleanUp(), and operator()().
|
staticprivateinherited |
Coefficients for numerical integration.
Definition at line 110 of file G4INCLIFunction1D.hh.
Referenced by G4INCL::IFunction1D::integrate().
|
private |
Pointer to the nucleus.
Definition at line 234 of file G4INCLCascade.hh.
Referenced by operator()(), RecoilCMFunctor(), and scaleParticleCMMomenta().
|
private |
List of final-state particles.
Definition at line 240 of file G4INCLCascade.hh.
Referenced by RecoilCMFunctor(), and scaleParticleCMMomenta().
|
private |
Initial CM momenta of the outgoing particles.
Definition at line 244 of file G4INCLCascade.hh.
Referenced by RecoilCMFunctor(), and scaleParticleCMMomenta().
|
private |
Reference to the EventInfo object.
Definition at line 242 of file G4INCLCascade.hh.
Referenced by operator()().
|
private |
Incoming momentum.
Definition at line 238 of file G4INCLCascade.hh.
Referenced by scaleParticleCMMomenta().
|
private |
Projectile-target CM boost vector.
Definition at line 236 of file G4INCLCascade.hh.
Referenced by RecoilCMFunctor(), and scaleParticleCMMomenta().
|
protectedinherited |
Maximum value of the independent variable.
Definition at line 106 of file G4INCLIFunction1D.hh.
Referenced by G4INCL::IFunction1D::getXMaximum(), G4INCL::IFunction1D::integrate(), and G4INCL::IFunction1D::inverseCDFTable().
|
protectedinherited |
Minimum value of the independent variable.
Definition at line 104 of file G4INCLIFunction1D.hh.
Referenced by G4INCL::IFunction1D::getXMinimum(), G4INCL::IFunction1D::integrate(), G4INCL::IFunction1D::inverseCDFTable(), and G4INCL::IFunction1D::primitive().