Definition at line 380 of file mergeEnergyRamps.py.
◆ __init__()
def mergeEnergyRamps.GainsFromOracle.__init__ |
( |
|
self | ) |
|
Definition at line 381 of file mergeEnergyRamps.py.
383 self.default_gains={}
384 self.UNIX2COOL = 1000000000
387 dbSvc = cool.DatabaseSvcFactory.databaseService()
389 dbString =
'oracle://ATLAS_COOLPROD;schema=ATLAS_COOLONL_TRIGGER;dbname=CONDBR2'
391 db = dbSvc.openDatabase(dbString,
False)
392 except Exception
as e:
393 print (
'Error: Problem opening database', e)
396 folder_name =
"/TRIGGER/Receivers/Factors/CalibGains"
397 folder=db.getFolder(folder_name)
399 startUtime =
int(time.time())
400 endUtime =
int(time.time())
401 startValKey = startUtime * self.UNIX2COOL
402 endValKey = endUtime * self.UNIX2COOL
403 chsel = cool.ChannelSelection(0,sys.maxsize)
406 itr=folder.browseObjects(startValKey, endValKey, chsel)
407 except Exception
as e:
412 ReceiverId = hex(
int(row.channelId()))
413 payload = row.payload()
414 gain = payload[
'factor']
415 self.default_gains[ReceiverId]=gain
◆ getGoodGains()
def mergeEnergyRamps.GainsFromOracle.getGoodGains |
( |
|
self | ) |
|
◆ default_gains
mergeEnergyRamps.GainsFromOracle.default_gains |
◆ UNIX2COOL
mergeEnergyRamps.GainsFromOracle.UNIX2COOL |
The documentation for this class was generated from the following file: