Skip to content

Commit eea1200

Browse files
authored
change name of environment variable (#1788)
1 parent 039a4e0 commit eea1200

File tree

1 file changed

+5
-5
lines changed

1 file changed

+5
-5
lines changed

MC/config/PWGEM/external/generator/GeneratorEMCocktailV2.C

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -435,11 +435,11 @@ GenerateEMCocktail(Int_t collisionsSystem = GeneratorParamEMlibV2::kpp7TeV,
435435
Double_t yGenRange = 0.1, TString useLMeeDecaytable = "",
436436
Int_t weightingMode = 1) {
437437

438-
TString O2DPG_ROOT = TString(getenv("O2DPG_ROOT"));
439-
paramFile=paramFile.ReplaceAll("$O2DPG_ROOT",O2DPG_ROOT);
440-
paramFile=paramFile.ReplaceAll("${O2DPG_ROOT}",O2DPG_ROOT);
441-
useLMeeDecaytable=useLMeeDecaytable.ReplaceAll("$O2DPG_ROOT",O2DPG_ROOT);
442-
useLMeeDecaytable=useLMeeDecaytable.ReplaceAll("${O2DPG_ROOT}",O2DPG_ROOT);
438+
TString O2DPG_MC_CONFIG_ROOT = TString(getenv("O2DPG_MC_CONFIG_ROOT"));
439+
paramFile=paramFile.ReplaceAll("$O2DPG_MC_CONFIG_ROOT",O2DPG_MC_CONFIG_ROOT);
440+
paramFile=paramFile.ReplaceAll("${O2DPG_MC_CONFIG_ROOT}",O2DPG_MC_CONFIG_ROOT);
441+
useLMeeDecaytable=useLMeeDecaytable.ReplaceAll("$O2DPG_MC_CONFIG_ROOT",O2DPG_MC_CONFIG_ROOT);
442+
useLMeeDecaytable=useLMeeDecaytable.ReplaceAll("${O2DPG_MC_CONFIG_ROOT}",O2DPG_MC_CONFIG_ROOT);
443443
if (paramFile.BeginsWith("alien://")){
444444
TGrid::Connect("alien://");
445445
}

0 commit comments

Comments
 (0)