34#define INCLXX_IN_GEANT4_MODE 1
43 : theNucleus(nucleus), theParticle(particle),
46 kineticEnergyOutside(initializeKineticEnergyOutside()),
47 cosRefractionAngle(1.)
51 : theNucleus(nucleus), theParticle(particle),
54 kineticEnergyOutside(TOut),
55 cosRefractionAngle(1.)
59 : theNucleus(nucleus), theParticle(particle),
62 kineticEnergyOutside(initializeKineticEnergyOutside()),
63 cosRefractionAngle(cosR)
68 G4double TransmissionChannel::initializeKineticEnergyOutside() {
80 TOut += theQValueCorrection;
84 void TransmissionChannel::particleLeaves() {
101 const ThreeVector &momentum = theParticle->
getMomentum();
103 const ThreeVector pOut = normal * (pOutMag * cosRefractionAngle) + momentum - normal * normal.
dot(momentum);
117 const G4int AParent = theNucleus->
getA();
118 const G4int ZParent = theNucleus->
getZ();
119 const G4int SParent = theNucleus->
getS();
void setTotalEnergyBeforeInteraction(G4double E)
void addOutgoingParticle(Particle *p)
void setPotentialEnergy(G4double v)
Set the particle potential energy.
G4int getS() const
Returns the strangeness number.
G4double getEmissionQValueCorrection(const G4int AParent, const G4int ZParent) const
Computes correction on the emission Q-value.
G4double getEnergy() const
G4double getPotentialEnergy() const
Get the particle potential energy.
G4int getZ() const
Returns the charge number.
const G4INCL::ThreeVector & getPosition() const
const ThreeVector & adjustMomentumFromEnergy()
Rescale the momentum to match the total energy.
const G4INCL::ThreeVector & getMomentum() const
virtual void setMomentum(const G4INCL::ThreeVector &momentum)
virtual G4double getTableMass() const
Get the tabulated particle mass.
void setEnergy(G4double energy)
G4double getMass() const
Get the cached particle mass.
void setTableMass()
Set the mass of the Particle to its table mass.
G4int getA() const
Returns the baryon number.
G4double dot(const ThreeVector &v) const
virtual ~TransmissionChannel()
void fillFinalState(FinalState *fs)
TransmissionChannel(Nucleus *n, Particle *p)