Skip to content

Commit

Permalink
change name of environment variable (#1788)
Browse files Browse the repository at this point in the history
  • Loading branch information
DanielSamitz authored Nov 7, 2024
1 parent 039a4e0 commit eea1200
Showing 1 changed file with 5 additions and 5 deletions.
10 changes: 5 additions & 5 deletions MC/config/PWGEM/external/generator/GeneratorEMCocktailV2.C
Original file line number Diff line number Diff line change
Expand Up @@ -435,11 +435,11 @@ GenerateEMCocktail(Int_t collisionsSystem = GeneratorParamEMlibV2::kpp7TeV,
Double_t yGenRange = 0.1, TString useLMeeDecaytable = "",
Int_t weightingMode = 1) {

TString O2DPG_ROOT = TString(getenv("O2DPG_ROOT"));
paramFile=paramFile.ReplaceAll("$O2DPG_ROOT",O2DPG_ROOT);
paramFile=paramFile.ReplaceAll("${O2DPG_ROOT}",O2DPG_ROOT);
useLMeeDecaytable=useLMeeDecaytable.ReplaceAll("$O2DPG_ROOT",O2DPG_ROOT);
useLMeeDecaytable=useLMeeDecaytable.ReplaceAll("${O2DPG_ROOT}",O2DPG_ROOT);
TString O2DPG_MC_CONFIG_ROOT = TString(getenv("O2DPG_MC_CONFIG_ROOT"));
paramFile=paramFile.ReplaceAll("$O2DPG_MC_CONFIG_ROOT",O2DPG_MC_CONFIG_ROOT);
paramFile=paramFile.ReplaceAll("${O2DPG_MC_CONFIG_ROOT}",O2DPG_MC_CONFIG_ROOT);
useLMeeDecaytable=useLMeeDecaytable.ReplaceAll("$O2DPG_MC_CONFIG_ROOT",O2DPG_MC_CONFIG_ROOT);
useLMeeDecaytable=useLMeeDecaytable.ReplaceAll("${O2DPG_MC_CONFIG_ROOT}",O2DPG_MC_CONFIG_ROOT);
if (paramFile.BeginsWith("alien://")){
TGrid::Connect("alien://");
}
Expand Down

0 comments on commit eea1200

Please sign in to comment.