Geant4  10.03.p01
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Pages
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

G4INCL::FinalState::FinalState ( )

Definition at line 42 of file G4INCLFinalState.cc.

42  {
43  reset();
44  }

Here is the call graph for this function:

G4INCL::FinalState::~FinalState ( )
virtual

Definition at line 46 of file G4INCLFinalState.cc.

47  {
48  }

Member Function Documentation

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

Definition at line 75 of file G4INCLFinalState.cc.

76  {
77  created.push_back(p);
78  }
const char * p
Definition: xmltok.h:285

Here is the caller graph for this function:

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

Definition at line 70 of file G4INCLFinalState.cc.

71  {
72  destroyed.push_back(p);
73  }
const char * p
Definition: xmltok.h:285

Here is the caller graph for this function:

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

Definition at line 80 of file G4INCLFinalState.cc.

81  {
82  entering.push_back(p);
83  }
const char * p
Definition: xmltok.h:285

Here is the caller graph for this function:

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

Definition at line 60 of file G4INCLFinalState.cc.

61  {
62  modified.push_back(p);
63  }
const char * p
Definition: xmltok.h:285

Here is the caller graph for this function:

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

Definition at line 65 of file G4INCLFinalState.cc.

66  {
67  outgoing.push_back(p);
68  }
const char * p
Definition: xmltok.h:285

Here is the caller graph for this function:

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:

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

Definition at line 95 of file G4INCLFinalState.cc.

96  {
97  return destroyed;
98  }

Here is the caller graph for this function:

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:

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:

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:

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

Definition at line 72 of file G4INCLFinalState.hh.

72 { return totalEnergyBeforeInteraction; };

Here is the caller graph for this function:

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

Definition at line 86 of file G4INCLFinalState.hh.

86 { return validity; }

Here is the caller graph for this function:

void G4INCL::FinalState::makeNoEnergyConservation ( )
inline

Definition at line 89 of file G4INCLFinalState.hh.

Here is the caller graph for this function:

void G4INCL::FinalState::makeParticleBelowFermi ( )
inline

Definition at line 90 of file G4INCLFinalState.hh.

Here is the caller graph for this function:

void G4INCL::FinalState::makeParticleBelowZero ( )
inline

Definition at line 91 of file G4INCLFinalState.hh.

Here is the caller graph for this function:

void G4INCL::FinalState::makePauliBlocked ( )
inline

Definition at line 88 of file G4INCLFinalState.hh.

Here is the caller graph for this function:

void G4INCL::FinalState::makeValid ( )
inline

Definition at line 87 of file G4INCLFinalState.hh.

87 { validity = ValidFS; }
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

Here is the caller graph for this function:

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  }

Here is the caller graph for this function:

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

Definition at line 71 of file G4INCLFinalState.hh.

71 { totalEnergyBeforeInteraction = E; };

Here is the caller graph for this function:


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