Geant4  10.01.p03
G4SmartTrackStack Class Reference

#include <G4SmartTrackStack.hh>

+ Collaboration diagram for G4SmartTrackStack:

Public Member Functions

 G4SmartTrackStack ()
 
 ~G4SmartTrackStack ()
 
void PushToStack (const G4StackedTrack &aStackedTrack)
 
G4StackedTrack PopFromStack ()
 
void clear ()
 
void clearAndDestroy ()
 
void TransferTo (G4TrackStack *aStack)
 
G4double getEnergyOfStack (G4TrackStack *aTrackStack)
 
void dumpStatistics ()
 
G4int GetNTrack () const
 
G4int GetMaxNTrack () const
 

Private Member Functions

const G4SmartTrackStackoperator= (const G4SmartTrackStack &right)
 
G4int operator== (const G4SmartTrackStack &right) const
 
G4int operator!= (const G4SmartTrackStack &right) const
 
G4int n_stackedTrack () const
 

Private Attributes

G4int fTurn
 
G4int nTurn
 
G4double energies [5]
 
G4TrackStackstacks [5]
 
G4int maxNTracks
 
G4int nTracks
 

Detailed Description

Definition at line 46 of file G4SmartTrackStack.hh.

Constructor & Destructor Documentation

G4SmartTrackStack::G4SmartTrackStack ( )

Definition at line 45 of file G4SmartTrackStack.cc.

References energies, nTurn, and stacks.

G4SmartTrackStack::~G4SmartTrackStack ( )

Definition at line 55 of file G4SmartTrackStack.cc.

References nTurn, and stacks.

Member Function Documentation

void G4SmartTrackStack::clear ( void  )

Definition at line 142 of file G4SmartTrackStack.cc.

References energies, fTurn, nTracks, nTurn, and stacks.

void G4SmartTrackStack::clearAndDestroy ( )

Definition at line 152 of file G4SmartTrackStack.cc.

References G4TrackStack::clearAndDestroy(), energies, fTurn, nTracks, nTurn, and stacks.

+ Here is the call graph for this function:

void G4SmartTrackStack::dumpStatistics ( )

Definition at line 34 of file G4SmartTrackStack.cc.

References G4cerr, G4endl, G4TrackStack::GetNTrack(), G4TrackStack::getTotalEnergy(), nTurn, and stacks.

+ Here is the call graph for this function:

G4double G4SmartTrackStack::getEnergyOfStack ( G4TrackStack aTrackStack)
G4int G4SmartTrackStack::GetMaxNTrack ( ) const
inline

Definition at line 82 of file G4SmartTrackStack.hh.

References maxNTracks.

G4int G4SmartTrackStack::GetNTrack ( ) const
inline

Definition at line 81 of file G4SmartTrackStack.hh.

References nTracks.

Referenced by PopFromStack(), and PushToStack().

+ Here is the caller graph for this function:

G4int G4SmartTrackStack::n_stackedTrack ( ) const
inlineprivate

Definition at line 85 of file G4SmartTrackStack.hh.

References G4TrackStack::GetNTrack().

+ Here is the call graph for this function:

int G4SmartTrackStack::operator!= ( const G4SmartTrackStack right) const
private

Definition at line 71 of file G4SmartTrackStack.cc.

const G4SmartTrackStack & G4SmartTrackStack::operator= ( const G4SmartTrackStack right)
private

Definition at line 63 of file G4SmartTrackStack.cc.

int G4SmartTrackStack::operator== ( const G4SmartTrackStack right) const
private

Definition at line 67 of file G4SmartTrackStack.cc.

G4StackedTrack G4SmartTrackStack::PopFromStack ( )

Definition at line 83 of file G4SmartTrackStack.cc.

References energies, fTurn, G4Track::GetDynamicParticle(), GetNTrack(), G4DynamicParticle::GetTotalEnergy(), G4StackedTrack::GetTrack(), nTracks, nTurn, G4TrackStack::PopFromStack(), and stacks.

+ Here is the call graph for this function:

void G4SmartTrackStack::PushToStack ( const G4StackedTrack aStackedTrack)

Definition at line 108 of file G4SmartTrackStack.cc.

References electronCode, energies, fTurn, gammaCode, G4Track::GetDynamicParticle(), G4TrackStack::GetNTrack(), GetNTrack(), G4Track::GetParentID(), G4DynamicParticle::GetPDGcode(), G4TrackStack::GetSafetyValve1(), G4TrackStack::GetSafetyValve2(), G4DynamicParticle::GetTotalEnergy(), G4StackedTrack::GetTrack(), maxNTracks, neutronCode, nTracks, positronCode, G4TrackStack::PushToStack(), and stacks.

Referenced by G4TrackStack::TransferTo().

+ Here is the call graph for this function:

+ Here is the caller graph for this function:

void G4SmartTrackStack::TransferTo ( G4TrackStack aStack)

Definition at line 75 of file G4SmartTrackStack.cc.

References nTracks, nTurn, stacks, and G4TrackStack::TransferTo().

+ Here is the call graph for this function:

Member Data Documentation

G4double G4SmartTrackStack::energies[5]
private
G4int G4SmartTrackStack::fTurn
private

Definition at line 68 of file G4SmartTrackStack.hh.

Referenced by clear(), clearAndDestroy(), PopFromStack(), and PushToStack().

G4int G4SmartTrackStack::maxNTracks
private

Definition at line 77 of file G4SmartTrackStack.hh.

Referenced by GetMaxNTrack(), and PushToStack().

G4int G4SmartTrackStack::nTracks
private
G4int G4SmartTrackStack::nTurn
private
G4TrackStack* G4SmartTrackStack::stacks[5]
private

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