Import Geant4 11.2.0.beta source tree
This commit is contained in:
@@ -32,6 +32,7 @@
|
||||
// --------------------------------------------------------------------
|
||||
|
||||
#include "G4UserSteppingAction.hh"
|
||||
|
||||
#include "G4ParticleTable.hh"
|
||||
#include "globals.hh"
|
||||
|
||||
@@ -39,29 +40,22 @@
|
||||
G4UserSteppingAction::G4UserSteppingAction()
|
||||
/////////////////////////////////////////////////////////
|
||||
{
|
||||
if(!(G4ParticleTable::GetParticleTable()->GetReadiness()))
|
||||
{
|
||||
if (! (G4ParticleTable::GetParticleTable()->GetReadiness())) {
|
||||
G4String msg;
|
||||
msg = " You are instantiating G4UserSteppingAction BEFORE your\n";
|
||||
msg = " You are instantiating G4UserSteppingAction BEFORE your\n";
|
||||
msg += "G4VUserPhysicsList is instantiated and assigned to G4RunManager.\n";
|
||||
msg += " Such an instantiation is prohibited. To fix this problem,\n";
|
||||
msg += "please make sure that your main() instantiates G4VUserPhysicsList AND\n";
|
||||
msg += "set it to G4RunManager before instantiating other user action classes\n";
|
||||
msg += "such as G4UserSteppingAction.";
|
||||
G4Exception("G4UserSteppingAction::G4UserSteppingAction()",
|
||||
"Tracking0002", FatalException, msg);
|
||||
G4Exception(
|
||||
"G4UserSteppingAction::G4UserSteppingAction()", "Tracking0002", FatalException, msg);
|
||||
}
|
||||
}
|
||||
|
||||
/////////////////////////////////////////////////////////
|
||||
G4UserSteppingAction::~G4UserSteppingAction()
|
||||
/////////////////////////////////////////////////////////
|
||||
{
|
||||
}
|
||||
|
||||
/////////////////////////////////////////////////////////
|
||||
void G4UserSteppingAction::SetSteppingManagerPointer(G4SteppingManager* pValue)
|
||||
/////////////////////////////////////////////////////////
|
||||
{
|
||||
fpSteppingManager = pValue;
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user