Geant4  10.02
G4StackManager Class Reference

#include <G4StackManager.hh>

+ Collaboration diagram for G4StackManager:

Public Member Functions

 G4StackManager ()
 
 ~G4StackManager ()
 
G4int PushOneTrack (G4Track *newTrack, G4VTrajectory *newTrajectory=0)
 
G4TrackPopNextTrack (G4VTrajectory **newTrajectory)
 
G4int PrepareNewEvent ()
 
void ReClassify ()
 
void SetNumberOfAdditionalWaitingStacks (G4int iAdd)
 
void TransferStackedTracks (G4ClassificationOfNewTrack origin, G4ClassificationOfNewTrack destination)
 
void TransferOneStackedTrack (G4ClassificationOfNewTrack origin, G4ClassificationOfNewTrack destination)
 
void clear ()
 
void ClearUrgentStack ()
 
void ClearWaitingStack (int i=0)
 
void ClearPostponeStack ()
 
G4int GetNTotalTrack () const
 
G4int GetNUrgentTrack () const
 
G4int GetNWaitingTrack (int i=0) const
 
G4int GetNPostponedTrack () const
 
void SetVerboseLevel (G4int const value)
 
void SetUserStackingAction (G4UserStackingAction *value)
 

Private Member Functions

const G4StackManageroperator= (const G4StackManager &right)
 
G4int operator== (const G4StackManager &right) const
 
G4int operator!= (const G4StackManager &right) const
 
G4ClassificationOfNewTrack DefaultClassification (G4Track *aTrack)
 

Private Attributes

G4UserStackingActionuserStackingAction
 
G4int verboseLevel
 
G4TrackStackurgentStack
 
G4TrackStackwaitingStack
 
G4TrackStackpostponeStack
 
G4StackingMessengertheMessenger
 
std::vector< G4TrackStack * > additionalWaitingStacks
 
G4int numberOfAdditionalWaitingStacks
 

Detailed Description

Definition at line 62 of file G4StackManager.hh.

Constructor & Destructor Documentation

G4StackManager::G4StackManager ( )

Definition at line 39 of file G4StackManager.cc.

References postponeStack, theMessenger, urgentStack, and waitingStack.

G4StackManager::~G4StackManager ( )

Definition at line 54 of file G4StackManager.cc.

References additionalWaitingStacks, G4cout, G4endl, G4TrackStack::GetMaxNTrack(), numberOfAdditionalWaitingStacks, postponeStack, theMessenger, urgentStack, userStackingAction, verboseLevel, and waitingStack.

+ Here is the call graph for this function:

Member Function Documentation

void G4StackManager::clear ( void  )

Definition at line 534 of file G4StackManager.cc.

References ClearUrgentStack(), ClearWaitingStack(), and numberOfAdditionalWaitingStacks.

Referenced by G4EventManager::AbortCurrentEvent(), export_G4StackManager(), ExN04StackingAction::NewStage(), and RE05StackingAction::NewStage().

+ Here is the call graph for this function:

+ Here is the caller graph for this function:

void G4StackManager::ClearPostponeStack ( )

Definition at line 555 of file G4StackManager.cc.

References G4TrackStack::clearAndDestroy(), and postponeStack.

Referenced by export_G4StackManager(), and G4StackingMessenger::SetNewValue().

+ Here is the call graph for this function:

+ Here is the caller graph for this function:

void G4StackManager::ClearUrgentStack ( )

Definition at line 541 of file G4StackManager.cc.

References G4TrackStack::clearAndDestroy(), and urgentStack.

Referenced by clear(), export_G4StackManager(), and G4StackingMessenger::SetNewValue().

+ Here is the call graph for this function:

+ Here is the caller graph for this function:

void G4StackManager::ClearWaitingStack ( int  i = 0)

Definition at line 546 of file G4StackManager.cc.

References additionalWaitingStacks, G4TrackStack::clearAndDestroy(), numberOfAdditionalWaitingStacks, and waitingStack.

Referenced by clear(), export_G4StackManager(), and G4StackingMessenger::SetNewValue().

+ Here is the call graph for this function:

+ Here is the caller graph for this function:

G4ClassificationOfNewTrack G4StackManager::DefaultClassification ( G4Track aTrack)
private

Definition at line 597 of file G4StackManager.cc.

References fPostpone, fPostponeToNextEvent, fUrgent, and G4Track::GetTrackStatus().

Referenced by PrepareNewEvent(), and PushOneTrack().

+ Here is the call graph for this function:

+ Here is the caller graph for this function:

G4int G4StackManager::GetNPostponedTrack ( ) const

Definition at line 581 of file G4StackManager.cc.

References G4TrackStack::GetNTrack(), and postponeStack.

Referenced by PrepareNewEvent(), and G4StackingMessenger::SetNewValue().

+ Here is the call graph for this function:

+ Here is the caller graph for this function:

G4int G4StackManager::GetNTotalTrack ( ) const

Definition at line 560 of file G4StackManager.cc.

References additionalWaitingStacks, G4TrackStack::GetNTrack(), n, numberOfAdditionalWaitingStacks, postponeStack, urgentStack, and waitingStack.

Referenced by G4EventManager::DoProcessing(), export_G4StackManager(), and StackingAction::NewStage().

+ Here is the call graph for this function:

+ Here is the caller graph for this function:

G4int G4StackManager::GetNUrgentTrack ( ) const

Definition at line 567 of file G4StackManager.cc.

References G4TrackStack::GetNTrack(), and urgentStack.

Referenced by export_G4StackManager(), RE01StackingAction::NewStage(), CCalStackingAction::NewStage(), PopNextTrack(), PushOneTrack(), ReClassify(), and G4StackingMessenger::SetNewValue().

+ Here is the call graph for this function:

+ Here is the caller graph for this function:

G4int G4StackManager::GetNWaitingTrack ( int  i = 0) const

Definition at line 572 of file G4StackManager.cc.

References additionalWaitingStacks, G4TrackStack::GetNTrack(), numberOfAdditionalWaitingStacks, and waitingStack.

Referenced by export_G4StackManager(), PopNextTrack(), and G4StackingMessenger::SetNewValue().

+ Here is the call graph for this function:

+ Here is the caller graph for this function:

G4int G4StackManager::operator!= ( const G4StackManager right) const
private

Definition at line 81 of file G4StackManager.cc.

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

Definition at line 78 of file G4StackManager.cc.

G4int G4StackManager::operator== ( const G4StackManager right) const
private

Definition at line 79 of file G4StackManager.cc.

G4Track * G4StackManager::PopNextTrack ( G4VTrajectory **  newTrajectory)

Definition at line 215 of file G4StackManager.cc.

References additionalWaitingStacks, G4cout, G4endl, GetNUrgentTrack(), GetNWaitingTrack(), G4Track::GetParentID(), G4StackedTrack::GetTrack(), G4Track::GetTrackID(), G4StackedTrack::GetTrajectory(), G4UserStackingAction::NewStage(), numberOfAdditionalWaitingStacks, G4TrackStack::PopFromStack(), G4TrackStack::TransferTo(), urgentStack, userStackingAction, verboseLevel, and waitingStack.

Referenced by G4EventManager::DoProcessing().

+ Here is the call graph for this function:

+ Here is the caller graph for this function:

G4int G4StackManager::PrepareNewEvent ( )

Definition at line 312 of file G4StackManager.cc.

References additionalWaitingStacks, G4UserStackingAction::ClassifyNewTrack(), G4TrackStack::clearAndDestroy(), DefaultClassification(), FatalException, fKill, fPostpone, fUrgent, fWaiting, G4cout, G4endl, G4Exception(), GetNPostponedTrack(), G4TrackStack::GetNTrack(), G4StackedTrack::GetTrack(), G4StackedTrack::GetTrajectory(), numberOfAdditionalWaitingStacks, G4TrackStack::PopFromStack(), postponeStack, G4UserStackingAction::PrepareNewEvent(), G4TrackStack::PushToStack(), G4Track::SetParentID(), G4Track::SetTrackID(), G4TrackStack::TransferTo(), urgentStack, userStackingAction, verboseLevel, and waitingStack.

