ATLAS Offline Software
|
Classes | |
class | coolTool |
class | RangeList |
class | TimeStampToRLB |
Functions | |
def | transConn (conn) |
def | forceOpen (conn) |
def | readOpen (conn) |
def | ensureFolder (db, folder, spec, desc, version=cool.FolderVersioning.SINGLE_VERSION) |
def | athenaDesc (runLumi, datatype) |
def | timeVal (val) |
def | timeString (iovkey) |
def | indirectOpen (coolstr, readOnly=True, debug=False) |
def | replicaList () |
def | pathResolver (leaf, retFile=True) |
def | getHostname () |
def | tests () |
def python.AtlCoolLib.athenaDesc | ( | runLumi, | |
datatype | |||
) |
Return the correct folder description string for Athena IOVDbSVc access runLumi=True or False for timestamp datatype= { AthenaAttributeList | CondAttrListCollection }
Definition at line 81 of file AtlCoolLib.py.
def python.AtlCoolLib.ensureFolder | ( | db, | |
folder, | |||
spec, | |||
desc, | |||
version = cool.FolderVersioning.SINGLE_VERSION |
|||
) |
Ensure folder exists, creating it if needed with given spec Return COOL folder object
Definition at line 63 of file AtlCoolLib.py.
def python.AtlCoolLib.forceOpen | ( | conn | ) |
Open COOL database with given connection, or force open if not possible Return COOL database object, or None if cannot be opened Database is opened in update mode
Definition at line 28 of file AtlCoolLib.py.
def python.AtlCoolLib.getHostname | ( | ) |
Definition at line 235 of file AtlCoolLib.py.
Obtain a connection to the database coolstr (e.g. COOLONL_INDET/OFLP200) using Oracle servers only, bypassing SQLite files and simulating the action of DBReplicaSvc to choose the correct one. Returns None in case a connection cannot be established. debug=True produces debug printout to show servers being tried
Definition at line 130 of file AtlCoolLib.py.
def python.AtlCoolLib.pathResolver | ( | leaf, | |
retFile = True |
|||
) |
Find the file leaf using the DATAPATH variable to look for it Return a read-only file object, or None if not found. If retFile is false, just return the pathname. Current directory takes precendence if file is there
Definition at line 213 of file AtlCoolLib.py.
def python.AtlCoolLib.readOpen | ( | conn | ) |
def python.AtlCoolLib.replicaList | ( | ) |
Return list of Oracle database server names to try, mimicing action of Athena DBReplicaSvc
Definition at line 189 of file AtlCoolLib.py.
def python.AtlCoolLib.tests | ( | ) |
Definition at line 273 of file AtlCoolLib.py.
def python.AtlCoolLib.timeString | ( | iovkey | ) |
Definition at line 120 of file AtlCoolLib.py.
def python.AtlCoolLib.timeVal | ( | val | ) |
Definition at line 107 of file AtlCoolLib.py.
def python.AtlCoolLib.transConn | ( | conn | ) |
Translate simple connection string (no slash) to mycool.db with given instance, all others left alone
Definition at line 18 of file AtlCoolLib.py.