ATLAS Offline Software
|
Functions | |
def | usage () |
Variables | |
runSince = sys.argv[1] | |
lbkSince = sys.argv[2] | |
runUntil = sys.argv[3] | |
lbkUntil = sys.argv[4] | |
inputFile_con = sys.argv[5] | |
inputFile_run = sys.argv[6] | |
iovSince_con = CaloCondTools.iovFromRunLumi(runSince,lbkSince) | |
iovUntil_con = CaloCondTools.iovFromRunLumi(runUntil,lbkUntil) | |
iovMin = cool.ValidityKeyMin | |
iovMax = cool.ValidityKeyMax | |
int | lbkdown = 0 |
int | lbkup = 4294967295 |
string | tagCon = "LARTimeCorrectionOflNonRunCon-00" |
string | tagRun = "LARTimeCorrectionOflRunCon-00" |
string | author = "dhu" |
string | comment = "Updated time constant values" |
g = cppyy.gbl | |
log = CaloCondLogger.getLogger("CaloTimeConsWriter") | |
db = CaloCondTools.openDb('SQLITE', 'COMP200', 'UPDATE') | |
spec = cool.RecordSpecification() | |
string | folderPath = CaloCondTools.getCaloPrefix()+"LAR/TimeCorrectionOfl/NonRunCon" |
string | folderTag = tagCon |
desc = CaloCondTools.getAthenaFolderDescr() | |
folder = db.getFolder(folderPath) | |
folderSpec = cool.FolderSpecification(cool.FolderVersioning.SINGLE_VERSION, spec) | |
gainDefVec_1 = g.std.vector('float')() | |
defVecLAr_1 = g.std.vector('std::vector<float>')() | |
dictionary | systemDict |
nChannel = info[0] | |
defVec = info[2] | |
sysName = info[3] | |
data_vir = cool.Record( spec ) | |
blob_vir = data_vir['CaloCondBlob16M'] | |
flt_vir = g.CaloCondBlobFlt.getInstance(blob_vir) | |
channelId = cool.ChannelId(systemId) | |
dictionary | fltDict_1 = {} |
data = cool.Record( spec ) | |
blob = data['CaloCondBlob16M'] | |
flt = g.CaloCondBlobFlt.getInstance(blob) | |
int | kbSize = float(blob.size()) / 1024 |
int | mbSize = float(kbSize) / 1024 |
lines = open(inputFile_con,"r").readlines() | |
fields = line.split() | |
systemId = int(fields[0]) | |
hash_offset = int(systemDict[systemId][1]) | |
hash_raw = int(fields[6]) | |
hash = hash_raw - hash_offset | |
hash_check = int(fields[7]) | |
gain = g.CaloCondUtils.getDbCaloGain(int(fields[8])) | |
febchanOffset = float(fields[9]) | |
errPar1 = float(fields[10]) | |
errPar2 = float(fields[11]) | |
enePar1 = float(fields[12]) | |
enePar2 = float(fields[13]) | |
enePar3 = float(fields[14]) | |
enePar4 = float(fields[15]) | |
enePar5 = float(fields[16]) | |
enePar6 = float(fields[17]) | |
enePar7 = float(fields[18]) | |
enePar8 = float(fields[19]) | |
enePar9 = float(fields[20]) | |
enePar10 = float(fields[21]) | |
enePar11 = float(fields[22]) | |
enePar12 = float(fields[23]) | |
enePar13 = float(fields[24]) | |
enePar14 = float(fields[25]) | |
enePar15 = float(fields[26]) | |
gainDefVec_2 = g.std.vector('float')() | |
defVecLAr_2 = g.std.vector('std::vector<float>')() | |
list | run_list = [] |
run = int(fields[0]) | |
dictionary | fltDict_2 = {} |
runId = int(fields[0]) | |
ftID = int(fields[5]) | |
runOffsetHigh = float(fields[6]) | |
runEntryHigh = float(fields[7]) | |
runOffsetMed = float(fields[8]) | |
runEntryMed = float(fields[9]) | |
runOffsetLow = float(fields[10]) | |
runEntryLow = float(fields[11]) | |
gain0 = g.CaloCondUtils.getDbCaloGain(0) | |
gain1 = g.CaloCondUtils.getDbCaloGain(1) | |
gain2 = g.CaloCondUtils.getDbCaloGain(2) | |
iovSince_run = CaloCondTools.iovFromRunLumi(runId,lbkdown) | |
iovUntil_run = CaloCondTools.iovFromRunLumi(runId,lbkup) | |
def CaloTime_fillDB.usage | ( | ) |
Definition at line 9 of file CaloTime_fillDB.py.
string CaloTime_fillDB.author = "dhu" |
Definition at line 59 of file CaloTime_fillDB.py.
CaloTime_fillDB.blob = data['CaloCondBlob16M'] |
Definition at line 164 of file CaloTime_fillDB.py.
CaloTime_fillDB.blob_vir = data_vir['CaloCondBlob16M'] |
Definition at line 142 of file CaloTime_fillDB.py.
CaloTime_fillDB.channelId = cool.ChannelId(systemId) |
Definition at line 147 of file CaloTime_fillDB.py.
string CaloTime_fillDB.comment = "Updated time constant values" |
Definition at line 60 of file CaloTime_fillDB.py.
CaloTime_fillDB.data = cool.Record( spec ) |
Definition at line 163 of file CaloTime_fillDB.py.
CaloTime_fillDB.data_vir = cool.Record( spec ) |
Definition at line 141 of file CaloTime_fillDB.py.
CaloTime_fillDB.db = CaloCondTools.openDb('SQLITE', 'COMP200', 'UPDATE') |
Definition at line 75 of file CaloTime_fillDB.py.
CaloTime_fillDB.defVec = info[2] |
Definition at line 138 of file CaloTime_fillDB.py.
CaloTime_fillDB.defVecLAr_1 = g.std.vector('std::vector<float>')() |
Definition at line 119 of file CaloTime_fillDB.py.
CaloTime_fillDB.defVecLAr_2 = g.std.vector('std::vector<float>')() |
Definition at line 297 of file CaloTime_fillDB.py.
CaloTime_fillDB.desc = CaloCondTools.getAthenaFolderDescr() |
Definition at line 86 of file CaloTime_fillDB.py.
CaloTime_fillDB.enePar1 = float(fields[12]) |
Definition at line 190 of file CaloTime_fillDB.py.
CaloTime_fillDB.enePar10 = float(fields[21]) |
Definition at line 199 of file CaloTime_fillDB.py.
CaloTime_fillDB.enePar11 = float(fields[22]) |
Definition at line 200 of file CaloTime_fillDB.py.
CaloTime_fillDB.enePar12 = float(fields[23]) |
Definition at line 201 of file CaloTime_fillDB.py.
CaloTime_fillDB.enePar13 = float(fields[24]) |
Definition at line 202 of file CaloTime_fillDB.py.
CaloTime_fillDB.enePar14 = float(fields[25]) |
Definition at line 203 of file CaloTime_fillDB.py.
CaloTime_fillDB.enePar15 = float(fields[26]) |
Definition at line 204 of file CaloTime_fillDB.py.
CaloTime_fillDB.enePar2 = float(fields[13]) |
Definition at line 191 of file CaloTime_fillDB.py.
CaloTime_fillDB.enePar3 = float(fields[14]) |
Definition at line 192 of file CaloTime_fillDB.py.
CaloTime_fillDB.enePar4 = float(fields[15]) |
Definition at line 193 of file CaloTime_fillDB.py.
CaloTime_fillDB.enePar5 = float(fields[16]) |
Definition at line 194 of file CaloTime_fillDB.py.
CaloTime_fillDB.enePar6 = float(fields[17]) |
Definition at line 195 of file CaloTime_fillDB.py.
CaloTime_fillDB.enePar7 = float(fields[18]) |
Definition at line 196 of file CaloTime_fillDB.py.
CaloTime_fillDB.enePar8 = float(fields[19]) |
Definition at line 197 of file CaloTime_fillDB.py.
CaloTime_fillDB.enePar9 = float(fields[20]) |
Definition at line 198 of file CaloTime_fillDB.py.
CaloTime_fillDB.errPar1 = float(fields[10]) |
Definition at line 188 of file CaloTime_fillDB.py.
CaloTime_fillDB.errPar2 = float(fields[11]) |
Definition at line 189 of file CaloTime_fillDB.py.
CaloTime_fillDB.febchanOffset = float(fields[9]) |
Definition at line 187 of file CaloTime_fillDB.py.
CaloTime_fillDB.fields = line.split() |
Definition at line 179 of file CaloTime_fillDB.py.
dictionary CaloTime_fillDB.flt = g.CaloCondBlobFlt.getInstance(blob) |
Definition at line 165 of file CaloTime_fillDB.py.
CaloTime_fillDB.flt_vir = g.CaloCondBlobFlt.getInstance(blob_vir) |
Definition at line 143 of file CaloTime_fillDB.py.
dictionary CaloTime_fillDB.fltDict_1 = {} |
Definition at line 153 of file CaloTime_fillDB.py.
dictionary CaloTime_fillDB.fltDict_2 = {} |
Definition at line 328 of file CaloTime_fillDB.py.
CaloTime_fillDB.folder = db.getFolder(folderPath) |
Definition at line 88 of file CaloTime_fillDB.py.
string CaloTime_fillDB.folderPath = CaloCondTools.getCaloPrefix()+"LAR/TimeCorrectionOfl/NonRunCon" |
Definition at line 83 of file CaloTime_fillDB.py.
CaloTime_fillDB.folderSpec = cool.FolderSpecification(cool.FolderVersioning.SINGLE_VERSION, spec) |
Definition at line 92 of file CaloTime_fillDB.py.
string CaloTime_fillDB.folderTag = tagCon |
Definition at line 84 of file CaloTime_fillDB.py.
CaloTime_fillDB.ftID = int(fields[5]) |
Definition at line 348 of file CaloTime_fillDB.py.
CaloTime_fillDB.g = cppyy.gbl |
Definition at line 68 of file CaloTime_fillDB.py.
CaloTime_fillDB.gain = g.CaloCondUtils.getDbCaloGain(int(fields[8])) |
Definition at line 186 of file CaloTime_fillDB.py.
CaloTime_fillDB.gain0 = g.CaloCondUtils.getDbCaloGain(0) |
Definition at line 355 of file CaloTime_fillDB.py.
CaloTime_fillDB.gain1 = g.CaloCondUtils.getDbCaloGain(1) |
Definition at line 356 of file CaloTime_fillDB.py.
CaloTime_fillDB.gain2 = g.CaloCondUtils.getDbCaloGain(2) |
Definition at line 357 of file CaloTime_fillDB.py.
CaloTime_fillDB.gainDefVec_1 = g.std.vector('float')() |
Definition at line 99 of file CaloTime_fillDB.py.
CaloTime_fillDB.gainDefVec_2 = g.std.vector('float')() |
Definition at line 293 of file CaloTime_fillDB.py.
CaloTime_fillDB.hash = hash_raw - hash_offset |
Definition at line 184 of file CaloTime_fillDB.py.
CaloTime_fillDB.hash_check = int(fields[7]) |
Definition at line 185 of file CaloTime_fillDB.py.
CaloTime_fillDB.hash_offset = int(systemDict[systemId][1]) |
Definition at line 182 of file CaloTime_fillDB.py.
CaloTime_fillDB.hash_raw = int(fields[6]) |
Definition at line 183 of file CaloTime_fillDB.py.
CaloTime_fillDB.inputFile_con = sys.argv[5] |
Definition at line 36 of file CaloTime_fillDB.py.
CaloTime_fillDB.inputFile_run = sys.argv[6] |
Definition at line 37 of file CaloTime_fillDB.py.
CaloTime_fillDB.iovMax = cool.ValidityKeyMax |
Definition at line 44 of file CaloTime_fillDB.py.
CaloTime_fillDB.iovMin = cool.ValidityKeyMin |
Definition at line 43 of file CaloTime_fillDB.py.
Definition at line 40 of file CaloTime_fillDB.py.
Definition at line 373 of file CaloTime_fillDB.py.
Definition at line 41 of file CaloTime_fillDB.py.
Definition at line 374 of file CaloTime_fillDB.py.
int CaloTime_fillDB.kbSize = float(blob.size()) / 1024 |
Definition at line 168 of file CaloTime_fillDB.py.
int CaloTime_fillDB.lbkdown = 0 |
Definition at line 52 of file CaloTime_fillDB.py.
CaloTime_fillDB.lbkSince = sys.argv[2] |
Definition at line 20 of file CaloTime_fillDB.py.
CaloTime_fillDB.lbkUntil = sys.argv[4] |
Definition at line 22 of file CaloTime_fillDB.py.
int CaloTime_fillDB.lbkup = 4294967295 |
Definition at line 53 of file CaloTime_fillDB.py.
CaloTime_fillDB.lines = open(inputFile_con,"r").readlines() |
Definition at line 176 of file CaloTime_fillDB.py.
CaloTime_fillDB.log = CaloCondLogger.getLogger("CaloTimeConsWriter") |
Definition at line 72 of file CaloTime_fillDB.py.
int CaloTime_fillDB.mbSize = float(kbSize) / 1024 |
Definition at line 170 of file CaloTime_fillDB.py.
int CaloTime_fillDB.nChannel = info[0] |
Definition at line 137 of file CaloTime_fillDB.py.
CaloTime_fillDB.run = int(fields[0]) |
Definition at line 319 of file CaloTime_fillDB.py.
list CaloTime_fillDB.run_list = [] |
Definition at line 313 of file CaloTime_fillDB.py.
CaloTime_fillDB.runEntryHigh = float(fields[7]) |
Definition at line 350 of file CaloTime_fillDB.py.
CaloTime_fillDB.runEntryLow = float(fields[11]) |
Definition at line 354 of file CaloTime_fillDB.py.
CaloTime_fillDB.runEntryMed = float(fields[9]) |
Definition at line 352 of file CaloTime_fillDB.py.
CaloTime_fillDB.runId = int(fields[0]) |
Definition at line 347 of file CaloTime_fillDB.py.
CaloTime_fillDB.runOffsetHigh = float(fields[6]) |
Definition at line 349 of file CaloTime_fillDB.py.
CaloTime_fillDB.runOffsetLow = float(fields[10]) |
Definition at line 353 of file CaloTime_fillDB.py.
CaloTime_fillDB.runOffsetMed = float(fields[8]) |
Definition at line 351 of file CaloTime_fillDB.py.
CaloTime_fillDB.runSince = sys.argv[1] |
Definition at line 19 of file CaloTime_fillDB.py.
CaloTime_fillDB.runUntil = sys.argv[3] |
Definition at line 21 of file CaloTime_fillDB.py.
CaloTime_fillDB.spec = cool.RecordSpecification() |
Definition at line 79 of file CaloTime_fillDB.py.
dictionary CaloTime_fillDB.sysName = info[3] |
Definition at line 139 of file CaloTime_fillDB.py.
dictionary CaloTime_fillDB.systemDict |
Definition at line 126 of file CaloTime_fillDB.py.
CaloTime_fillDB.systemId = int(fields[0]) |
Definition at line 181 of file CaloTime_fillDB.py.
string CaloTime_fillDB.tagCon = "LARTimeCorrectionOflNonRunCon-00" |
Definition at line 56 of file CaloTime_fillDB.py.
string CaloTime_fillDB.tagRun = "LARTimeCorrectionOflRunCon-00" |
Definition at line 57 of file CaloTime_fillDB.py.