Geant4.10
 All Data Structures Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Groups Pages
Public Member Functions
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 const & getModifiedParticles () const
 
ParticleList const & getOutgoingParticles () const
 
ParticleList const & getDestroyedParticles () const
 
ParticleList const & getCreatedParticles () const
 
ParticleList const & getEnteringParticles () 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 63 of file G4INCLFinalState.hh.

Constructor & Destructor Documentation

G4INCL::FinalState::FinalState ( )

Definition at line 41 of file G4INCLFinalState.cc.

41  :
42  totalEnergyBeforeInteraction(0.0), validity(ValidFS),
43  blockedDelta(NULL)
44  {
45  }
G4INCL::FinalState::~FinalState ( )
virtual

Definition at line 47 of file G4INCLFinalState.cc.

48  {
49  }

Member Function Documentation

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

Definition at line 66 of file G4INCLFinalState.cc.

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

67  {
68  created.push_back(p);
69  }
const char * p
Definition: xmltok.h:285
void G4INCL::FinalState::addDestroyedParticle ( Particle p)

Definition at line 61 of file G4INCLFinalState.cc.

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

62  {
63  destroyed.push_back(p);
64  }
const char * p
Definition: xmltok.h:285
void G4INCL::FinalState::addEnteringParticle ( Particle p)

Definition at line 71 of file G4INCLFinalState.cc.

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

72  {
73  entering.push_back(p);
74  }
const char * p
Definition: xmltok.h:285
void G4INCL::FinalState::addModifiedParticle ( Particle p)
void G4INCL::FinalState::addOutgoingParticle ( Particle p)

Definition at line 56 of file G4INCLFinalState.cc.

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

57  {
58  outgoing.push_back(p);
59  }
const char * p
Definition: xmltok.h:285
Particle* G4INCL::FinalState::getBlockedDelta ( )
inline

Definition at line 84 of file G4INCLFinalState.hh.

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

84 { return blockedDelta; }
ParticleList const & G4INCL::FinalState::getCreatedParticles ( ) const
ParticleList const & G4INCL::FinalState::getDestroyedParticles ( ) const

Definition at line 86 of file G4INCLFinalState.cc.

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

87  {
88  return destroyed;
89  }
ParticleList const & G4INCL::FinalState::getEnteringParticles ( ) const

Definition at line 96 of file G4INCLFinalState.cc.

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

97  {
98  return entering;
99  }
ParticleList const & G4INCL::FinalState::getModifiedParticles ( ) const
ParticleList const & G4INCL::FinalState::getOutgoingParticles ( ) const

Definition at line 81 of file G4INCLFinalState.cc.

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

82  {
83  return outgoing;
84  }
G4double G4INCL::FinalState::getTotalEnergyBeforeInteraction ( ) const
inline

Definition at line 69 of file G4INCLFinalState.hh.

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

69 { return totalEnergyBeforeInteraction; };
FinalStateValidity G4INCL::FinalState::getValidity ( ) const
inline
void G4INCL::FinalState::makeNoEnergyConservation ( )
inline
void G4INCL::FinalState::makeParticleBelowFermi ( )
inline
void G4INCL::FinalState::makeParticleBelowZero ( )
inline
void G4INCL::FinalState::makePauliBlocked ( )
inline
void G4INCL::FinalState::makeValid ( )
inline

Definition at line 87 of file G4INCLFinalState.hh.

References G4INCL::ValidFS.

87 { validity = ValidFS; }
std::string G4INCL::FinalState::print ( ) const

Definition at line 101 of file G4INCLFinalState.cc.

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

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

Definition at line 83 of file G4INCLFinalState.hh.

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

83 { blockedDelta = p; }
const char * p
Definition: xmltok.h:285
void G4INCL::FinalState::setTotalEnergyBeforeInteraction ( G4double  E)
inline

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