17 onldb =
'ATLAS_COOLONL_CALO'
18 folder =
'/CALO/Noise/CellNoise'
22 """Create local sqlite file"""
25 os.remove(flags.IOVDb.SqliteInput)
30 rc = os.system(f
"AtlCoolCopy 'oracle://ATLAS_COOLPROD;schema={onldb};dbname=CONDBR2' 'sqlite://;schema={flags.IOVDb.SqliteInput};dbname=CONDBR2' -create -tag {flags.IOVDb.GlobalTag} -hitag -prunetags -folder {folder} -r 9999999")
32 raise RuntimeError(
"Cannot copy folder from COOL")
35 rc = os.system(f
"AtlCoolCopy 'sqlite://;schema={sqlite};dbname=CONDBR2' 'sqlite://;schema={flags.IOVDb.SqliteInput};dbname=CONDBR2' -folder {folder} -r 9999999")
37 raise RuntimeError(
"Cannot merge sqlite file")
41 from AthenaConfiguration.AllConfigFlags
import initConfigFlags
44 flags.Concurrency.NumThreads = 1
46 flags.Input.Files = [
'/cvmfs/atlas-nightlies.cern.ch/repo/data/data-art/TrigP1Test/data22_cos.00433897.express_express.merge.RAW._lb0134._SFO-ALL._0001.1']
47 flags.IOVDb.SqliteInput =
'cool_tmp.db'
48 flags.IOVDb.SqliteFolders = (folder,)
50 flags.Trigger.L1.errorOnMissingTOB=
False
52 from TriggerJobOpts.TriggerConfigFlags
import trigGlobalTag
59 from TriggerJobOpts.runHLT
import athenaCfg
63 iovDbSvc = acc.getService(
'IOVDbSvc')
64 for i,f
in enumerate(iovDbSvc.Folders):
66 iovDbSvc.Folders[i] +=
'<forceRunNumber>9999999</forceRunNumber>'
68 l1bsdec = acc.getEventAlgo(
"L1TriggerByteStreamDecoder")
69 l1bsdec.MaybeMissingROBs += [0x941000]
73 sys.exit(acc.run().isFailure())