Geant4  10.03.p03
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Groups Pages
G4UserStackingAction Class Reference

#include <G4UserStackingAction.hh>

Inheritance diagram for G4UserStackingAction:
Collaboration diagram for G4UserStackingAction:

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.

38 {
39  if(!(G4ParticleTable::GetParticleTable()->GetReadiness()))
40  {
41  G4String msg;
42  msg = " You are instantiating G4UserStackingAction BEFORE your\n";
43  msg += "G4VUserPhysicsList is instantiated and assigned to G4RunManager.\n";
44  msg += " Such an instantiation is prohibited by Geant4 version 8.0. To fix this problem,\n";
45  msg += "please make sure that your main() instantiates G4VUserPhysicsList AND\n";
46  msg += "set it to G4RunManager before instantiating other user action classes\n";
47  msg += "such as G4UserStackingAction.";
48  G4Exception("G4UserStackingAction::G4UserStackingAction()",
49  "Event0031",FatalException,msg);
50  }
51 }
void G4Exception(const char *originOfException, const char *exceptionCode, G4ExceptionSeverity severity, const char *comments)
Definition: G4Exception.cc:41
static G4ParticleTable * GetParticleTable()

Here is the call graph for this function:

G4UserStackingAction::~G4UserStackingAction ( )
virtual

Definition at line 54 of file G4UserStackingAction.cc.

55 {;}

Member Function Documentation

void G4UserStackingAction::SetStackManager ( G4StackManager value)
inline

Definition at line 52 of file G4UserStackingAction.hh.

53  { stackManager = value; }
const XML_Char int const XML_Char * value
Definition: expat.h:331
G4StackManager * stackManager

Here is the caller graph for this function:

Member Data Documentation

G4StackManager* G4UserStackingAction::stackManager
protected

Definition at line 50 of file G4UserStackingAction.hh.


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