Skip to content

Commit

Permalink
Added custom DIME generator
Browse files Browse the repository at this point in the history
  • Loading branch information
ekryshen authored and miweberSMI committed Jul 21, 2017
1 parent 7f4ec9a commit a4314cf
Showing 1 changed file with 28 additions and 0 deletions.
28 changes: 28 additions & 0 deletions MC/CustomGenerators/PWGUD/Dime.C
Original file line number Diff line number Diff line change
@@ -0,0 +1,28 @@
AliGenerator* GeneratorCustom() {
printf("Starting DIME generator\n");

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

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");

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());
dime->GetTDime()->SetEnergyCMS(energyConfig); // sqrt(s)
dime->GetTDime()->SetProcess(proc.Data()); // Process {"pipm", "pi0", "kpkm", "ks", "rho"}
dime->GetTDime()->SetFormf(ff.Data()); // Meson-Pomeron form factor {"orexp", "exp", "power"}
dime->GetTDime()->SetFsi("true"); // Exclusive supression {"true", "false"}
dime->GetTDime()->SetYRange(yminConfig,ymaxConfig); // Set rapidity range of mesons
dime->GetTDime()->SetMinPt(0.); // Minimum pT of mesons
return dime;
}

0 comments on commit a4314cf

Please sign in to comment.