Geant4.10
 All Data Structures Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Groups Pages
Public Member Functions
G4INCL::TransmissionChannel Class Reference

#include <G4INCLTransmissionChannel.hh>

Inheritance diagram for G4INCL::TransmissionChannel:
G4INCL::IChannel

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 ()
 
FinalStategetFinalState ()
 
- Public Member Functions inherited from G4INCL::IChannel
 IChannel ()
 
virtual ~IChannel ()
 

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.

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

Definition at line 49 of file G4INCLTransmissionChannel.cc.

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

Definition at line 57 of file G4INCLTransmissionChannel.cc.

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

Definition at line 65 of file G4INCLTransmissionChannel.cc.

65 {}

Member Function Documentation

FinalState * G4INCL::TransmissionChannel::getFinalState ( )
virtual

Implements G4INCL::IChannel.

Definition at line 111 of file G4INCLTransmissionChannel.cc.

References G4INCL::FinalState::addOutgoingParticle(), G4INCL::Particle::getA(), G4INCL::Particle::getEmissionQValueCorrection(), G4INCL::Particle::getEnergy(), G4INCL::Particle::getMass(), G4INCL::Particle::getPotentialEnergy(), G4INCL::Particle::getTableMass(), G4INCL::Particle::getZ(), and G4INCL::FinalState::setTotalEnergyBeforeInteraction().

111  {
112  FinalState *fs = new FinalState;
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  return fs;
127  }
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.

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