Skip to content

Set run and lumiblock number in new flags for athenaHLT

Run number and lumiblock number have to be set specially in athenaHLT/in a partition. Currently this was only done for the old flags, not for the new ConfigFlags. Will solve problems like this:

Shortened traceback (most recent user call last):
  File "/cvmfs/atlas-nightlies.cern.ch/repo/sw/master_Athena_x86_64-centos7-gcc8-opt/2021-11-13T2101/Athena/22.0.48/InstallArea/x86_64-centos7-gcc8-opt/jobOptions/TrigPSC/TrigPSCPythonSetup.py", line 108, in <module>
    include( "%s" % PscConfig.optmap['JOBOPTIONSPATH'] )
  File "/scratch/smh/bld/x86_64-centos7-gcc8-opt/jobOptions/TriggerJobOpts/runHLT_standalone.py", line 485, in <module>
    CAtoGlobalWrapper(Lvl1SimulationCfg, ConfigFlags, seqName="HLTBeginSeq")
  File "/cvmfs/atlas-nightlies.cern.ch/repo/sw/master_Athena_x86_64-centos7-gcc8-opt/2021-11-13T2101/Athena/22.0.48/InstallArea/x86_64-centos7-gcc8-opt/python/AthenaConfiguration/ComponentAccumulator.py", line 1227, in CAtoGlobalWrapper
    result = cfgFunc(flags, **kwargs)
  File "/scratch/smh/bld/x86_64-centos7-gcc8-opt/python/TriggerJobOpts/Lvl1SimulationConfig.py", line 206, in Lvl1SimulationCfg
    acc.merge(L1CaloLegacySimCfg(flags), sequenceName='L1CaloLegacySimSeq')
  File "/cvmfs/atlas-nightlies.cern.ch/repo/sw/master_Athena_x86_64-centos7-gcc8-opt/2021-11-13T2101/Athena/22.0.48/InstallArea/x86_64-centos7-gcc8-opt/python/TrigT1CaloSim/TrigT1CaloSimRun2Config.py", line 92, in L1CaloLegacySimCfg
    acc.merge(TileInfoLoaderCfg(flags))
  File "/cvmfs/atlas-nightlies.cern.ch/repo/sw/master_Athena_x86_64-centos7-gcc8-opt/2021-11-13T2101/Athena/22.0.48/InstallArea/x86_64-centos7-gcc8-opt/python/AthenaConfiguration/AccumulatorCache.py", line 119, in __call__
    if cacheHit is True:
 UnboundLocalError: local variable 'cacheHit' referenced before assignment
Traceback (most recent call last):
  File "/cvmfs/atlas-nightlies.cern.ch/repo/sw/master_Athena_x86_64-centos7-gcc8-opt/2021-11-13T2101/Athena/22.0.48/InstallArea/x86_64-centos7-gcc8-opt/python/AthenaConfiguration/AccumulatorCache.py", line 115, in __call__
    res, cacheHit = self._callImpl(*args, **kwargs)
  File "/cvmfs/atlas-nightlies.cern.ch/repo/sw/master_Athena_x86_64-centos7-gcc8-opt/2021-11-13T2101/Athena/22.0.48/InstallArea/x86_64-centos7-gcc8-opt/python/AthenaConfiguration/AccumulatorCache.py", line 182, in _callImpl
    res = self._func(*args , **kwargs)
  File "/cvmfs/atlas-nightlies.cern.ch/repo/sw/master_Athena_x86_64-centos7-gcc8-opt/2021-11-13T2101/Athena/22.0.48/InstallArea/x86_64-centos7-gcc8-opt/python/TileConditions/TileCablingSvcConfig.py", line 28, in TileCablingSvcCfg
    runNumber = flags.Input.RunNumber[0]
  File "/cvmfs/atlas-nightlies.cern.ch/repo/sw/master_Athena_x86_64-centos7-gcc8-opt/2021-11-13T2101/Athena/22.0.48/InstallArea/x86_64-centos7-gcc8-opt/python/AthenaConfiguration/AthConfigFlags.py", line 69, in __getattr__
    return self._flags._get( merged )
  File "/cvmfs/atlas-nightlies.cern.ch/repo/sw/master_Athena_x86_64-centos7-gcc8-opt/2021-11-13T2101/Athena/22.0.48/InstallArea/x86_64-centos7-gcc8-opt/python/AthenaConfiguration/AthConfigFlags.py", line 242, in _get
    return self._flagdict[name].get(self)
  File "/cvmfs/atlas-nightlies.cern.ch/repo/sw/master_Athena_x86_64-centos7-gcc8-opt/2021-11-13T2101/Athena/22.0.48/InstallArea/x86_64-centos7-gcc8-opt/python/AthenaConfiguration/AthConfigFlags.py", line 33, in get
    self._value=self._setDef(flagdict)
  File "/cvmfs/atlas-nightlies.cern.ch/repo/sw/master_Athena_x86_64-centos7-gcc8-opt/2021-11-13T2101/Athena/22.0.48/InstallArea/x86_64-centos7-gcc8-opt/python/AthenaConfiguration/AllConfigFlags.py", line 36, in <lambda>
    acf.addFlag('Input.RunNumber', lambda prevFlags : list(GetFileMD(prevFlags.Input.Files).get("runNumbers",[]))) # former global.RunNumber
  File "/cvmfs/atlas-nightlies.cern.ch/repo/sw/master_Athena_x86_64-centos7-gcc8-opt/2021-11-13T2101/Athena/22.0.48/InstallArea/x86_64-centos7-gcc8-opt/python/AthenaConfiguration/AutoConfigFlags.py", line 50, in GetFileMD
    raise RuntimeError('Input file name not set, instead _ATHENA_GENERIC_INPUTFILE_NAME_ found. Cannot read metadata.')
RuntimeError: Input file name not set, instead _ATHENA_GENERIC_INPUTFILE_NAME_ found. Cannot read metadata.

which I see in some ongoing migration to newJO.

Merge request reports