Skip to content

Patch for multiple grid packs

Matthew Gignac requested to merge mgignac/athena:fix-multiple-gridpacks into 21.6

For job options with multiple integration grid packs, the logic doesn't work for the naming convention used by PMG. For COM energies (in units of TeV) with decimals, we typically convert the decimal to "p". An example is given here: https://gitlab.cern.ch/atlas-physics/pmg/mcjoboptions/-/tree/master/950xxx/950398/

This MR fixes the logic to correctly discover the correct integration grid pack. With this updated logic, this works for both grid packs:

Gen_tf.py --ecmEnergy=13600.0 --maxEvents=10 --firstEvent=1 --randomSeed=123456 --jobConfig=950398 --outputEVNTFile=test.root
PyJobTransforms.preExecute 2021-10-12 11:49:59,949 INFO Found 2configuration files
PyJobTransforms.preExecute 2021-10-12 11:49:59,949 INFO more then one gridpack !
Should be used gridpack for energy = 13p6
Gridpack should start from =  mc_13p6TeV
Gridpack should start from =  mc_13p6TeV
PyJobTransforms.preExecute 2021-10-12 11:49:59,949 INFO using gridpack = /cvmfs/atlas.cern.ch/repo/sw/Generators/MCJobOptions/950xxx/950398/mc_13p6TeV.Sh_2211_SinglePhoton_EnhMaxHTPTV2.GRID.tar.gz
Configuration input gridpack found =  /cvmfs/atlas.cern.ch/repo/sw/Generators/MCJobOptions/950xxx/950398/mc_13p6TeV.Sh_2211_SinglePhoton_EnhMaxHTPTV2.GRID.tar.gz

And for 13 TeV COM:

Gen_tf.py --ecmEnergy=13000.0 --maxEvents=10 --firstEvent=1 --randomSeed=123456 --jobConfig=950398 --outputEVNTFile=test.root
PyJobTransforms.preExecute 2021-10-12 11:50:44,021 INFO Found 2configuration files
PyJobTransforms.preExecute 2021-10-12 11:50:44,021 INFO more then one gridpack !
Should be used gridpack for energy = 13
Gridpack should start from =  mc_13TeV
PyJobTransforms.preExecute 2021-10-12 11:50:44,021 INFO using gridpack = /cvmfs/atlas.cern.ch/repo/sw/Generators/MCJobOptions/950xxx/950398/mc_13TeV.Sh_2211_SinglePhoton_EnhMaxHTPTV2.GRID.tar.gz
Gridpack should start from =  mc_13TeV
Configuration input gridpack found =  /cvmfs/atlas.cern.ch/repo/sw/Generators/MCJobOptions/950xxx/950398/mc_13TeV.Sh_2211_SinglePhoton_EnhMaxHTPTV2.GRID.tar.gz
Edited by Matthew Gignac

Merge request reports