Geant4  10.02.p03
G4INCL::FinalState Class Reference

#include <G4INCLFinalState.hh>

Collaboration diagram for G4INCL::FinalState:

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
 

Private Attributes

ParticleList outgoing
 
ParticleList created
 
ParticleList destroyed
 
ParticleList modified
 
ParticleList entering
 
G4double totalEnergyBeforeInteraction
 
FinalStateValidity validity
 

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  }
Here is the call graph for this function:

◆ ~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  }
Here is the caller graph for this function:

◆ addDestroyedParticle()

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

Definition at line 70 of file G4INCLFinalState.cc.

71  {
72  destroyed.push_back(p);
73  }
ParticleList destroyed
Here is the caller graph for this function:

◆ addEnteringParticle()

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

Definition at line 80 of file G4INCLFinalState.cc.

81  {
82  entering.push_back(p);
83  }
Here is the caller graph for this function:

◆ addModifiedParticle()

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

Definition at line 60 of file G4INCLFinalState.cc.

61  {
62  modified.push_back(p);
63  }
Here is the caller graph for this function:

◆ addOutgoingParticle()

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

Definition at line 65 of file G4INCLFinalState.cc.

66  {
67  outgoing.push_back(p);
68  }
Here is the caller graph for this function:

◆ getCreatedParticles()

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

Definition at line 100 of file G4INCLFinalState.cc.

101  {
102  return created;
103  }
Here is the caller graph for this function:

◆ getDestroyedParticles()

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

Definition at line 95 of file G4INCLFinalState.cc.

96  {
97  return destroyed;
98  }
ParticleList destroyed
Here is the caller graph for this function:

◆ getEnteringParticles()

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

Definition at line 105 of file G4INCLFinalState.cc.

106  {
107  return entering;
108  }
Here is the caller graph for this function:

◆ getModifiedParticles()

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

Definition at line 85 of file G4INCLFinalState.cc.

86  {
87  return modified;
88  }
Here is the caller graph for this function:

◆ getOutgoingParticles()

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

Definition at line 90 of file G4INCLFinalState.cc.

91  {
92  return outgoing;
93  }
Here is the caller graph for this function:

◆ getTotalEnergyBeforeInteraction()

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

Definition at line 72 of file G4INCLFinalState.hh.

G4double totalEnergyBeforeInteraction
Here is the call graph for this function:
Here is the caller graph for this function:

◆ getValidity()

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

Definition at line 86 of file G4INCLFinalState.hh.

86 { return validity; }
FinalStateValidity validity
Here is the caller graph for this function:

◆ makeNoEnergyConservation()

void G4INCL::FinalState::makeNoEnergyConservation ( )
inline

Definition at line 89 of file G4INCLFinalState.hh.

Here is the caller graph for this function:

◆ makeParticleBelowFermi()

void G4INCL::FinalState::makeParticleBelowFermi ( )
inline

Definition at line 90 of file G4INCLFinalState.hh.

Here is the caller graph for this function:

◆ makeParticleBelowZero()

void G4INCL::FinalState::makeParticleBelowZero ( )
inline

Definition at line 91 of file G4INCLFinalState.hh.

Here is the call graph for this function:
Here is the caller graph for this function:

◆ makePauliBlocked()

void G4INCL::FinalState::makePauliBlocked ( )
inline

Definition at line 88 of file G4INCLFinalState.hh.

Here is the caller graph for this function:

◆ makeValid()

void G4INCL::FinalState::makeValid ( )
inline

Definition at line 87 of file G4INCLFinalState.hh.

◆ 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 destroyed
ParticleList::const_iterator ParticleIter
Here is the caller graph for this function:

◆ reset()

void G4INCL::FinalState::reset ( )

Definition at line 50 of file G4INCLFinalState.cc.

50  {
52  validity = ValidFS;
53  outgoing.clear();
54  created.clear();
55  destroyed.clear();
56  modified.clear();
57  entering.clear();
58  }
G4double totalEnergyBeforeInteraction
FinalStateValidity validity
ParticleList destroyed
Here is the caller graph for this function:

◆ setTotalEnergyBeforeInteraction()

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

Definition at line 71 of file G4INCLFinalState.hh.

Here is the caller graph for this function:

Member Data Documentation

◆ created

ParticleList G4INCL::FinalState::created
private

Definition at line 96 of file G4INCLFinalState.hh.

◆ destroyed

ParticleList G4INCL::FinalState::destroyed
private

Definition at line 96 of file G4INCLFinalState.hh.

◆ entering

ParticleList G4INCL::FinalState::entering
private

Definition at line 96 of file G4INCLFinalState.hh.

◆ modified

ParticleList G4INCL::FinalState::modified
private

Definition at line 96 of file G4INCLFinalState.hh.

◆ outgoing

ParticleList G4INCL::FinalState::outgoing
private

Definition at line 96 of file G4INCLFinalState.hh.

◆ totalEnergyBeforeInteraction

G4double G4INCL::FinalState::totalEnergyBeforeInteraction
private

Definition at line 97 of file G4INCLFinalState.hh.

◆ validity

FinalStateValidity G4INCL::FinalState::validity
private

Definition at line 98 of file G4INCLFinalState.hh.


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