Skip to content

Commit

Permalink
Return 0 in case of wrong process
Browse files Browse the repository at this point in the history
  • Loading branch information
ekryshen authored and miweberSMI committed Jul 21, 2017
1 parent a4314cf commit aa131c3
Showing 1 changed file with 11 additions and 5 deletions.
16 changes: 11 additions & 5 deletions MC/CustomGenerators/PWGUD/Dime.C
Original file line number Diff line number Diff line change
@@ -1,20 +1,26 @@
AliGenerator* GeneratorCustom() {
printf("Starting DIME generator\n");
gSystem->Load("libEVGEN");
gSystem->Load("libTDime");
gSystem->Load("libdime");

TString proc;
if (processConfig.Contains("Pipm")) proc = "pipm";
else if (processConfig.Contains("Kpkm")) proc = "kpkm";
else printf("ERROR: uknown process\n");
else {
printf("ERROR: unknown process\n");
return 0;
}

TString ff;
if (processConfig.Contains("Orexp")) ff = "orexp";
else if (processConfig.Contains("Exp")) ff = "exp";
else if (processConfig.Contains("Power")) ff = "power";
else printf("ERROR: uknown process\n");
else {
printf("ERROR: unknown process\n");
return 0;
}

gSystem->Load("libEVGEN");
gSystem->Load("libTDime");
gSystem->Load("libdime");
AliGenDime* dime = new AliGenDime(1000);
AliDimeRndm::GetDimeRandom()->SetSeed(seedConfig);
printf("Setting new random seed: %i\n",AliDimeRndm::GetDimeRandom()->GetSeed());
Expand Down

0 comments on commit aa131c3

Please sign in to comment.