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

TriggerJobOpts: fix test_hltConditions

Fix the `test_hltConditions.py` job options that are used to validate
updates to the calorimeter noise conditions.

Closes ATR-22384.
parent bf291a33
No related branches found
No related tags found
No related merge requests found
...@@ -6,7 +6,7 @@ ...@@ -6,7 +6,7 @@
# deployment in the online DB. # deployment in the online DB.
# #
# Usage: # Usage:
# athena.py -c "sqlite='noise.db'" TriggerJobOpts/test_hltConditions.py # athena.py --threads=1 -c "sqlite='noise.db'" TriggerJobOpts/test_hltConditions.py
# - Other options can be found below # - Other options can be found below
# #
# Author: Frank Winklmeier # Author: Frank Winklmeier
...@@ -22,9 +22,10 @@ if 'folder' not in dir(): ...@@ -22,9 +22,10 @@ if 'folder' not in dir():
folder = '/CALO/Noise/CellNoise' folder = '/CALO/Noise/CellNoise'
# No updates required past this point # No updates required past this point
testCurrentMenu=True from AthenaCommon.AppMgr import theApp
EvtMax=10 from AthenaCommon.AthenaCommonFlags import athenaCommonFlags
BSRDOInput='/afs/cern.ch/atlas/project/trigger/pesa-sw/validation/atn-test/data16_13TeV.00307126.physics_eb_zmm_egz.merged.RAW.selected._0001.data' theApp.EvtMax = 10
athenaCommonFlags.FilesInput = ['/cvmfs/atlas-nightlies.cern.ch/repo/data/data-art/TrigP1Test/data18_13TeV.00360026.physics_EnhancedBias.merge.RAW._lb0151._SFO-1._0001.1']
from AthenaCommon.Include import include from AthenaCommon.Include import include
myfolder = folder # 'folder' seems to be overwritten somewhere in the include myfolder = folder # 'folder' seems to be overwritten somewhere in the include
...@@ -32,12 +33,11 @@ include('TriggerJobOpts/runHLT_standalone.py') ...@@ -32,12 +33,11 @@ include('TriggerJobOpts/runHLT_standalone.py')
folder = myfolder folder = myfolder
from AthenaCommon.AppMgr import ServiceMgr as svcMgr from AthenaCommon.AppMgr import ServiceMgr as svcMgr
from IOVDbSvc.CondDB import conddb # noqa: F401 configuration by import, old Run-2 job options from IOVDbSvc.CondDB import conddb
svcMgr.IOVDbSvc.forceRunNumber = 9999999
sqlite_tmp = 'cool_tmp.db' sqlite_tmp = 'cool_tmp.db'
tag = svcMgr.IOVDbSvc.GlobalTag tag = svcMgr.IOVDbSvc.GlobalTag
conddb.addMarkup(folder,'<db>sqlite://;schema=%s;dbname=CONDBR2</db>' % sqlite_tmp) conddb.addMarkup(folder,'<db>sqlite://;schema=%s;dbname=CONDBR2</db>' % sqlite_tmp)
conddb.addMarkup(folder,'<forceRunNumber>%d</forceRunNumber>' % 9999999 )
import os import os
import sys import sys
......
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