ATLAS Offline Software
Loading...
Searching...
No Matches
python.test_hltConditions Namespace Reference

Functions

 createSqlite (flags)

Variables

str sqlite = 'noise.db'
 Job options to test HLT conditions updates based on local sqlite file.
str onldb = 'ATLAS_COOLONL_CALO'
str folder = '/CALO/Noise/CellNoise'
 flags = initConfigFlags()
 NumThreads
 Files
 SqliteInput
 SqliteFolders
 errorOnMissingTOB
 GlobalTag
 acc = athenaCfg(flags)
 iovDbSvc = acc.getService('IOVDbSvc')
 l1bsdec = acc.getEventAlgo("L1TriggerByteStreamDecoder")

Function Documentation

◆ createSqlite()

python.test_hltConditions.createSqlite ( flags)
Create local sqlite file

Definition at line 21 of file test_hltConditions.py.

21def createSqlite(flags):
22 """Create local sqlite file"""
23 import os
24 try:
25 os.remove(flags.IOVDb.SqliteInput) # Delete temporary file
26 except Exception:
27 pass
28
29 # Copy last IOV from online DB
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")
31 if rc!=0:
32 raise RuntimeError("Cannot copy folder from COOL")
33
34 # Merge with user given sqlite file (in case only some channels have been updated)
35 rc = os.system(f"AtlCoolCopy 'sqlite://;schema={sqlite};dbname=CONDBR2' 'sqlite://;schema={flags.IOVDb.SqliteInput};dbname=CONDBR2' -folder {folder} -r 9999999")
36 if rc!=0:
37 raise RuntimeError("Cannot merge sqlite file")
38
39
40# Set flags

Variable Documentation

◆ acc

python.test_hltConditions.acc = athenaCfg(flags)

Definition at line 60 of file test_hltConditions.py.

◆ errorOnMissingTOB

python.test_hltConditions.errorOnMissingTOB

Definition at line 50 of file test_hltConditions.py.

◆ Files

python.test_hltConditions.Files

Definition at line 46 of file test_hltConditions.py.

◆ flags

python.test_hltConditions.flags = initConfigFlags()

Definition at line 42 of file test_hltConditions.py.

◆ folder

str python.test_hltConditions.folder = '/CALO/Noise/CellNoise'

Definition at line 18 of file test_hltConditions.py.

◆ GlobalTag

python.test_hltConditions.GlobalTag

Definition at line 53 of file test_hltConditions.py.

◆ iovDbSvc

python.test_hltConditions.iovDbSvc = acc.getService('IOVDbSvc')

Definition at line 63 of file test_hltConditions.py.

◆ l1bsdec

python.test_hltConditions.l1bsdec = acc.getEventAlgo("L1TriggerByteStreamDecoder")

Definition at line 68 of file test_hltConditions.py.

◆ NumThreads

python.test_hltConditions.NumThreads

Definition at line 44 of file test_hltConditions.py.

◆ onldb

str python.test_hltConditions.onldb = 'ATLAS_COOLONL_CALO'

Definition at line 17 of file test_hltConditions.py.

◆ sqlite

str python.test_hltConditions.sqlite = 'noise.db'

Job options to test HLT conditions updates based on local sqlite file.

To be used to test HLT conditions updates (in sqlite files) before deployment in the online DB.

Usage: athena –evtMax=10 TriggerJobOpts/test_hltConditions.py [flags...]

Author: Frank Winklmeier

Definition at line 16 of file test_hltConditions.py.

◆ SqliteFolders

python.test_hltConditions.SqliteFolders

Definition at line 48 of file test_hltConditions.py.

◆ SqliteInput

python.test_hltConditions.SqliteInput

Definition at line 47 of file test_hltConditions.py.