Geant4 11.2.2
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 reset ()
 
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 const & getModifiedParticles () const
 
ParticleList const & getOutgoingParticles () const
 
ParticleList const & getDestroyedParticles () const
 
ParticleList const & getCreatedParticles () const
 
ParticleList const & getEnteringParticles () const
 
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 64 of file G4INCLFinalState.hh.

Constructor & Destructor Documentation

◆ FinalState()

G4INCL::FinalState::FinalState ( )

Definition at line 42 of file G4INCLFinalState.cc.

42 {
43 reset();
44 }

◆ ~FinalState()

G4INCL::FinalState::~FinalState ( )
virtual

Definition at line 46 of file G4INCLFinalState.cc.

47 {
48 }

Member Function Documentation

◆ addCreatedParticle()

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

Definition at line 75 of file G4INCLFinalState.cc.

76 {
77 created.push_back(p);
78 }

Referenced by G4INCL::DeltaDecayChannel::fillFinalState(), G4INCL::EtaNToPiPiNChannel::fillFinalState(), G4INCL::NDeltaEtaProductionChannel::fillFinalState(), G4INCL::NDeltaOmegaProductionChannel::fillFinalState(), G4INCL::NDeltaToDeltaLKChannel::fillFinalState(), G4INCL::NDeltaToDeltaSKChannel::fillFinalState(), G4INCL::NDeltaToNLKChannel::fillFinalState(), G4INCL::NDeltaToNNKKbChannel::fillFinalState(), G4INCL::NDeltaToNSKChannel::fillFinalState(), G4INCL::NKbToL2piChannel::fillFinalState(), G4INCL::NKbToNKb2piChannel::fillFinalState(), G4INCL::NKbToNKbpiChannel::fillFinalState(), G4INCL::NKbToS2piChannel::fillFinalState(), G4INCL::NKToNK2piChannel::fillFinalState(), G4INCL::NKToNKpiChannel::fillFinalState(), G4INCL::NNbarToAnnihilationChannel::fillFinalState(), G4INCL::NNbarToLLbarChannel::fillFinalState(), G4INCL::NNbarToNNbar2piChannel::fillFinalState(), G4INCL::NNbarToNNbar3piChannel::fillFinalState(), G4INCL::NNbarToNNbarpiChannel::fillFinalState(), G4INCL::NNEtaToMultiPionsChannel::fillFinalState(), G4INCL::NNOmegaToMultiPionsChannel::fillFinalState(), G4INCL::NNToMissingStrangenessChannel::fillFinalState(), G4INCL::NNToMultiPionsChannel::fillFinalState(), G4INCL::NNToNLK2piChannel::fillFinalState(), G4INCL::NNToNLKChannel::fillFinalState(), G4INCL::NNToNLKpiChannel::fillFinalState(), G4INCL::NNToNNEtaChannel::fillFinalState(), G4INCL::NNToNNKKbChannel::fillFinalState(), G4INCL::NNToNNOmegaChannel::fillFinalState(), G4INCL::NNToNSK2piChannel::fillFinalState(), G4INCL::NNToNSKChannel::fillFinalState(), G4INCL::NNToNSKpiChannel::fillFinalState(), G4INCL::NpiToLK2piChannel::fillFinalState(), G4INCL::NpiToLKpiChannel::fillFinalState(), G4INCL::NpiToMissingStrangenessChannel::fillFinalState(), G4INCL::NpiToNKKbChannel::fillFinalState(), G4INCL::NpiToSK2piChannel::fillFinalState(), G4INCL::NpiToSKpiChannel::fillFinalState(), G4INCL::OmegaNToPiPiNChannel::fillFinalState(), G4INCL::PiNToMultiPionsChannel::fillFinalState(), G4INCL::PionResonanceDecayChannel::fillFinalState(), and G4INCL::SigmaZeroDecayChannel::fillFinalState().

◆ addDestroyedParticle()

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

Definition at line 70 of file G4INCLFinalState.cc.

71 {
72 destroyed.push_back(p);
73 }

Referenced by G4INCL::PiNToDeltaChannel::fillFinalState().

◆ addEnteringParticle()

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

