Geant4 11.2.2
Toolkit for the simulation of the passage of particles through matter
Loading...
Searching...
No Matches
G4INCL::TransmissionChannel Class Reference

#include <G4INCLTransmissionChannel.hh>

+ Inheritance 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

◆ TransmissionChannel() [1/3]

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 {}

◆ TransmissionChannel() [2/3]

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 {}

◆ TransmissionChannel() [3/3]

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 {}

◆ ~TransmissionChannel()

G4INCL::TransmissionChannel::~TransmissionChannel ( )
virtual

Definition at line 66 of file G4INCLTransmissionChannel.cc.

66{}

Member Function Documentation

◆ fillFinalState()

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

Implements G4INCL::IChannel.

Definition at line 113 of file G4INCLTransmissionChannel.cc.

113 {
114 G4double initialEnergy = 0.0;
115 initialEnergy = theParticle->getEnergy() - theParticle->getPotentialEnergy();
116 // Correction for real masses
117 const G4int AParent = theNucleus->getA();
118 const G4int ZParent = theNucleus->getZ();
119 const G4int SParent = theNucleus->getS();
120 initialEnergy += theParticle->getTableMass() - theParticle->getMass()
121 + theParticle->getEmissionQValueCorrection(AParent,ZParent,SParent);
122 particleLeaves();
123
124 fs->setTotalEnergyBeforeInteraction(initialEnergy);
125 fs->addOutgoingParticle(theParticle); // We write the particle down as outgoing
126 }
double G4double
Definition G4Types.hh:83
int G4int
Definition G4Types.hh:85
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.
virtual G4double getTableMass() const
Get the tabulated particle mass.
G4double getMass() const
Get the cached particle mass.
G4int getA() const
Returns the baryon number.

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