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
@@ -29,31 +29,22 @@
// --------------------------------------------------------------------
#include "G4VUserPrimaryGeneratorAction.hh"
#include "G4ParticleTable.hh"
#include "globals.hh"
// --------------------------------------------------------------------
G4VUserPrimaryGeneratorAction::G4VUserPrimaryGeneratorAction()
{
if(!(G4ParticleTable::GetParticleTable()->GetReadiness()))
{
if (!(G4ParticleTable::GetParticleTable()->GetReadiness())) {
G4String msg;
msg = " You are instantiating G4VUserPrimaryGeneratorAction 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 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 G4VUserPrimaryParticleGeneratorAction.";
G4Exception(
"G4VUserPrimaryGeneratorAction::G4VUserPrimaryGeneratorAction()",
"Run0061", FatalException, msg);
G4Exception("G4VUserPrimaryGeneratorAction::G4VUserPrimaryGeneratorAction()", "Run0061",
FatalException, msg);
}
}
// --------------------------------------------------------------------
G4VUserPrimaryGeneratorAction::~G4VUserPrimaryGeneratorAction()
{
}