Skip to content

Commit

Permalink
Override /afs/cern.ch/user/r/rpreghen/ALICE/AliDPG/MC/Geant4Config.C …
Browse files Browse the repository at this point in the history
…if Geant4Config.C found in current working directory
  • Loading branch information
preghenella committed Aug 7, 2017
1 parent 50d4c4c commit e224410
Showing 1 changed file with 7 additions and 1 deletion.
8 changes: 7 additions & 1 deletion MC/Config.C
Original file line number Diff line number Diff line change
Expand Up @@ -85,7 +85,13 @@ Config()

/* configure Geant4 if requested */
if (isGeant4) {
gROOT->LoadMacro("$ALIDPG_ROOT/MC/Geant4Config.C");
Int_t error;
TString geant4config_macro = "$ALIDPG_ROOT/MC/Geant4Config.C";
if (gROOT->LoadMacro("Geant4Config.C", &error, kTRUE) == 0) {
printf(">>>>> Genat4Config.C macro detected in CWD, using that one \n");
geant4config_macro = "Geant4Config.C";
}
gROOT->LoadMacro(geant4config_macro.Data());
Geant4Config();
}

Expand Down

0 comments on commit e224410

Please sign in to comment.