From 2a19cee6ad13a2ddb7269d3daa56c7b1a014e02d Mon Sep 17 00:00:00 2001 From: Evgeny Kryshen Date: Thu, 27 Jul 2017 09:23:24 +0200 Subject: [PATCH] Custom generator for pipi flat up to 4 GeV/c^2 --- MC/CustomGenerators/PWGUD/Starlight_flat_rho.C | 9 +++++++++ 1 file changed, 9 insertions(+) create mode 100644 MC/CustomGenerators/PWGUD/Starlight_flat_rho.C diff --git a/MC/CustomGenerators/PWGUD/Starlight_flat_rho.C b/MC/CustomGenerators/PWGUD/Starlight_flat_rho.C new file mode 100644 index 00000000..d3dd14f4 --- /dev/null +++ b/MC/CustomGenerators/PWGUD/Starlight_flat_rho.C @@ -0,0 +1,9 @@ +AliGenerator* GeneratorCustom() { + AliGenerator* gen = GeneratorStarlight(); + if (processConfig == TString("kCohRhoToPiFlat")) { + AliGenStarLight *genStarLight = (AliGenStarLight*) gen; + // set maximum invariant mass for pipi system to 4 GeV/c^2 (2 GeV/c^2 by default) + genStarLight->SetParameter("W_MAX = 4.0 #Max value of w"); + } + return gen; +}