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

#include <G4INCLFinalState.hh>

Public Member Functions

 FinalState ()
 
virtual ~FinalState ()
 
void setTotalEnergyBeforeInteraction (G4double E)
 
G4double getTotalEnergyBeforeInteraction () const
 
void addModifiedParticle (Particle *p)
 
void addOutgoingParticle (Particle *p)
 
void addDestroyedParticle (Particle *p)
 
void addCreatedParticle (Particle *p)
 
void addEnteringParticle (Particle *p)
 
ParticleList constgetModifiedParticles () const
 
ParticleList constgetOutgoingParticles () const
 
ParticleList constgetDestroyedParticles () const
 
ParticleList constgetCreatedParticles () const
 
ParticleList constgetEnteringParticles () const
 
void setBlockedDelta (Particle *const p)
 
ParticlegetBlockedDelta ()
 
FinalStateValidity getValidity () const
 
void makeValid ()
 
void makePauliBlocked ()
 
void makeNoEnergyConservation ()
 
void makeParticleBelowFermi ()
 
void makeParticleBelowZero ()
 
std::string print () const
 

Detailed Description

Final state of an interaction

Definition at line 65 of file G4INCLFinalState.hh.

Constructor & Destructor Documentation

◆ FinalState()

G4INCL::FinalState::FinalState ( )

Definition at line 43 of file G4INCLFinalState.cc.

43 :
44 totalEnergyBeforeInteraction(0.0), validity(ValidFS),
45 blockedDelta(NULL)
46 {
47 }

◆ ~FinalState()

G4INCL::FinalState::~FinalState ( )
virtual

Definition at line 49 of file G4INCLFinalState.cc.

50 {
51 }

Member Function Documentation

◆ addCreatedParticle()

void G4INCL::FinalState::addCreatedParticle ( Particle p)

Definition at line 68 of file G4INCLFinalState.cc.

69 {
70 created.push_back(p);
71 }

Referenced by G4INCL::DeltaDecayChannel::getFinalState().

◆ addDestroyedParticle()

void G4INCL::FinalState::addDestroyedParticle ( Particle p)

Definition at line 63 of file G4INCLFinalState.cc.

64 {
65 destroyed.push_back(p);
66 }

Referenced by G4INCL::PionNucleonChannel::getFinalState().

◆ addEnteringParticle()

void G4INCL::FinalState::addEnteringParticle ( Particle p)

Definition at line 73 of file G4INCLFinalState.cc.

74 {
75 entering.push_back(p);
76 }

Referenced by G4INCL::ParticleEntryChannel::getFinalState().

◆ addModifiedParticle()

◆ addOutgoingParticle()

void G4INCL::FinalState::addOutgoingParticle ( Particle p)

Definition at line 58 of file G4INCLFinalState.cc.

59 {
60 outgoing.push_back(p);
61 }

Referenced by G4INCL::TransmissionChannel::getFinalState(), and G4INCL::InteractionAvatar::postInteraction().

◆ getBlockedDelta()

Particle * G4INCL::FinalState::getBlockedDelta ( )
inline

Definition at line 86 of file G4INCLFinalState.hh.

86{ return blockedDelta; }

Referenced by G4INCL::Nucleus::applyFinalState().

◆ getCreatedParticles()

◆ getDestroyedParticles()

ParticleList const & G4INCL::FinalState::getDestroyedParticles ( ) const

Definition at line 88 of file G4INCLFinalState.cc.

89 {
90 return destroyed;
91 }

Referenced by G4INCL::Nucleus::applyFinalState(), and G4INCL::InteractionAvatar::postInteraction().

◆ getEnteringParticles()

ParticleList const & G4INCL::FinalState::getEnteringParticles ( ) const

Definition at line 98 of file G4INCLFinalState.cc.

99 {
100 return entering;
101 }

Referenced by G4INCL::Nucleus::applyFinalState().

◆ getModifiedParticles()

◆ getOutgoingParticles()

ParticleList const & G4INCL::FinalState::getOutgoingParticles ( ) const

Definition at line 83 of file G4INCLFinalState.cc.

84 {
85 return outgoing;
86 }

Referenced by G4INCL::Nucleus::applyFinalState(), and G4INCL::SurfaceAvatar::postInteraction().

◆ getTotalEnergyBeforeInteraction()

G4double G4INCL::FinalState::getTotalEnergyBeforeInteraction ( ) const
inline

Definition at line 71 of file G4INCLFinalState.hh.

71{ return totalEnergyBeforeInteraction; };

Referenced by G4INCL::Nucleus::applyFinalState().

◆ getValidity()

FinalStateValidity G4INCL::FinalState::getValidity ( ) const
inline

◆ makeNoEnergyConservation()

void G4INCL::FinalState::makeNoEnergyConservation ( )
inline

◆ makeParticleBelowFermi()

void G4INCL::FinalState::makeParticleBelowFermi ( )
inline

Definition at line 92 of file G4INCLFinalState.hh.

92{ validity = ParticleBelowFermiFS; }
@ ParticleBelowFermiFS

Referenced by G4INCL::ParticleEntryChannel::getFinalState().

◆ makeParticleBelowZero()

void G4INCL::FinalState::makeParticleBelowZero ( )
inline

Definition at line 93 of file G4INCLFinalState.hh.

93{ validity = ParticleBelowZeroFS; }
@ ParticleBelowZeroFS

Referenced by G4INCL::ParticleEntryChannel::getFinalState().

◆ makePauliBlocked()

void G4INCL::FinalState::makePauliBlocked ( )
inline

◆ makeValid()

void G4INCL::FinalState::makeValid ( )
inline

Definition at line 89 of file G4INCLFinalState.hh.

89{ validity = ValidFS; }

◆ print()

std::string G4INCL::FinalState::print ( ) const

Definition at line 103 of file G4INCLFinalState.cc.

103 {
104 std::stringstream ss;
105 ss << "Modified particles:" << std::endl;
106 for(ParticleIter iter = modified.begin(); iter != modified.end(); ++iter)
107 ss << (*iter)->print();
108 ss << "Outgoing particles:" << std::endl;
109 for(ParticleIter iter = outgoing.begin(); iter != outgoing.end(); ++iter)
110 ss << (*iter)->print();
111 ss << "Destroyed particles:" << std::endl;
112 for(ParticleIter iter = destroyed.begin(); iter != destroyed.end(); ++iter)
113 ss << (*iter)->print();
114 ss << "Created particles:" << std::endl;
115 for(ParticleIter iter = created.begin(); iter != created.end(); ++iter)
116 ss << (*iter)->print();
117 ss << "Entering particles:" << std::endl;
118 for(ParticleIter iter = entering.begin(); iter != entering.end(); ++iter)
119 ss << (*iter)->print();
120 return ss.str();
121 }
std::list< G4INCL::Particle * >::const_iterator ParticleIter

Referenced by G4INCL::Nucleus::applyFinalState().

◆ setBlockedDelta()

void G4INCL::FinalState::setBlockedDelta ( Particle *const  p)
inline

Definition at line 85 of file G4INCLFinalState.hh.

85{ blockedDelta = p; }

Referenced by G4INCL::DecayAvatar::postInteraction().

◆ setTotalEnergyBeforeInteraction()

void G4INCL::FinalState::setTotalEnergyBeforeInteraction ( G4double  E)
inline

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