Definition at line 80 of file G4INCLFinalState.cc.

81 {
82 entering.push_back(p);
83 }

Referenced by G4INCL::ParticleEntryChannel::fillFinalState(), and G4INCL::PbarAtrestEntryChannel::fillFinalState().

◆ addModifiedParticle()

void G4INCL::FinalState::addModifiedParticle ( Particle * p)

Definition at line 60 of file G4INCLFinalState.cc.

61 {
62 modified.push_back(p);
63 }

Referenced by G4INCL::DeltaDecayChannel::fillFinalState(), G4INCL::DeltaProductionChannel::fillFinalState(), G4INCL::ElasticChannel::fillFinalState(), G4INCL::EtaNElasticChannel::fillFinalState(), G4INCL::EtaNToPiNChannel::fillFinalState(), G4INCL::EtaNToPiPiNChannel::fillFinalState(), G4INCL::NDeltaEtaProductionChannel::fillFinalState(), G4INCL::NDeltaOmegaProductionChannel::fillFinalState(), G4INCL::NDeltaToDeltaLKChannel::fillFinalState(), G4INCL::NDeltaToDeltaSKChannel::fillFinalState(), G4INCL::NDeltaToNLKChannel::fillFinalState(), G4INCL::NDeltaToNNKKbChannel::fillFinalState(), G4INCL::NDeltaToNSKChannel::fillFinalState(), G4INCL::NeutralKaonDecayChannel::fillFinalState(), G4INCL::NKbElasticChannel::fillFinalState(), G4INCL::NKbToL2piChannel::fillFinalState(), G4INCL::NKbToLpiChannel::fillFinalState(), G4INCL::NKbToNKb2piChannel::fillFinalState(), G4INCL::NKbToNKbChannel::fillFinalState(), G4INCL::NKbToNKbpiChannel::fillFinalState(), G4INCL::NKbToS2piChannel::fillFinalState(), G4INCL::NKbToSpiChannel::fillFinalState(), G4INCL::NKElasticChannel::fillFinalState(), G4INCL::NKToNK2piChannel::fillFinalState(), G4INCL::NKToNKChannel::fillFinalState(), G4INCL::NKToNKpiChannel::fillFinalState(), G4INCL::NLToNSChannel::fillFinalState(), G4INCL::NNbarCEXChannel::fillFinalState(), G4INCL::NNbarElasticChannel::fillFinalState(), G4INCL::NNbarToAnnihilationChannel::fillFinalState(), G4INCL::NNbarToLLbarChannel::fillFinalState(), G4INCL::NNbarToNNbar2piChannel::fillFinalState(), G4INCL::NNbarToNNbar3piChannel::fillFinalState(), G4INCL::NNbarToNNbarpiChannel::fillFinalState(), G4INCL::NNEtaToMultiPionsChannel::fillFinalState(), G4INCL::NNOmegaToMultiPionsChannel::fillFinalState(), G4INCL::NNToMissingStrangenessChannel::fillFinalState(), G4INCL::NNToMultiPionsChannel::fillFinalState(), G4INCL::NNToNLK2piChannel::fillFinalState(), G4INCL::NNToNLKChannel::fillFinalState(), G4INCL::NNToNLKpiChannel::fillFinalState(), G4INCL::NNToNNEtaChannel::fillFinalState(), G4INCL::NNToNNKKbChannel::fillFinalState(), G4INCL::NNToNNOmegaChannel::fillFinalState(), G4INCL::NNToNSK2piChannel::fillFinalState(), G4INCL::NNToNSKChannel::fillFinalState(), G4INCL::NNToNSKpiChannel::fillFinalState(), G4INCL::NpiToLK2piChannel::fillFinalState(), G4INCL::NpiToLKChannel::fillFinalState(), G4INCL::NpiToLKpiChannel::fillFinalState(), G4INCL::NpiToMissingStrangenessChannel::fillFinalState(), G4INCL::NpiToNKKbChannel::fillFinalState(), G4INCL::NpiToSK2piChannel::fillFinalState(), G4INCL::NpiToSKChannel::fillFinalState(), G4INCL::NpiToSKpiChannel::fillFinalState(), G4INCL::NSToNLChannel::fillFinalState(), G4INCL::NSToNSChannel::fillFinalState(), G4INCL::NYElasticChannel::fillFinalState(), G4INCL::OmegaNElasticChannel::fillFinalState(), G4INCL::OmegaNToPiNChannel::fillFinalState(), G4INCL::OmegaNToPiPiNChannel::fillFinalState(), G4INCL::PiNElasticChannel::fillFinalState(), G4INCL::PiNToDeltaChannel::fillFinalState(), G4INCL::PiNToEtaChannel::fillFinalState(), G4INCL::PiNToMultiPionsChannel::fillFinalState(), G4INCL::PiNToOmegaChannel::fillFinalState(), G4INCL::PionResonanceDecayChannel::fillFinalState(), G4INCL::RecombinationChannel::fillFinalState(), G4INCL::ReflectionChannel::fillFinalState(), G4INCL::SigmaZeroDecayChannel::fillFinalState(), G4INCL::StrangeAbsorbtionChannel::fillFinalState(), and G4INCL::DecayAvatar::postInteraction().

