![]() |
ATLAS Offline Software
|
Public Member Functions | |
| __init__ (self, fileName, forceNew=False, dbName='IDBSDQ', tag='nominal', user='sys:dqBeamSpot') | |
| __del__ (self) | |
| connect (self, fileName, forceNew=False, dbName='IDBSDQ', tag='nominal') | |
| defectType (self, t) | |
| add (self, runMin=0, runMax=(1<< 31) -1, lbMin=0, lbMax=(1<< 32) -1) | |
| complete (self, runMin, runMax) | |
| writeDefects (self, tag='nominal', nonpresent=False) | |
| dump (self, filename=None) | |
Public Attributes | |
| defect = None | |
| iovs = IOVSet() | |
| user = user | |
| db = DefectsDB(connString, read_only=False, create=True, tag=(tag, 'HEAD')) | |
| officialDb = DefectsDB() | |
Protected Member Functions | |
| _writeDefect (self, defect, since, until, tag='nominal', description='', comment='', present=True, recoverable=False) | |
Class for writing BS defects to an sqlite file
Definition at line 19 of file DQUtilities.py.
| python.DQUtilities.IDBSDefectWriter.__init__ | ( | self, | |
| fileName, | |||
| forceNew = False, | |||
| dbName = 'IDBSDQ', | |||
| tag = 'nominal', | |||
| user = 'sys:dqBeamSpot' ) |
Initialise database connection
Definition at line 24 of file DQUtilities.py.
| python.DQUtilities.IDBSDefectWriter.__del__ | ( | self | ) |
Delete db to clear connection
Definition at line 40 of file DQUtilities.py.
|
protected |
Write a single defect to the database
Definition at line 158 of file DQUtilities.py.
| python.DQUtilities.IDBSDefectWriter.add | ( | self, | |
| runMin = 0, | |||
| runMax = (1 << 31)-1, | |||
| lbMin = 0, | |||
| lbMax = (1 << 32)-1 ) |
Add iovs which are NOT defective to the list Note, lbMax is exclusive here (and inclusive when shown on defect web page).
Definition at line 72 of file DQUtilities.py.
| python.DQUtilities.IDBSDefectWriter.complete | ( | self, | |
| runMin, | |||
| runMax ) |
Complete a list of IoVs to cover all LBs in a run, treating empty ones as having 'emptyState'
Definition at line 87 of file DQUtilities.py.
| python.DQUtilities.IDBSDefectWriter.connect | ( | self, | |
| fileName, | |||
| forceNew = False, | |||
| dbName = 'IDBSDQ', | |||
| tag = 'nominal' ) |
Open connection to defect DB
Definition at line 50 of file DQUtilities.py.
| python.DQUtilities.IDBSDefectWriter.defectType | ( | self, | |
| t ) |
Set defect type
Definition at line 66 of file DQUtilities.py.
| python.DQUtilities.IDBSDefectWriter.dump | ( | self, | |
| filename = None ) |
Dump defects to a file given by filename or stdout if no filename given
Definition at line 170 of file DQUtilities.py.
| python.DQUtilities.IDBSDefectWriter.writeDefects | ( | self, | |
| tag = 'nominal', | |||
| nonpresent = False ) |
Write all defects to the database. If 'nonpresent' is True then write the absent ones too
Definition at line 147 of file DQUtilities.py.
| python.DQUtilities.IDBSDefectWriter.db = DefectsDB(connString, read_only=False, create=True, tag=(tag, 'HEAD')) |
Definition at line 60 of file DQUtilities.py.
| python.DQUtilities.IDBSDefectWriter.defect = None |
Definition at line 28 of file DQUtilities.py.
| python.DQUtilities.IDBSDefectWriter.iovs = IOVSet() |
Definition at line 29 of file DQUtilities.py.
| python.DQUtilities.IDBSDefectWriter.officialDb = DefectsDB() |
Definition at line 62 of file DQUtilities.py.
| python.DQUtilities.IDBSDefectWriter.user = user |
Definition at line 30 of file DQUtilities.py.