![]() |
ATLAS Offline Software
|
Public Member Functions | |
| def | __init__ (self) |
| def | getComment (self) |
| def | getBlobReader (self) |
| def | updateFromDb (self, db, folderPath, tag, runLumi, fillTable=1, mode=None, ros=-1, module=-1) |
| def | initialize (self, db, folderPath, tag="", runLumi=(MAXRUN, MAXLBK-1), mode=None, ros=-1, module=-1) |
| def | getAdcStatus (self, ros, drawer, channel, adc) |
| def | setAdcStatus (self, ros, drawer, channel, adc, status) |
| def | getAdcProblems (self, ros, drawer, channel, adc) |
| def | setAdcProblems (self, ros, drawer, channel, adc, problems) |
| def | addAdcProblem (self, ros, drawer, channel, adc, problem) |
| def | delAdcProblem (self, ros, drawer, channel, adc, problem) |
| def | decodeModule (self, module) |
| def | getADCStatus (self, module, channel, adc) |
| def | setADCStatus (self, module, channel, adc, status) |
| def | getADCProblems (self, module, channel, adc) |
| def | setADCProblems (self, module, channel, adc, problems) |
| def | addADCProblem (self, module, channel, adc, problem) |
| def | delADCProblem (self, module, channel, adc, problem) |
| def | listBadAdcs (self, rosBeg=0, modBeg=0, rosEnd=5, modEnd=64) |
| def | checkModuleForChanges (self, ros, drawer) |
| def | updateFromFile (self, fileName) |
| def | commitToDb (self, db, folderPath, tag, bitPatVer, author, comment, since, moduleList=[]) |
| def | getBadDefinition (self) |
| def | getBadTimingDefinition (self) |
Private Member Functions | |
| def | __getAdcIdx (self, ros, drawer, channel, adc) |
| def | __updateFromDb (self, db, folderPath, tag, runLumi, fillTable=1, ros=-1, module=-1) |
Private Attributes | |
| __newStat | |
| __oldStat | |
| __comment | |
| __mode | |
| __runLumi | |
| __db | |
| __folder | |
| __tag | |
| __reader | |
This class manages updates to the Tile Calorimeter bad channel database. The usual mode of operation should start with initializing this manager with a current set of bad channels from an existing database. The status of individual ADCs can then be modified using the setAdcStatus, updateFromFile or updateFromDb methods. In a final step, the changes are commited to the database using the commit method.
Definition at line 28 of file TileBchCrest.py.
| def python.TileBchCrest.TileBchMgr.__init__ | ( | self | ) |
Definition at line 39 of file TileBchCrest.py.
|
private |
Private function, calculating the index of a given ADC for the internal cache.
Definition at line 57 of file TileBchCrest.py.
|
private |
Updates the internal bad channel cache with the content found in the database. Server connection string or file name (db) has to be provided. Tag and runLumi are used to locate the set of bad channels to be read from the database.
Definition at line 65 of file TileBchCrest.py.
| def python.TileBchCrest.TileBchMgr.addADCProblem | ( | self, | |
| module, | |||
| channel, | |||
| adc, | |||
| problem | |||
| ) |
Sets a specific problem
Definition at line 303 of file TileBchCrest.py.
| def python.TileBchCrest.TileBchMgr.addAdcProblem | ( | self, | |
| ros, | |||
| drawer, | |||
| channel, | |||
| adc, | |||
| problem | |||
| ) |
Sets a specific problem
Definition at line 226 of file TileBchCrest.py.
| def python.TileBchCrest.TileBchMgr.checkModuleForChanges | ( | self, | |
| ros, | |||
| drawer | |||
| ) |
Returns: - if nothing changed : 0 - if something changed and complete drawer is now good : -1 - if something changed but drawer is not completely good: >0
Definition at line 350 of file TileBchCrest.py.
| def python.TileBchCrest.TileBchMgr.commitToDb | ( | self, | |
| db, | |||
| folderPath, | |||
| tag, | |||
| bitPatVer, | |||
| author, | |||
| comment, | |||
| since, | |||
moduleList = [] |
|||
| ) |
Commits the differences compared to the set of bad channels read in with the initialze function to the provided database. - author : author name (string) - comment : a comment (string) - sinceRun, sinceLbk : start of IOV for which bad channels are valid
Definition at line 409 of file TileBchCrest.py.
| def python.TileBchCrest.TileBchMgr.decodeModule | ( | self, | |
| module | |||
| ) |
| def python.TileBchCrest.TileBchMgr.delADCProblem | ( | self, | |
| module, | |||
| channel, | |||
| adc, | |||
| problem | |||
| ) |
Removes a specific problem
Definition at line 313 of file TileBchCrest.py.
| def python.TileBchCrest.TileBchMgr.delAdcProblem | ( | self, | |
| ros, | |||
| drawer, | |||
| channel, | |||
| adc, | |||
| problem | |||
| ) |
Removes a specific problem
Definition at line 235 of file TileBchCrest.py.
| def python.TileBchCrest.TileBchMgr.getADCProblems | ( | self, | |
| module, | |||
| channel, | |||
| adc | |||
| ) |
Returns a dictionary with { problemEnum : 'Description'}
Definition at line 278 of file TileBchCrest.py.
| def python.TileBchCrest.TileBchMgr.getAdcProblems | ( | self, | |
| ros, | |||
| drawer, | |||
| channel, | |||
| adc | |||
| ) |
Returns a dictionary with { problemEnum : 'Description'}
Definition at line 203 of file TileBchCrest.py.
| def python.TileBchCrest.TileBchMgr.getADCStatus | ( | self, | |
| module, | |||
| channel, | |||
| adc | |||
| ) |
Get TileBchStatus for a given ADC.
Definition at line 262 of file TileBchCrest.py.
| def python.TileBchCrest.TileBchMgr.getAdcStatus | ( | self, | |
| ros, | |||
| drawer, | |||
| channel, | |||
| adc | |||
| ) |
Get TileBchStatus for a given ADC.
Definition at line 189 of file TileBchCrest.py.
| def python.TileBchCrest.TileBchMgr.getBadDefinition | ( | self | ) |
Returns bad status definition
Definition at line 532 of file TileBchCrest.py.
| def python.TileBchCrest.TileBchMgr.getBadTimingDefinition | ( | self | ) |
Returns bad time status definition
Definition at line 538 of file TileBchCrest.py.
| def python.TileBchCrest.TileBchMgr.getBlobReader | ( | self | ) |
Definition at line 134 of file TileBchCrest.py.
| def python.TileBchCrest.TileBchMgr.getComment | ( | self | ) |
Definition at line 130 of file TileBchCrest.py.
| def python.TileBchCrest.TileBchMgr.initialize | ( | self, | |
| db, | |||
| folderPath, | |||
tag = "", |
|||
runLumi = (MAXRUN,MAXLBK-1), |
|||
mode = None, |
|||
ros = -1, |
|||
module = -1 |
|||
| ) |
Initializes the internal bad channel cache. Any changes applied to the cache previous to calling this function are lost. Typically this function is called once in the beginning to initialize the cache with a set of current bad channels.
Definition at line 144 of file TileBchCrest.py.
| def python.TileBchCrest.TileBchMgr.listBadAdcs | ( | self, | |
rosBeg = 0, |
|||
modBeg = 0, |
|||
rosEnd = 5, |
|||
modEnd = 64 |
|||
| ) |
| def python.TileBchCrest.TileBchMgr.setADCProblems | ( | self, | |
| module, | |||
| channel, | |||
| adc, | |||
| problems | |||
| ) |
| def python.TileBchCrest.TileBchMgr.setAdcProblems | ( | self, | |
| ros, | |||
| drawer, | |||
| channel, | |||
| adc, | |||
| problems | |||
| ) |
| def python.TileBchCrest.TileBchMgr.setADCStatus | ( | self, | |
| module, | |||
| channel, | |||
| adc, | |||
| status | |||
| ) |
Set TileBchStatus for a given ADC.
Definition at line 270 of file TileBchCrest.py.
| def python.TileBchCrest.TileBchMgr.setAdcStatus | ( | self, | |
| ros, | |||
| drawer, | |||
| channel, | |||
| adc, | |||
| status | |||
| ) |
Set TileBchStatus for a given ADC.
Definition at line 196 of file TileBchCrest.py.
| def python.TileBchCrest.TileBchMgr.updateFromDb | ( | self, | |
| db, | |||
| folderPath, | |||
| tag, | |||
| runLumi, | |||
fillTable = 1, |
|||
mode = None, |
|||
ros = -1, |
|||
module = -1 |
|||
| ) |
Definition at line 138 of file TileBchCrest.py.
| def python.TileBchCrest.TileBchMgr.updateFromFile | ( | self, | |
| fileName | |||
| ) |
Updates the internal bad channel cache with the content found in the file. The layout of the file has to follow the TileConditions ASCII file layout. NGO: change this at some point. In a file, not the status word (which depends on the bit pattern version) should be encoded, but the individual problems (enums). For this we need one line per ADC... this requires some modification in the reader.
Definition at line 374 of file TileBchCrest.py.
|
private |
Definition at line 48 of file TileBchCrest.py.
|
private |
Definition at line 51 of file TileBchCrest.py.
|
private |
Definition at line 52 of file TileBchCrest.py.
|
private |
Definition at line 49 of file TileBchCrest.py.
|
private |
Definition at line 45 of file TileBchCrest.py.
|
private |
Definition at line 46 of file TileBchCrest.py.
|
private |
Definition at line 54 of file TileBchCrest.py.
|
private |
Definition at line 50 of file TileBchCrest.py.
|
private |
Definition at line 53 of file TileBchCrest.py.
1.8.18