2525parser .add_argument ('-ini' ,help = 'generator init parameters file, for example: ${O2DPG_ROOT}/MC/config/PWGHF/ini/GeneratorHF.ini' , default = '' )
2626parser .add_argument ('-confKey' ,help = 'generator or trigger configuration key values, for example: GeneratorPythia8.config=pythia8.cfg' , default = '' )
2727
28- parser .add_argument ('-eCMS' ,help = 'CMS energy' , default = 5200.0 )
28+ parser .add_argument ('-eCMS' ,help = 'CMS energy' , default = - 1 )
2929parser .add_argument ('-col' ,help = 'collision sytem: pp, PbPb, pPb, Pbp, ...' , default = 'pp' )
3030parser .add_argument ('-ptHatBin' ,help = 'pT hard bin number' , default = - 1 )
3131parser .add_argument ('-ptHatMin' ,help = 'pT hard minimum when no bin requested' , default = 0 )
@@ -221,7 +221,6 @@ def getDPL_global_options(bigshm=False,nosmallrate=False):
221221 PTHATMAX = hig_edge [PTHATBIN ]
222222
223223 # translate here collision type to PDG
224- # not sure this is what we want to do (GCB)
225224 COLTYPE = args .col
226225
227226 if COLTYPE == 'pp' :
@@ -231,6 +230,9 @@ def getDPL_global_options(bigshm=False,nosmallrate=False):
231230 if COLTYPE == 'PbPb' :
232231 PDGA = 1000822080 # Pb
233232 PDGB = 1000822080 # Pb
233+ if ECMS < 0 : # assign 5.02 TeV to Pb-Pb
234+ print ('>>> Set CM Energy to PbPb case 5.02 TeV' )
235+ ECMS = 5020.0
234236
235237 if COLTYPE == 'pPb' :
236238 PDGA = 2212 # proton
@@ -240,6 +242,10 @@ def getDPL_global_options(bigshm=False,nosmallrate=False):
240242 PDGA = 1000822080 # Pb
241243 PDGB = 2212 # proton
242244
245+ if ECMS < 0 :
246+ print ('Error: Collision Energy not set!!!' )
247+ exit (1 )
248+
243249 # produce the signal configuration
244250 SGN_CONFIG_task = createTask (name = 'gensgnconf_' + str (tf ), tf = tf , cwd = timeframeworkdir )
245251 if GENERATOR == 'pythia8' :
0 commit comments