#include <G4INCLTransmissionChannel.hh>
Inheritance diagram for G4INCL::TransmissionChannel:
Public Member Functions | |
TransmissionChannel (Nucleus *n, Particle *p) | |
virtual | ~TransmissionChannel () |
FinalState * | getFinalState () |
Definition at line 46 of file G4INCLTransmissionChannel.hh.
G4INCL::TransmissionChannel::~TransmissionChannel | ( | ) | [virtual] |
FinalState * G4INCL::TransmissionChannel::getFinalState | ( | ) | [virtual] |
Implements G4INCL::IChannel.
Definition at line 72 of file G4INCLTransmissionChannel.cc.
References G4INCL::FinalState::addOutgoingParticle(), G4INCL::Particle::getEnergy(), G4INCL::Particle::getMass(), G4INCL::Particle::getPotentialEnergy(), G4INCL::Particle::getTableMass(), and G4INCL::FinalState::setTotalEnergyBeforeInteraction().
00072 { 00073 FinalState *fs = new FinalState; 00074 G4double initialEnergy = 0.0; 00075 initialEnergy = theParticle->getEnergy() - theParticle->getPotentialEnergy(); 00076 00077 // Correction for real masses 00078 initialEnergy += theParticle->getTableMass() - theParticle->getMass(); 00079 00080 const G4double theQValueCorrection = particleLeaves(); 00081 fs->setTotalEnergyBeforeInteraction(initialEnergy + theQValueCorrection); 00082 fs->addOutgoingParticle(theParticle); // We write the particle down as outgoing 00083 return fs; 00084 }