Geant4  10.03.p01
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Pages
G4INCL::TransmissionChannel Class Reference

#include <G4INCLTransmissionChannel.hh>

Inheritance diagram for G4INCL::TransmissionChannel:
Collaboration diagram for G4INCL::TransmissionChannel:

Public Member Functions

 TransmissionChannel (Nucleus *n, Particle *p)
 
 TransmissionChannel (Nucleus *n, Particle *p, const G4double TOut)
 
 TransmissionChannel (Nucleus *n, Particle *p, const G4double kOut, const G4double cosR)
 
virtual ~TransmissionChannel ()
 
void fillFinalState (FinalState *fs)
 
- Public Member Functions inherited from G4INCL::IChannel
 IChannel ()
 
virtual ~IChannel ()
 
FinalStategetFinalState ()
 

Detailed Description

Definition at line 48 of file G4INCLTransmissionChannel.hh.

Constructor & Destructor Documentation

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

Definition at line 42 of file G4INCLTransmissionChannel.cc.

43  : theNucleus(nucleus), theParticle(particle),
44  refraction(false),
45  pOutMag(0.),
46  kineticEnergyOutside(initializeKineticEnergyOutside()),
47  cosRefractionAngle(1.)
48  {}
G4INCL::TransmissionChannel::TransmissionChannel ( Nucleus n,
Particle p,
const G4double  TOut 
)

Definition at line 50 of file G4INCLTransmissionChannel.cc.

51  : theNucleus(nucleus), theParticle(particle),
52  refraction(false),
53  pOutMag(0.),
54  kineticEnergyOutside(TOut),
55  cosRefractionAngle(1.)
56  {}
G4INCL::TransmissionChannel::TransmissionChannel ( Nucleus n,
Particle p,
const G4double  kOut,
const G4double  cosR 
)

Definition at line 58 of file G4INCLTransmissionChannel.cc.

59  : theNucleus(nucleus), theParticle(particle),
60  refraction(true),
61  pOutMag(kOut),
62  kineticEnergyOutside(initializeKineticEnergyOutside()),
63  cosRefractionAngle(cosR)
64  {}
G4INCL::TransmissionChannel::~TransmissionChannel ( )
virtual

Definition at line 66 of file G4INCLTransmissionChannel.cc.

66 {}

Member Function Documentation

void G4INCL::TransmissionChannel::fillFinalState ( FinalState fs)
virtual

Implements G4INCL::IChannel.

Definition at line 112 of file G4INCLTransmissionChannel.cc.

112  {
113  G4double initialEnergy = 0.0;
114  initialEnergy = theParticle->getEnergy() - theParticle->getPotentialEnergy();
115 
116  // Correction for real masses
117  const G4int AParent = theNucleus->getA();
118  const G4int ZParent = theNucleus->getZ();
119  initialEnergy += theParticle->getTableMass() - theParticle->getMass()
120  + theParticle->getEmissionQValueCorrection(AParent,ZParent);
121 
122  particleLeaves();
123 
124  fs->setTotalEnergyBeforeInteraction(initialEnergy);
125  fs->addOutgoingParticle(theParticle); // We write the particle down as outgoing
126  }
G4int getA() const
Returns the baryon number.
G4double getMass() const
Get the cached particle mass.
G4double getEnergy() const
int G4int
Definition: G4Types.hh:78
G4double getPotentialEnergy() const
Get the particle potential energy.
G4int getZ() const
Returns the charge number.
virtual G4double getTableMass() const
Get the tabulated particle mass.
double G4double
Definition: G4Types.hh:76
G4double getEmissionQValueCorrection(const G4int AParent, const G4int ZParent) const
Computes correction on the emission Q-value.

Here is the call graph for this function:


The documentation for this class was generated from the following files: