G4UserStackingAction Class Reference

#include <G4UserStackingAction.hh>

Inheritance diagram for G4UserStackingAction:

G4AdjointStackingAction G4StackChecker

Public Member Functions

 G4UserStackingAction ()
virtual ~G4UserStackingAction ()
void SetStackManager (G4StackManager *value)
virtual G4ClassificationOfNewTrack ClassifyNewTrack (const G4Track *aTrack)
virtual void NewStage ()
virtual void PrepareNewEvent ()

Protected Attributes

G4StackManagerstackManager

Detailed Description

Definition at line 44 of file G4UserStackingAction.hh.


Constructor & Destructor Documentation

G4UserStackingAction::G4UserStackingAction (  ) 

Definition at line 37 of file G4UserStackingAction.cc.

References FatalException, G4Exception(), and G4ParticleTable::GetParticleTable().

00038 {
00039  if(!(G4ParticleTable::GetParticleTable()->GetReadiness()))
00040  {
00041    G4String msg;
00042    msg =  " You are instantiating G4UserStackingAction BEFORE your\n";
00043    msg += "G4VUserPhysicsList is instantiated and assigned to G4RunManager.\n";
00044    msg += " Such an instantiation is prohibited by Geant4 version 8.0. To fix this problem,\n";
00045    msg += "please make sure that your main() instantiates G4VUserPhysicsList AND\n";
00046    msg += "set it to G4RunManager before instantiating other user action classes\n";
00047    msg += "such as G4UserStackingAction.";
00048    G4Exception("G4UserStackingAction::G4UserStackingAction()",
00049               "Event0031",FatalException,msg);
00050  }
00051 }

G4UserStackingAction::~G4UserStackingAction (  )  [virtual]

Definition at line 54 of file G4UserStackingAction.cc.

00055 {;}


Member Function Documentation

G4ClassificationOfNewTrack G4UserStackingAction::ClassifyNewTrack ( const G4Track aTrack  )  [virtual]

Reimplemented in G4AdjointStackingAction, and G4StackChecker.

Definition at line 58 of file G4UserStackingAction.cc.

References fUrgent.

Referenced by G4AdjointStackingAction::ClassifyNewTrack(), G4StackManager::PrepareNewEvent(), G4StackManager::PushOneTrack(), and G4StackManager::ReClassify().

00059 {
00060   return fUrgent;
00061 }

void G4UserStackingAction::NewStage (  )  [virtual]

Reimplemented in G4AdjointStackingAction, and G4StackChecker.

Definition at line 63 of file G4UserStackingAction.cc.

Referenced by G4AdjointStackingAction::NewStage(), and G4StackManager::PopNextTrack().

00064 {;}

void G4UserStackingAction::PrepareNewEvent (  )  [virtual]

Reimplemented in G4AdjointStackingAction, and G4StackChecker.

Definition at line 66 of file G4UserStackingAction.cc.

Referenced by G4StackManager::PrepareNewEvent(), and G4AdjointStackingAction::PrepareNewEvent().

00067 {;}

void G4UserStackingAction::SetStackManager ( G4StackManager value  )  [inline]

Definition at line 52 of file G4UserStackingAction.hh.

References stackManager.

Referenced by G4StackManager::SetUserStackingAction().

00053       { stackManager = value; }


Field Documentation

G4StackManager* G4UserStackingAction::stackManager [protected]

Definition at line 50 of file G4UserStackingAction.hh.

Referenced by SetStackManager().


The documentation for this class was generated from the following files:
Generated on Mon May 27 17:53:38 2013 for Geant4 by  doxygen 1.4.7