ATLAS Offline Software
|
Classes | |
class | CaloBlobReader |
class | CaloBlobWriter |
Functions | |
def | getCaloPrefix () |
def | getAthenaFolderDescr () |
def | getAthenaFolderType (folderDescr) |
def | openDb (db, instance, mode="READONLY", schema="COOLOFL_CALO", sqlfn="caloSqlite.db") |
def | openDbConn (connStr, mode="READONLY") |
def | iovFromRunLumi (runNum, lbkNum) |
def | decodeTimeString (timeString) |
def | getCoolValidityKey (pointInTime, isSince=True) |
def | getCellHash (detectorId, part, module, sample, tower) |
Variables | |
g = cppyy.gbl | |
log = getLogger("CaloCondTools") | |
int | MINRUN = 0 |
int | MINLBK = 0 |
MAXRUN = cool.Int32Max | |
MAXLBK = cool.UInt32Max | |
int | UNIX2COOL = 1000000000 |
UNIXTMAX = cool.Int32Max | |
def python.CaloCondTools.decodeTimeString | ( | timeString | ) |
def python.CaloCondTools.getAthenaFolderDescr | ( | ) |
Returns the run-lumi type folder description needed to read back the folder content as a CondAttrListCollection in Athena.
Definition at line 40 of file CaloCondTools.py.
def python.CaloCondTools.getAthenaFolderType | ( | folderDescr | ) |
Definition at line 52 of file CaloCondTools.py.
def python.CaloCondTools.getCaloPrefix | ( | ) |
Returns the common Calo prefix used for all COOL folders
Definition at line 32 of file CaloCondTools.py.
def python.CaloCondTools.getCellHash | ( | detectorId, | |
part, | |||
module, | |||
sample, | |||
tower | |||
) |
Returns cell subHash given partition,module,sample, and tower (TILE only)
Definition at line 228 of file CaloCondTools.py.
def python.CaloCondTools.getCoolValidityKey | ( | pointInTime, | |
isSince = True |
|||
) |
The interpretation of pointInTime depends on their type: - tuple(int,int) : run and lbk number - integer : Values are interpreted as unix time stamps - string : time stamp of format 'yyyy-mm-dd hh:mm:ss'
Definition at line 195 of file CaloCondTools.py.
def python.CaloCondTools.iovFromRunLumi | ( | runNum, | |
lbkNum | |||
) |
Returns COOL timeStamp build from run and lumi block numbers
Definition at line 179 of file CaloCondTools.py.
def python.CaloCondTools.openDb | ( | db, | |
instance, | |||
mode = "READONLY" , |
|||
schema = "COOLOFL_CALO" , |
|||
sqlfn = "caloSqlite.db" |
|||
) |
Opens a COOL db connection. - db: The DB type. The following names are recognized: * SQLITE: Opens file mentioned in sqlfn parameter * ORACLE or FRONTIER: Opens ORACLE DB, forces READONLY - instance: One of valid instances - CONDBR2 OFLP200 COMP200 CMCP200 - mode: Can be READONLY (default), RECREATE or UPDATE - schema: One of valid schemas - COOLONL_CALO COOLOFL_CALO COOLONL_LAR COOLOFL_LAR COOLONL_TILE COOLOFL_TILE - sqlfn: Name of sqlite file if db is SQLITE
Definition at line 60 of file CaloCondTools.py.
def python.CaloCondTools.openDbConn | ( | connStr, | |
mode = "READONLY" |
|||
) |
Opens a COOL db connection. - connStr: The DB connection string - mode: Can be READONLY (default), RECREATE or UPDATE or ORACLE or FRONTIER if connStr is only short name of the database
Definition at line 110 of file CaloCondTools.py.
python.CaloCondTools.g = cppyy.gbl |
Definition at line 15 of file CaloCondTools.py.
python.CaloCondTools.log = getLogger("CaloCondTools") |
Definition at line 20 of file CaloCondTools.py.
python.CaloCondTools.MAXLBK = cool.UInt32Max |
Definition at line 26 of file CaloCondTools.py.
python.CaloCondTools.MAXRUN = cool.Int32Max |
Definition at line 25 of file CaloCondTools.py.
int python.CaloCondTools.MINLBK = 0 |
Definition at line 24 of file CaloCondTools.py.
int python.CaloCondTools.MINRUN = 0 |
Definition at line 23 of file CaloCondTools.py.
int python.CaloCondTools.UNIX2COOL = 1000000000 |
Definition at line 27 of file CaloCondTools.py.
python.CaloCondTools.UNIXTMAX = cool.Int32Max |
Definition at line 28 of file CaloCondTools.py.