// =============================
// load Geant4 and AliRoot steer libraries
- gROOT->LoadMacro("g4libs.C");
+ if (!gInterpreter->IsLoaded("g4libs.C")) gROOT->LoadMacro("g4libs.C");
gInterpreter->ProcessLine("g4libs()");
gInterpreter->ProcessLine("steerlibs()");
// Create Geant4
- gROOT->LoadMacro("g4menu.C");
+ if (!gInterpreter->IsLoaded("g4menu.C")) gROOT->LoadMacro("g4menu.C");
gInterpreter->ProcessLine("CreateGeant4()");
// Physics process control
// Exclude detectors that do not work with Geant4
iRICH=0;
- iZDC=0;
iCASTOR=0;
// Detectors with temporary problem
iMUON=0;
void g4menu()
{
// load Geant4 libraries
- gROOT->LoadMacro("g4libs.C");
+ if (!gInterpreter->IsLoaded("g4libs.C")) gROOT->LoadMacro("g4libs.C");
gInterpreter->ProcessLine("g4libs()");
// load AliRoot core libraries