Geant4
10.00.p02
|
RootFunctor-derived object for enforcing energy conservation in pi-N. More...
Public Member Functions | |
ViolationEEnergyFunctor (Nucleus *const nucleus, FinalState const *const finalState, const G4bool localE) | |
Prepare for calling the () operator and scaleParticleMomenta. More... | |
virtual | ~ViolationEEnergyFunctor () |
G4double | operator() (const G4double x) const |
Compute the energy-conservation violation. More... | |
void | cleanUp (const G4bool success) const |
Clean up after root finding. More... | |
void | setParticleEnergy (const G4double energy) const |
Set the energy of the particle. More... | |
Public Member Functions inherited from G4INCL::RootFunctor | |
virtual | ~RootFunctor () |
Public Member Functions inherited from G4INCL::IFunction1D | |
IFunction1D () | |
IFunction1D (const G4double x0, const G4double x1) | |
virtual | ~IFunction1D () |
virtual G4double | getXMinimum () const |
Return the minimum allowed value of the independent variable. More... | |
virtual G4double | getXMaximum () const |
Return the maximum 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... | |
IFunction1D * | primitive () const |
Return a pointer to the (numerical) primitive to this function. More... | |
InverseInterpolationTable * | inverseCDFTable (const G4int nNodes=60) const |
Return a pointer to the inverse of the CDF of this function. More... | |
Private Attributes | |
G4double | initialEnergy |
Total energy before the interaction. More... | |
Nucleus * | theNucleus |
Pointer to the nucleus. More... | |
Particle * | theParticle |
The final-state particle. More... | |
G4double | theEnergy |
The initial energy of the particle. More... | |
ThreeVector | theMomentum |
The initial momentum of the particle. More... | |
G4double | energyThreshold |
Threshold for the energy of the particle. More... | |
const G4bool | shouldUseLocalEnergy |
Whether we should use local energy. More... | |
Additional Inherited Members | |
Protected Member Functions inherited from G4INCL::RootFunctor | |
RootFunctor (const G4double x0, const G4double x1) | |
Protected Attributes inherited from G4INCL::IFunction1D | |
G4double | xMin |
Minimum value of the independent variable. More... | |
G4double | xMax |
Maximum value of the independent variable. More... | |
RootFunctor-derived object for enforcing energy conservation in pi-N.
Definition at line 171 of file G4INCLInteractionAvatar.hh.
G4INCL::InteractionAvatar::ViolationEEnergyFunctor::ViolationEEnergyFunctor | ( | Nucleus *const | nucleus, |
FinalState const *const | finalState, | ||
const G4bool | localE | ||
) |
Prepare for calling the () operator and scaleParticleMomenta.
The constructor sets the private class members.
Definition at line 450 of file G4INCLInteractionAvatar.cc.
|
inlinevirtual |
Definition at line 178 of file G4INCLInteractionAvatar.hh.
|
virtual |
Clean up after root finding.
Implements G4INCL::RootFunctor.
Definition at line 501 of file G4INCLInteractionAvatar.cc.
|
virtual |
Compute the energy-conservation violation.
x | scale factor for the particle momenta |
Implements G4INCL::IFunction1D.
Definition at line 464 of file G4INCLInteractionAvatar.cc.
void G4INCL::InteractionAvatar::ViolationEEnergyFunctor::setParticleEnergy | ( | const G4double | energy | ) | const |
Set the energy of the particle.
energy |
Definition at line 469 of file G4INCLInteractionAvatar.cc.
References G4INCL::KinematicsUtils::getLocalEnergy(), G4INCL::InteractionAvatar::maxIterLocE, G4INCL::InteractionAvatar::shouldUseLocalEnergy(), G4INCL::InteractionAvatar::theNucleus, and G4INCL::Nucleus::updatePotentialEnergy().
|
private |
Threshold for the energy of the particle.
The particle (a delta) cannot have less than this energy.
Definition at line 211 of file G4INCLInteractionAvatar.hh.
|
private |
Total energy before the interaction.
Definition at line 198 of file G4INCLInteractionAvatar.hh.
|
private |
Whether we should use local energy.
Definition at line 213 of file G4INCLInteractionAvatar.hh.
|
private |
The initial energy of the particle.
Definition at line 204 of file G4INCLInteractionAvatar.hh.
|
private |
The initial momentum of the particle.
Definition at line 206 of file G4INCLInteractionAvatar.hh.
|
private |
Pointer to the nucleus.
Definition at line 200 of file G4INCLInteractionAvatar.hh.
|
private |
The final-state particle.
Definition at line 202 of file G4INCLInteractionAvatar.hh.