Skip to content
Snippets Groups Projects
Commit 87d100ee authored by Frank Winklmeier's avatar Frank Winklmeier
Browse files

Merge branch 'master-TIDV-art48' into 'master'

TrigInDetValidation: Add "release" parameter for ART tests

See merge request atlas/athena!39240
parents 9ebd683e 2ecb298d
No related branches found
No related tags found
No related merge requests found
......@@ -35,6 +35,7 @@ class TrigInDetReco(ExecStep):
self.slices = []
self.preexec_trig = ' '
self.postinclude_trig = postinclude_file
self.release = 'latest'
self.preexec_reco = ';'.join([
'from RecExConfig.RecFlags import rec',
'rec.doForwardDet=False',
......@@ -60,21 +61,8 @@ class TrigInDetReco(ExecStep):
self.postexec_trig = "from AthenaCommon.AppMgr import ServiceMgr; ServiceMgr.AthenaPoolCnvSvc.MaxFileSizes=['tmp.RDO_TRIG=100000000000']"
# get the cuttent atlas base release, and the previous base release
import os
DVERSION=os.getenv('Athena_VERSION')
if ( DVERSION is None ) :
AVERSION = "22.0.20"
else :
BASE=DVERSION[:5]
SUB=int(DVERSION[5:])
SUB -= 1
AVERSION=BASE+str(SUB)
print( "remapping athena base release version: ", DVERSION, " -> ", AVERSION )
self.postexec_reco = "from AthenaCommon.AppMgr import ServiceMgr; ServiceMgr.AthenaPoolCnvSvc.MaxFileSizes=['tmp.ESD=100000000000']"
self.args = '--outputAODFile=AOD.pool.root --steering="doRDO_TRIG" --asetup "RAWtoESD:Athena,'+AVERSION+'" "ESDtoAOD:Athena,'+AVERSION+'" '
self.args = '--outputAODFile=AOD.pool.root --steering="doRDO_TRIG"'
def configure(self, test):
......@@ -114,6 +102,25 @@ class TrigInDetReco(ExecStep):
chains += ']'
self.preexec_trig = 'doEmptyMenu=True;'+flags+'selectChains='+chains
if (self.release == 'current'):
print( "Using current release for offline Reco steps " )
else:
# get the current atlas base release, and the previous base release
import os
DVERSION=os.getenv('Athena_VERSION')
if (self.release == 'latest'):
if ( DVERSION is None ) :
AVERSION = "22.0.20"
else:
BASE=DVERSION[:5]
SUB=int(DVERSION[5:])
SUB -= 1
AVERSION=BASE+str(SUB)
else:
AVERSION = self.release
self.args += ' --asetup "RAWtoESD:Athena,'+AVERSION+'" "ESDtoAOD:Athena,'+AVERSION+'" '
print( "remapping athena base release version for offline Reco steps: ", DVERSION, " -> ", AVERSION )
self.args += ' --preExec "RDOtoRDOTrigger:{:s};" "all:{:s};" "RAWtoESD:{:s};" "ESDtoAOD:{:s};"'.format(
self.preexec_trig, self.preexec_all, self.preexec_reco, self.preexec_aod)
......
......@@ -73,7 +73,8 @@ rdo2aod.slices = Slices
rdo2aod.threads = Threads
rdo2aod.concurrent_events = Slots
rdo2aod.config_only = testconfig
if 'Release' in dir():
rdo2aod.release = Release
if "Args" not in locals() :
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment