G4UserSteppingAction Class Reference

#include <G4UserSteppingAction.hh>

Inheritance diagram for G4UserSteppingAction:

G4AdjointSteppingAction G4MSSteppingAction G4RTSteppingAction

Public Member Functions

 G4UserSteppingAction ()
virtual ~G4UserSteppingAction ()
void SetSteppingManagerPointer (G4SteppingManager *pValue)
virtual void UserSteppingAction (const G4Step *)

Protected Attributes

G4SteppingManagerfpSteppingManager

Detailed Description

Definition at line 51 of file G4UserSteppingAction.hh.


Constructor & Destructor Documentation

G4UserSteppingAction::G4UserSteppingAction (  ) 

Definition at line 49 of file G4UserSteppingAction.cc.

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

00051    : fpSteppingManager(0)
00052 {
00053  if(!(G4ParticleTable::GetParticleTable()->GetReadiness()))
00054  {
00055    G4String msg;
00056    msg =  " You are instantiating G4UserSteppingAction BEFORE your\n";
00057    msg += "G4VUserPhysicsList is instantiated and assigned to G4RunManager.\n";
00058    msg += " Such an instantiation is prohibited since Geant4 version 8.0. To fix this problem,\n";
00059    msg += "please make sure that your main() instantiates G4VUserPhysicsList AND\n";
00060    msg += "set it to G4RunManager before instantiating other user action classes\n";
00061    msg += "such as G4UserSteppingAction.";
00062    G4Exception("G4UserSteppingAction::G4UserSteppingAction()",
00063                "Tracking0002", FatalException, msg);
00064  }
00065 }

G4UserSteppingAction::~G4UserSteppingAction (  )  [virtual]

Definition at line 68 of file G4UserSteppingAction.cc.

00070 {;}


Member Function Documentation

void G4UserSteppingAction::SetSteppingManagerPointer ( G4SteppingManager pValue  ) 

Definition at line 74 of file G4UserSteppingAction.cc.

References fpSteppingManager.

Referenced by G4TrackingManager::SetUserAction().

00076 {
00077   fpSteppingManager = pValue;
00078 }  

virtual void G4UserSteppingAction::UserSteppingAction ( const G4Step  )  [inline, virtual]

Reimplemented in G4MSSteppingAction, G4AdjointSteppingAction, and G4RTSteppingAction.

Definition at line 65 of file G4UserSteppingAction.hh.

Referenced by G4SteppingManager::Stepping(), and G4AdjointSteppingAction::UserSteppingAction().

00065 {;}


Field Documentation

G4SteppingManager* G4UserSteppingAction::fpSteppingManager [protected]

Definition at line 72 of file G4UserSteppingAction.hh.

Referenced by SetSteppingManagerPointer().


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