ATLAS Offline Software
Namespaces | Variables
CaloCondBlobAlgs_fillPedestalFromASCII.py File Reference

Go to the source code of this file.

Namespaces

 CaloCondBlobAlgs_fillPedestalFromASCII
 

Variables

string CaloCondBlobAlgs_fillPedestalFromASCII.inputFile = "pedestal.txt"
 
int CaloCondBlobAlgs_fillPedestalFromASCII.runSince = 0
 
int CaloCondBlobAlgs_fillPedestalFromASCII.lbkSince = 0
 
 CaloCondBlobAlgs_fillPedestalFromASCII.iovSince = CaloCondTools.iovFromRunLumi(runSince,lbkSince)
 
 CaloCondBlobAlgs_fillPedestalFromASCII.iovUntil = cool.ValidityKeyMax
 
string CaloCondBlobAlgs_fillPedestalFromASCII.tag = "000-00"
 
string CaloCondBlobAlgs_fillPedestalFromASCII.author = "ngollub"
 
string CaloCondBlobAlgs_fillPedestalFromASCII.comment = "to fill pedestal shifts"
 
 CaloCondBlobAlgs_fillPedestalFromASCII.g = cppyy.gbl
 
 CaloCondBlobAlgs_fillPedestalFromASCII.log = CaloCondLogger.getLogger("CaloNoiseWriter")
 
 CaloCondBlobAlgs_fillPedestalFromASCII.db = CaloCondTools.openDb('SQLITE', 'COMP200', 'UPDATE')
 
 CaloCondBlobAlgs_fillPedestalFromASCII.spec = cool.RecordSpecification()
 
string CaloCondBlobAlgs_fillPedestalFromASCII.folderPath = CaloCondTools.getCaloPrefix()+"Pedestal/CellPedestal"
 
 CaloCondBlobAlgs_fillPedestalFromASCII.folderTag = g.CaloCondUtils.getFullTag(folderPath,tag)
 
 CaloCondBlobAlgs_fillPedestalFromASCII.desc = CaloCondTools.getAthenaFolderDescr()
 
 CaloCondBlobAlgs_fillPedestalFromASCII.folder = db.getFolder(folderPath)
 
 CaloCondBlobAlgs_fillPedestalFromASCII.gainDefVec = g.std.vector('float')()
 
 CaloCondBlobAlgs_fillPedestalFromASCII.defVecLAr = g.std.vector('std::vector<float>')()
 
 CaloCondBlobAlgs_fillPedestalFromASCII.defVecTile = g.std.vector('std::vector<float>')()
 
dictionary CaloCondBlobAlgs_fillPedestalFromASCII.systemDict
 
dictionary CaloCondBlobAlgs_fillPedestalFromASCII.fltDict = {}
 
 CaloCondBlobAlgs_fillPedestalFromASCII.nChannel = info[0]
 
 CaloCondBlobAlgs_fillPedestalFromASCII.defVec = info[2]
 
 CaloCondBlobAlgs_fillPedestalFromASCII.sysName = info[3]
 
 CaloCondBlobAlgs_fillPedestalFromASCII.data = cool.Record( spec )
 
 CaloCondBlobAlgs_fillPedestalFromASCII.blob = data['CaloCondBlob16M']
 
 CaloCondBlobAlgs_fillPedestalFromASCII.flt = g.CaloCondBlobFlt.getInstance(blob)
 
int CaloCondBlobAlgs_fillPedestalFromASCII.mbSize = float(blob.size()) / 1024.
 
 CaloCondBlobAlgs_fillPedestalFromASCII.lines = open(inputFile,"r").readlines()
 
 CaloCondBlobAlgs_fillPedestalFromASCII.fields = line.split()
 
 CaloCondBlobAlgs_fillPedestalFromASCII.systemId = int(fields[0])
 
dictionary CaloCondBlobAlgs_fillPedestalFromASCII.hash = int(fields[1]) - systemDict[systemId][1]
 
 CaloCondBlobAlgs_fillPedestalFromASCII.gain = g.CaloCondUtils.getDbCaloGain(int(fields[2]))
 
 CaloCondBlobAlgs_fillPedestalFromASCII.noiseA = float(fields[3])
 
 CaloCondBlobAlgs_fillPedestalFromASCII.noiseB = float(fields[4])
 
 CaloCondBlobAlgs_fillPedestalFromASCII.channelId = cool.ChannelId(systemId)