◆ addOutgoingParticle()

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

Definition at line 65 of file G4INCLFinalState.cc.

66 {
67 outgoing.push_back(p);
68 }

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

◆ getCreatedParticles()

◆ getDestroyedParticles()

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

◆ getEnteringParticles()

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

◆ getModifiedParticles()

◆ getOutgoingParticles()

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

◆ getTotalEnergyBeforeInteraction()

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

Definition at line 72 of file G4INCLFinalState.hh.

72{ return totalEnergyBeforeInteraction; };

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

◆ getValidity()

◆ makeNoEnergyConservation()

void G4INCL::FinalState::makeNoEnergyConservation ( )
inline

◆ makeParticleBelowFermi()

void G4INCL::FinalState::makeParticleBelowFermi ( )
inline

Definition at line 90 of file G4INCLFinalState.hh.

90{ validity = ParticleBelowFermiFS; }

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

◆ makeParticleBelowZero()

void G4INCL::FinalState::makeParticleBelowZero ( )
inline

Definition at line 91 of file G4INCLFinalState.hh.

91{ validity = ParticleBelowZeroFS; }

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

◆ makePauliBlocked()

void G4INCL::FinalState::makePauliBlocked ( )
inline

◆ makeValid()

void G4INCL::FinalState::makeValid ( )
inline

Definition at line 87 of file G4INCLFinalState.hh.

87{ validity = ValidFS; }

◆ print()

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

Definition at line 110 of file G4INCLFinalState.cc.

110 {
111 std::stringstream ss;
112 ss << "Modified particles:" << '\n';
113 for(ParticleIter iter=modified.begin(), e=modified.end(); iter!=e; ++iter)
114 ss << (*iter)->print();
115 ss << "Outgoing particles:" << '\n';
116 for(ParticleIter iter=outgoing.begin(), e=outgoing.end(); iter!=e; ++iter)
117 ss << (*iter)->print();
118 ss << "Destroyed particles:" << '\n';
119 for(ParticleIter iter=destroyed.begin(), e=destroyed.end(); iter!=e; ++iter)
120 ss << (*iter)->print();
121 ss << "Created particles:" << '\n';
122 for(ParticleIter iter=created.begin(), e=created.end(); iter!=e; ++iter)
123 ss << (*iter)->print();
124 ss << "Entering particles:" << '\n';
125 for(ParticleIter iter=entering.begin(), e=entering.end(); iter!=e; ++iter)
126 ss << (*iter)->print();
127 return ss.str();
128 }
ParticleList::const_iterator ParticleIter

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

◆ reset()

void G4INCL::FinalState::reset ( )

Definition at line 50 of file G4INCLFinalState.cc.

50 {
51 totalEnergyBeforeInteraction = 0.0;
52 validity = ValidFS;
53 outgoing.clear();
54 created.clear();
55 destroyed.clear();
56 modified.clear();
57 entering.clear();
58 }

Referenced by FinalState(), G4INCL::DecayAvatar::postInteraction(), and G4INCL::InteractionAvatar::postInteraction().

◆ setTotalEnergyBeforeInteraction()


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