Import Geant4 11.2.0.beta source tree

This commit is contained in:
Gabriele Cosmo
2023-06-30 09:09:57 +02:00
parent aef78ca386
commit dd1f179cda
3780 changed files with 212808 additions and 142780 deletions
+6 -12
View File
@@ -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;
}
}