![]() |
ATLAS Offline Software
|
Public Member Functions | |
| __init__ (self, database='COOLOFL_GLOBAL/CONDBR2', tag='HEAD', debug=False) | |
| __del__ (self) | |
| connect (self) | |
| defectList (self) | |
| defect (self, run, lb, channels=None) | |
| defectsRange (self, run, lbStart, lbEnd, channels=None) | |
| dumpRun (self, run, channels=None) | |
Public Attributes | |
| db = DefectsDB(self.database, read_only=True, create=False, tag=self.tag) | |
| list | idbsDefects = [d for d in self.db.defect_names if d.startswith('ID_BS_') or d == 'LUMI_VDM'] |
Static Public Attributes | |
| list | defectBitPos |
| database | |
| tag | |
| lastRun | |
| iovsets | |
| debug | |
Protected Member Functions | |
| _defectForLB (self, lb) | |
Container for beamspot DQ defects from COOL
Definition at line 196 of file DQUtilities.py.
| python.DQUtilities.IDBSDefectData.__init__ | ( | self, | |
| database = 'COOLOFL_GLOBAL/CONDBR2', | |||
| tag = 'HEAD', | |||
| debug = False ) |
Definition at line 205 of file DQUtilities.py.
| python.DQUtilities.IDBSDefectData.__del__ | ( | self | ) |
Delete db to clear connection
Definition at line 221 of file DQUtilities.py.
|
protected |
Get the DQ defects for the given LB from the full run info
Definition at line 298 of file DQUtilities.py.
| python.DQUtilities.IDBSDefectData.connect | ( | self | ) |
Open connection to defect DB
Definition at line 230 of file DQUtilities.py.
| python.DQUtilities.IDBSDefectData.defect | ( | self, | |
| run, | |||
| lb, | |||
| channels = None ) |
Get list of DQ defects for a particular run and lb, caching the result for the latest (succesful) run
e.g.
from InDetBeamSpotExample.DQUtilities import IDBSDefectData
idbs = IDBSDefectData()
idbs.defect(167661,372)
channels is the list of defects to look for (defaults to all ID_BS defects)
Definition at line 250 of file DQUtilities.py.
| python.DQUtilities.IDBSDefectData.defectList | ( | self | ) |
List of all possible beamspot defects
Definition at line 243 of file DQUtilities.py.
| python.DQUtilities.IDBSDefectData.defectsRange | ( | self, | |
| run, | |||
| lbStart, | |||
| lbEnd, | |||
| channels = None ) |
Return the maximal list of defects for a given range. lbEnd is exclusive
Definition at line 312 of file DQUtilities.py.
| python.DQUtilities.IDBSDefectData.dumpRun | ( | self, | |
| run, | |||
| channels = None ) |
Dump DQ info for a particular run (useful in reprocessing to compare new to old)
Definition at line 323 of file DQUtilities.py.
|
static |
Initialise database connection
Definition at line 211 of file DQUtilities.py.
| python.DQUtilities.IDBSDefectData.db = DefectsDB(self.database, read_only=True, create=False, tag=self.tag) |
Definition at line 235 of file DQUtilities.py.
|
static |
Definition at line 215 of file DQUtilities.py.
|
static |
Definition at line 201 of file DQUtilities.py.
| python.DQUtilities.IDBSDefectData.idbsDefects = [d for d in self.db.defect_names if d.startswith('ID_BS_') or d == 'LUMI_VDM'] |
Definition at line 236 of file DQUtilities.py.
|
static |
Definition at line 214 of file DQUtilities.py.
|
static |
Definition at line 213 of file DQUtilities.py.
|
static |
Definition at line 212 of file DQUtilities.py.