![]() |
ATLAS Offline Software
|
Public Member Functions | |
| __init__ (self, useOracle=False, debug=True) | |
| __del__ (self) | |
| getRunStartTime (self, runnr) | |
| getLHCInfo (self, timeSinceEpochInSec) | |
| getRunEndTime (self, runnr) | |
| getLbTimes (self, runnr) | |
| lbTime (self, runnr, lbnr) | |
| getScanInfo (self, runnr) | |
| scanInfo (self, runnr, lbnr) | |
Public Attributes | |
| str | tdaqdbname = 'COOLONL_TDAQ/CONDBR2' |
| str | coolpath = '/TDAQ/RunCtrl' |
| str | coolScanPath = '/TDAQ/OLC/LHC/SCANDATA' |
| str | trigdbname = 'COOLONL_TRIGGER/CONDBR2' |
| str | coollbpath = '/TRIGGER/LUMI/LBLB' |
| str | dcsdbname = 'COOLOFL_DCS/CONDBR2' |
| str | coollhcpath = '/LHC/DCS/FILLSTATE' |
| debug = debug | |
| cooldb = AtlCoolLib.indirectOpen(self.tdaqdbname, True, self.debug) | |
| cooltrigdb = AtlCoolLib.indirectOpen(self.trigdbname, True, self.debug) | |
| cooldcsdb = AtlCoolLib.indirectOpen(self.dcsdbname, True, self.debug) | |
| dict | lbDictCache = {'runnr': None, 'lbDict': None} |
| dict | scanDictCache = {'runnr': None, 'scanDict': None} |
Utility to query COOL to retrieve start and end time of run and LBs.
Definition at line 122 of file COOLUtils.py.
Definition at line 124 of file COOLUtils.py.
| python.COOLUtils.COOLQuery.__del__ | ( | self | ) |
Definition at line 148 of file COOLUtils.py.
| python.COOLUtils.COOLQuery.getLbTimes | ( | self, | |
| runnr ) |
Get dict of LB start and end times in Unix time (seconds since epoch).
Definition at line 210 of file COOLUtils.py.
| python.COOLUtils.COOLQuery.getLHCInfo | ( | self, | |
| timeSinceEpochInSec ) |
Get LHC fill and other info from COOL. The relevant COOL folder, /LHC/DCS/FILLSTATE is time-based, so the iov must be specified in ns since the epoch, but the argument to getLHCInfo is s since the epoch for convenience.
Definition at line 171 of file COOLUtils.py.
| python.COOLUtils.COOLQuery.getRunEndTime | ( | self, | |
| runnr ) |
Get end time of run in Unix time (seconds since epoch).
Definition at line 196 of file COOLUtils.py.
| python.COOLUtils.COOLQuery.getRunStartTime | ( | self, | |
| runnr ) |
Get start time of run in Unix time (seconds since epoch).
Definition at line 156 of file COOLUtils.py.
| python.COOLUtils.COOLQuery.getScanInfo | ( | self, | |
| runnr ) |
Get dict of scan info
Definition at line 241 of file COOLUtils.py.
| python.COOLUtils.COOLQuery.lbTime | ( | self, | |
| runnr, | |||
| lbnr ) |
Get (startTime,endTime) for a given LB. The LB information is cached for the last run, in order make this efficient for querying for the times of individual LBs.
Definition at line 230 of file COOLUtils.py.
| python.COOLUtils.COOLQuery.scanInfo | ( | self, | |
| runnr, | |||
| lbnr ) |
Get scan information for a given LB. The LB information is cached for the last run, in order make this efficient for querying for the times of individual LBs.
Definition at line 270 of file COOLUtils.py.
| python.COOLUtils.COOLQuery.cooldb = AtlCoolLib.indirectOpen(self.tdaqdbname, True, self.debug) |
Definition at line 139 of file COOLUtils.py.
| python.COOLUtils.COOLQuery.cooldcsdb = AtlCoolLib.indirectOpen(self.dcsdbname, True, self.debug) |
Definition at line 143 of file COOLUtils.py.
| str python.COOLUtils.COOLQuery.coollbpath = '/TRIGGER/LUMI/LBLB' |
Definition at line 131 of file COOLUtils.py.
| str python.COOLUtils.COOLQuery.coollhcpath = '/LHC/DCS/FILLSTATE' |
Definition at line 134 of file COOLUtils.py.
| str python.COOLUtils.COOLQuery.coolpath = '/TDAQ/RunCtrl' |
Definition at line 127 of file COOLUtils.py.
| str python.COOLUtils.COOLQuery.coolScanPath = '/TDAQ/OLC/LHC/SCANDATA' |
Definition at line 128 of file COOLUtils.py.
| python.COOLUtils.COOLQuery.cooltrigdb = AtlCoolLib.indirectOpen(self.trigdbname, True, self.debug) |
Definition at line 141 of file COOLUtils.py.
| str python.COOLUtils.COOLQuery.dcsdbname = 'COOLOFL_DCS/CONDBR2' |
Definition at line 133 of file COOLUtils.py.
| python.COOLUtils.COOLQuery.debug = debug |
Definition at line 136 of file COOLUtils.py.
Definition at line 145 of file COOLUtils.py.
Definition at line 146 of file COOLUtils.py.
| str python.COOLUtils.COOLQuery.tdaqdbname = 'COOLONL_TDAQ/CONDBR2' |
Definition at line 126 of file COOLUtils.py.
| str python.COOLUtils.COOLQuery.trigdbname = 'COOLONL_TRIGGER/CONDBR2' |
Definition at line 130 of file COOLUtils.py.