ATLAS Offline Software
Functions | Variables
python.test_hltConditions Namespace Reference

Functions

def createSqlite (flags)
 

Variables

 sqlite
 Job options to test HLT conditions updates based on local sqlite file. More...
 
 onldb
 
 folder
 
 flags
 
 NumThreads
 
 Files
 
 SqliteInput
 
 SqliteFolders
 
 errorOnMissingTOB
 
 GlobalTag
 
 acc
 
 iovDbSvc
 
 l1bsdec
 

Function Documentation

◆ createSqlite()

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

Definition at line 21 of file test_hltConditions.py.

21 def 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

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

Definition at line 42 of file test_hltConditions.py.

◆ folder

python.test_hltConditions.folder

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

Definition at line 63 of file test_hltConditions.py.

◆ l1bsdec

python.test_hltConditions.l1bsdec

Definition at line 68 of file test_hltConditions.py.

◆ NumThreads

python.test_hltConditions.NumThreads

Definition at line 44 of file test_hltConditions.py.

◆ onldb

python.test_hltConditions.onldb

Definition at line 17 of file test_hltConditions.py.

◆ sqlite

python.test_hltConditions.sqlite

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.

python.test_hltConditions.createSqlite
def createSqlite(flags)
Definition: test_hltConditions.py:21