ATLAS Offline Software
Namespaces | Functions | Variables
CaloNoise_fillDB.py File Reference

Go to the source code of this file.

Namespaces

 CaloNoise_fillDB
 

Functions

def CaloNoise_fillDB.usage ()
 

Variables

 CaloNoise_fillDB.runSince = sys.argv[1]
 
 CaloNoise_fillDB.lbkSince = sys.argv[2]
 
 CaloNoise_fillDB.runUntil = sys.argv[3]
 
 CaloNoise_fillDB.lbkUntil = sys.argv[4]
 
 CaloNoise_fillDB.tag = sys.argv[5]
 
 CaloNoise_fillDB.inputFile = sys.argv[6]
 
 CaloNoise_fillDB.filename = sys.argv[7]
 
 CaloNoise_fillDB.dbname = sys.argv[8]
 
 CaloNoise_fillDB.folderPath = sys.argv[9]
 
 CaloNoise_fillDB.mu = int(sys.argv[10])
 
 CaloNoise_fillDB.dt = int(sys.argv[11])
 
 CaloNoise_fillDB.iovSince = CaloCondTools.iovFromRunLumi(runSince,lbkSince)
 
 CaloNoise_fillDB.iovUntil = cool.ValidityKeyMax
 
string CaloNoise_fillDB.author = "gunal"
 
string CaloNoise_fillDB.comment = "Updated noise values"
 
 CaloNoise_fillDB.log = CaloCondLogger.getLogger("CaloNoiseWriter")
 
 CaloNoise_fillDB.dbSvc = cool.DatabaseSvcFactory.databaseService()
 
 CaloNoise_fillDB.db = dbSvc.openDatabase("sqlite://;schema="+filename+";dbname="+dbname, False)
 
 CaloNoise_fillDB.spec = cool.RecordSpecification()
 
 CaloNoise_fillDB.fspec = cool.FolderSpecification(cool.FolderVersioning.MULTI_VERSION, spec)
 
 CaloNoise_fillDB.folderTag = tag
 
 CaloNoise_fillDB.desc = CaloCondTools.getAthenaFolderDescr()
 
 CaloNoise_fillDB.folder = db.getFolder(folderPath)
 
 CaloNoise_fillDB.gainDefVec = ROOT.std.vector('float')()
 
 CaloNoise_fillDB.defVecLAr = ROOT.std.vector('std::vector<float>')()
 
 CaloNoise_fillDB.defVecTile = ROOT.std.vector('std::vector<float>')()
 
dictionary CaloNoise_fillDB.systemDict
 
dictionary CaloNoise_fillDB.fltDict = {}
 
 CaloNoise_fillDB.nChannel = info[0]
 
 CaloNoise_fillDB.defVec = info[2]
 
 CaloNoise_fillDB.sysName = info[3]
 
 CaloNoise_fillDB.data = cool.Record( spec )
 
 CaloNoise_fillDB.blob = data['CaloCondBlob16M']
 
 CaloNoise_fillDB.flt = ROOT.CaloCondBlobFlt.getInstance(blob)
 
int CaloNoise_fillDB.mbSize = float(blob.size()) / 1024.
 
 CaloNoise_fillDB.lines = open(inputFile,"r").readlines()
 
 CaloNoise_fillDB.fields = line.split()
 
 CaloNoise_fillDB.systemId = int(fields[0])
 
dictionary CaloNoise_fillDB.hash = int(fields[1]) - systemDict[systemId][1]
 
 CaloNoise_fillDB.gain = ROOT.CaloCondUtils.getDbCaloGain(int(fields[2]))
 
 CaloNoise_fillDB.noiseA = float(fields[3])
 
 CaloNoise_fillDB.noiseB = float(fields[4])
 
 CaloNoise_fillDB.channelId = cool.ChannelId(systemId)