Geant4  10.01.p01
G4CascadeHistory Class Reference

#include <G4CascadeHistory.hh>

Classes

struct  HistoryEntry
 

Public Member Functions

 G4CascadeHistory (G4int verbose=0)
 
 ~G4CascadeHistory ()
 
void setVerboseLevel (G4int verbose=0)
 
void Clear ()
 
G4int AddEntry (G4CascadParticle &cpart)
 
G4int AddVertex (G4CascadParticle &cpart, std::vector< G4CascadParticle > &daug)
 
void DropEntry (const G4CascadParticle &cpart)
 
void Print (std::ostream &os) const
 

Protected Member Functions

void AssignHistoryID (G4CascadParticle &cpart)
 
void FillDaughters (G4int iEntry, std::vector< G4CascadParticle > &daug)
 
void PrintEntry (std::ostream &os, G4int iEntry) const
 
void PrintParticle (std::ostream &os, const G4CascadParticle &cpart) const
 
G4bool PrintingDone (G4int iEntry) const
 
const char * GuessTarget (const HistoryEntry &entry) const
 
G4int size () const
 

Private Member Functions

 G4CascadeHistory (const G4CascadeHistory &rhs)
 
G4CascadeHistoryoperator= (const G4CascadeHistory &rhs)
 

Private Attributes

G4int verboseLevel
 
std::vector< HistoryEntrytheHistory
 
std::set< G4intentryPrinted
 

Detailed Description

Definition at line 41 of file G4CascadeHistory.hh.

Constructor & Destructor Documentation

G4CascadeHistory::G4CascadeHistory ( G4int  verbose = 0)
inline

Definition at line 43 of file G4CascadeHistory.hh.

G4CascadeHistory::~G4CascadeHistory ( )
inline

Definition at line 44 of file G4CascadeHistory.hh.

G4CascadeHistory::G4CascadeHistory ( const G4CascadeHistory rhs)
private

Member Function Documentation

G4int G4CascadeHistory::AddEntry ( G4CascadParticle cpart)

Definition at line 106 of file G4CascadeHistory.cc.

References AssignHistoryID(), G4cout, G4endl, G4CascadParticle::getHistoryId(), size(), theHistory, and verboseLevel.

Referenced by AddVertex(), FillDaughters(), and G4IntraNucleiCascader::generateCascade().

+ Here is the call graph for this function:

+ Here is the caller graph for this function:

G4int G4CascadeHistory::AddVertex ( G4CascadParticle cpart,
std::vector< G4CascadParticle > &  daug 
)

Definition at line 59 of file G4CascadeHistory.cc.

References AddEntry(), FillDaughters(), G4cout, G4endl, theHistory, and verboseLevel.

Referenced by G4IntraNucleiCascader::generateCascade().

+ Here is the call graph for this function:

+ Here is the caller graph for this function:

void G4CascadeHistory::AssignHistoryID ( G4CascadParticle cpart)
protected

Definition at line 137 of file G4CascadeHistory.cc.

References G4cout, G4endl, G4CascadParticle::getHistoryId(), G4CascadParticle::setHistoryId(), size(), and verboseLevel.

Referenced by AddEntry().

+ Here is the call graph for this function:

+ Here is the caller graph for this function:

void G4CascadeHistory::Clear ( )

Definition at line 50 of file G4CascadeHistory.cc.

References entryPrinted, G4cout, G4endl, theHistory, and verboseLevel.

Referenced by G4IntraNucleiCascader::newCascade().

+ Here is the caller graph for this function:

void G4CascadeHistory::DropEntry ( const G4CascadParticle cpart)

Definition at line 127 of file G4CascadeHistory.cc.

References G4cout, G4endl, G4CascadParticle::getHistoryId(), theHistory, and verboseLevel.

Referenced by G4IntraNucleiCascader::processTrappedParticle().

+ Here is the call graph for this function:

+ Here is the caller graph for this function:

void G4CascadeHistory::FillDaughters ( G4int  iEntry,
std::vector< G4CascadParticle > &  daug 
)
protected

Definition at line 80 of file G4CascadeHistory.cc.

References AddEntry(), G4cout, G4endl, theHistory, and verboseLevel.

Referenced by AddVertex().

+ Here is the call graph for this function:

+ Here is the caller graph for this function:

const char * G4CascadeHistory::GuessTarget ( const HistoryEntry entry) const
protected

Definition at line 205 of file G4CascadeHistory.cc.

References G4InuclElementaryParticle::baryon(), G4CascadeHistory::HistoryEntry::cpart, G4CascadeHistory::HistoryEntry::dId, G4cout, G4endl, G4InuclParticle::getCharge(), G4CascadParticle::getParticle(), G4CascadeHistory::HistoryEntry::n, theHistory, and verboseLevel.

Referenced by PrintEntry().

+ Here is the call graph for this function:

+ Here is the caller graph for this function:

G4CascadeHistory& G4CascadeHistory::operator= ( const G4CascadeHistory rhs)
private
void G4CascadeHistory::Print ( std::ostream &  os) const

Definition at line 156 of file G4CascadeHistory.cc.

References PrintEntry(), PrintingDone(), size(), and verboseLevel.

Referenced by G4IntraNucleiCascader::collide(), operator<<(), and G4IntraNucleiCascader::rescatter().

+ Here is the call graph for this function:

+ Here is the caller graph for this function:

void G4CascadeHistory::PrintEntry ( std::ostream &  os,
G4int  iEntry 
) const
protected

Definition at line 169 of file G4CascadeHistory.cc.

References G4CascadeHistory::HistoryEntry::cpart, G4CascadeHistory::HistoryEntry::dId, entryPrinted, G4CascadParticle::getCurrentZone(), G4InuclParticle::getDefinition(), G4CascadParticle::getGeneration(), G4CascadParticle::getMomentum(), G4CascadParticle::getParticle(), G4ParticleDefinition::GetParticleName(), G4CascadParticle::getPosition(), GuessTarget(), left, G4CascadeHistory::HistoryEntry::n, PrintingDone(), size(), and theHistory.

Referenced by Print().

+ Here is the call graph for this function:

+ Here is the caller graph for this function:

G4bool G4CascadeHistory::PrintingDone ( G4int  iEntry) const
inlineprotected

Definition at line 83 of file G4CascadeHistory.hh.

References entryPrinted.

Referenced by Print(), and PrintEntry().

+ Here is the caller graph for this function:

void G4CascadeHistory::PrintParticle ( std::ostream &  os,
const G4CascadParticle cpart 
) const
protected
void G4CascadeHistory::setVerboseLevel ( G4int  verbose = 0)
inline

Definition at line 46 of file G4CascadeHistory.hh.

References verboseLevel.

Referenced by G4IntraNucleiCascader::setVerboseLevel().

+ Here is the caller graph for this function:

G4int G4CascadeHistory::size ( ) const
inlineprotected

Definition at line 90 of file G4CascadeHistory.hh.

References theHistory.

Referenced by AddEntry(), AssignHistoryID(), Print(), and PrintEntry().

+ Here is the caller graph for this function:

Member Data Documentation

std::set<G4int> G4CascadeHistory::entryPrinted
mutableprivate

Definition at line 96 of file G4CascadeHistory.hh.

Referenced by Clear(), PrintEntry(), and PrintingDone().

std::vector<HistoryEntry> G4CascadeHistory::theHistory
private
G4int G4CascadeHistory::verboseLevel
private

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