From 7468695218b012da72e11d69621ffc9ce26365e6 Mon Sep 17 00:00:00 2001 From: miweber Date: Tue, 16 Feb 2021 20:18:28 +0100 Subject: [PATCH] Fix STARLight parameter setting for older AliRoot versions --- MC/GeneratorConfig.C | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/MC/GeneratorConfig.C b/MC/GeneratorConfig.C index b16d1d7f..90abc790 100644 --- a/MC/GeneratorConfig.C +++ b/MC/GeneratorConfig.C @@ -1381,7 +1381,8 @@ GeneratorStarlight(){ genStarLight->SetParameter("XSEC_METHOD = 1 # Set to 0 to use old method for calculating gamma-gamma luminosity"); //CM genStarLight->SetParameter("BSLOPE_DEFINITION = 0"); // using default slope genStarLight->SetParameter("BSLOPE_VALUE = 4.0"); // default slope value - genStarLight->SetParameter("PRINT_VM = 2"); // print cross sections and fluxes vs rapidity in stdout for VM photoproduction processes + if(genStarLight->Class_Version() > 3) // this option is only in later versions + genStarLight->SetParameter("PRINT_VM = 2"); // print cross sections and fluxes vs rapidity in stdout for VM photoproduction processes genStarLight->SetRapidityMotherRange(yminConfig,ymaxConfig); if (!genCocktail) return genStarLight;