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

Detailed Description

Definition at line 48 of file G4INCLTransmissionChannel.hh.

Constructor & Destructor Documentation

◆ TransmissionChannel()

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

Definition at line 43 of file G4INCLTransmissionChannel.cc.

44 : theNucleus(nucleus), theParticle(particle)
45 {}

◆ ~TransmissionChannel()

G4INCL::TransmissionChannel::~TransmissionChannel ( )
virtual

Definition at line 47 of file G4INCLTransmissionChannel.cc.

47{}

Member Function Documentation

◆ getFinalState()

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

Implements G4INCL::IChannel.

Definition at line 74 of file G4INCLTransmissionChannel.cc.

74 {
75 FinalState *fs = new FinalState;
76 G4double initialEnergy = 0.0;
77 initialEnergy = theParticle->getEnergy() - theParticle->getPotentialEnergy();
78
79 // Correction for real masses
80 initialEnergy += theParticle->getTableMass() - theParticle->getMass();
81
82 const G4double theQValueCorrection = particleLeaves();
83 fs->setTotalEnergyBeforeInteraction(initialEnergy + theQValueCorrection);
84 fs->addOutgoingParticle(theParticle); // We write the particle down as outgoing
85 return fs;
86 }
double G4double
Definition: G4Types.hh:64
G4double getEnergy() const
G4double getPotentialEnergy() const
Get the particle potential energy.
virtual G4double getTableMass() const
Get the tabulated particle mass.
G4double getMass() const
Get the cached particle mass.

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