Referenced by G4EventManager::DoProcessing().

+ Here is the call graph for this function:

+ Here is the caller graph for this function:

void G4StackManager::ReClassify ( )

Definition at line 268 of file G4StackManager.cc.

References additionalWaitingStacks, G4UserStackingAction::ClassifyNewTrack(), FatalException, fKill, fPostpone, fUrgent, fWaiting, G4endl, G4Exception(), G4TrackStack::GetNTrack(), GetNUrgentTrack(), G4StackedTrack::GetTrack(), G4StackedTrack::GetTrajectory(), numberOfAdditionalWaitingStacks, G4TrackStack::PopFromStack(), postponeStack, G4TrackStack::PushToStack(), G4TrackStack::TransferTo(), urgentStack, userStackingAction, and waitingStack.

Referenced by export_G4StackManager(), ExN04StackingAction::NewStage(), CCalStackingAction::NewStage(), and RE05StackingAction::NewStage().

+ Here is the call graph for this function:

+ Here is the caller graph for this function:

void G4StackManager::SetNumberOfAdditionalWaitingStacks ( G4int  iAdd)

Definition at line 384 of file G4StackManager.cc.

References additionalWaitingStacks, and numberOfAdditionalWaitingStacks.

Referenced by G4EventManager::SetNumberOfAdditionalWaitingStacks().

+ Here is the caller graph for this function:

void G4StackManager::SetUserStackingAction ( G4UserStackingAction value)

Definition at line 591 of file G4StackManager.cc.

References G4UserStackingAction::SetStackManager(), and userStackingAction.

Referenced by G4EventManager::SetUserAction().

+ Here is the call graph for this function:

+ Here is the caller graph for this function:

void G4StackManager::SetVerboseLevel ( G4int const  value)

Definition at line 586 of file G4StackManager.cc.

References verboseLevel.

Referenced by export_G4StackManager(), G4StackingMessenger::SetNewValue(), and G4EventManager::SetVerboseLevel().

+ Here is the caller graph for this function:

void G4StackManager::TransferOneStackedTrack ( G4ClassificationOfNewTrack  origin,
G4ClassificationOfNewTrack  destination 
)

Definition at line 465 of file G4StackManager.cc.

References additionalWaitingStacks, fKill, fPostpone, fUrgent, fWaiting, G4TrackStack::GetNTrack(), G4StackedTrack::GetTrack(), G4StackedTrack::GetTrajectory(), numberOfAdditionalWaitingStacks, G4TrackStack::PopFromStack(), postponeStack, G4TrackStack::PushToStack(), urgentStack, and waitingStack.

Referenced by RE01StackingAction::NewStage().

+ Here is the call graph for this function:

+ Here is the caller graph for this function:

void G4StackManager::TransferStackedTracks ( G4ClassificationOfNewTrack  origin,
G4ClassificationOfNewTrack  destination 
)

Definition at line 404 of file G4StackManager.cc.

References additionalWaitingStacks, G4TrackStack::clearAndDestroy(), fKill, fPostpone, fUrgent, fWaiting, numberOfAdditionalWaitingStacks, postponeStack, G4TrackStack::TransferTo(), urgentStack, and waitingStack.

Referenced by RE01StackingAction::NewStage().

+ Here is the call graph for this function:

+ Here is the caller graph for this function:

Member Data Documentation

G4StackingMessenger* G4StackManager::theMessenger
private

Definition at line 119 of file G4StackManager.hh.

Referenced by G4StackManager(), and ~G4StackManager().

G4UserStackingAction* G4StackManager::userStackingAction
private
G4int G4StackManager::verboseLevel
private

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