34 #define INCLXX_IN_GEANT4_MODE 1 43 : theNucleus(nucleus), theParticle(particle),
46 kineticEnergyOutside(initializeKineticEnergyOutside()),
47 cosRefractionAngle(1.)
79 TOut += theQValueCorrection;
98 normal = position / std::sqrt(r2);
TransmissionChannel(Nucleus *n, Particle *p)
G4double getEnergy() const
const G4INCL::ThreeVector & getPosition() const
G4double getMass() const
Get the cached particle mass.
virtual ~TransmissionChannel()
void particleLeaves()
Modify particle that leaves the nucleus.
Particle *const theParticle
G4int getA() const
Returns the baryon number.
G4int getZ() const
Returns the charge number.
void setEnergy(G4double energy)
static double normal(HepRandomEngine *eptr)
const G4double cosRefractionAngle
Cosine of the refraction angle.
const G4bool refraction
True if refraction should be applied.
const G4double pOutMag
Momentum of the particle outside the nucleus.
void addOutgoingParticle(Particle *p)
void setPotentialEnergy(G4double v)
Set the particle potential energy.
virtual G4double getTableMass() const
Get the tabulated particle mass.
G4double dot(const ThreeVector &v) const
void setTotalEnergyBeforeInteraction(G4double E)
G4double getPotentialEnergy() const
Get the particle potential energy.
void setTableMass()
Set the mass of the Particle to its table mass.
const G4double kineticEnergyOutside
Kinetic energy of the particle outside the nucleus.
const G4INCL::ThreeVector & getMomentum() const
Nucleus *const theNucleus
void fillFinalState(FinalState *fs)
const ThreeVector & adjustMomentumFromEnergy()
Rescale the momentum to match the total energy.
G4double initializeKineticEnergyOutside()
Kinetic energy of the transmitted particle.
G4double getEmissionQValueCorrection(const G4int AParent, const G4int ZParent) const
Computes correction on the emission Q-value.
virtual void setMomentum(const G4INCL::ThreeVector &momentum)