Skip to content
Snippets Groups Projects

Fix Geant4 configuration

Merged Florian Uhlig requested to merge f.uhlig/cbmroot:fix_geant4_config into master
Files
2
@@ -52,10 +52,12 @@ void Config()
@@ -52,10 +52,12 @@ void Config()
TString configm(gSystem->Getenv("CONFIG_DIR"));
TString configm(gSystem->Getenv("CONFIG_DIR"));
TString configm1 = configm + "/g4config.in";
TString configm1 = configm + "/g4config.in";
 
configm1.ReplaceAll("//", "/");
cout << " -I g4Config() using g4conf macro: " << configm1 << endl;
cout << " -I g4Config() using g4conf macro: " << configm1 << endl;
// set the common cuts
// set the common cuts
TString cuts = configm + "/SetCuts.C";
TString cuts = configm + "/SetCuts.C";
 
cuts.ReplaceAll("//", "/");
cout << "Physics cuts with script \n " << cuts.Data() << endl;
cout << "Physics cuts with script \n " << cuts.Data() << endl;
Int_t cut = gROOT->LoadMacro(cuts.Data());
Int_t cut = gROOT->LoadMacro(cuts.Data());
if (cut == 0) gInterpreter->ProcessLine("SetCuts()");
if (cut == 0) gInterpreter->ProcessLine("SetCuts()");
Loading