G4INCL::TransmissionChannel Class Reference

#include <G4INCLTransmissionChannel.hh>

Inheritance diagram for G4INCL::TransmissionChannel:

G4INCL::IChannel

Public Member Functions

 TransmissionChannel (Nucleus *n, Particle *p)
virtual ~TransmissionChannel ()
FinalStategetFinalState ()

Detailed Description

Definition at line 46 of file G4INCLTransmissionChannel.hh.


Constructor & Destructor Documentation

G4INCL::TransmissionChannel::TransmissionChannel ( Nucleus n,
Particle p 
)

Definition at line 41 of file G4INCLTransmissionChannel.cc.

00042     : theNucleus(nucleus), theParticle(particle)
00043   {}

G4INCL::TransmissionChannel::~TransmissionChannel (  )  [virtual]

Definition at line 45 of file G4INCLTransmissionChannel.cc.

00045 {}


Member Function Documentation

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   }


The documentation for this class was generated from the following files:
Generated on Mon May 27 17:54:08 2013 for Geant4 by  doxygen 1.4.7