ATLAS Offline Software
|
Variables | |
string | inputFile = "/afs/cern.ch/user/g/gunal/scratch0/AtlasOffline-12.0.6/calonoise.txt" |
int | runSince = 0 |
int | lbkSince = 0 |
iovSince = CaloCondTools.iovFromRunLumi(runSince,lbkSince) | |
iovUntil = cool.ValidityKeyMax | |
string | tag = "000-00" |
string | author = "ngollub" |
string | comment = "Default cell noise values from Guillaume" |
g = cppyy.gbl | |
log = CaloCondLogger.getLogger("CaloNoiseWriter") | |
db = CaloCondTools.openDb('SQLITE', 'COMP200', 'UPDATE') | |
spec = cool.RecordSpecification() | |
string | folderPath = CaloCondTools.getCaloPrefix()+"Noise/CellNoise" |
folderTag = g.CaloCondUtils.getFullTag(folderPath,tag) | |
desc = CaloCondTools.getAthenaFolderDescr() | |
folder = db.getFolder(folderPath) | |
gainDefVec = g.std.vector('float')() | |
defVecLAr = g.std.vector('std::vector<float>')() | |
defVecTile = g.std.vector('std::vector<float>')() | |
dictionary | systemDict |
dictionary | fltDict = {} |
nChannel = info[0] | |
defVec = info[2] | |
sysName = info[3] | |
data = cool.Record( spec ) | |
blob = data['CaloCondBlob16M'] | |
flt = g.CaloCondBlobFlt.getInstance(blob) | |
int | mbSize = float(blob.size()) / 1024. |
lines = open(inputFile,"r").readlines() | |
fields = line.split() | |
systemId = int(fields[0]) | |
dictionary | hash = int(fields[1]) - systemDict[systemId][1] |
gain = g.CaloCondUtils.getDbCaloGain(int(fields[2])) | |
noiseA = float(fields[3]) | |
noiseB = float(fields[4]) | |
channelId = cool.ChannelId(systemId) | |
string CaloCondBlobAlgs_fillNoiseFromASCII.author = "ngollub" |
Definition at line 26 of file CaloCondBlobAlgs_fillNoiseFromASCII.py.
CaloCondBlobAlgs_fillNoiseFromASCII.blob = data['CaloCondBlob16M'] |
Definition at line 96 of file CaloCondBlobAlgs_fillNoiseFromASCII.py.
CaloCondBlobAlgs_fillNoiseFromASCII.channelId = cool.ChannelId(systemId) |
Definition at line 122 of file CaloCondBlobAlgs_fillNoiseFromASCII.py.
string CaloCondBlobAlgs_fillNoiseFromASCII.comment = "Default cell noise values from Guillaume" |
Definition at line 27 of file CaloCondBlobAlgs_fillNoiseFromASCII.py.
CaloCondBlobAlgs_fillNoiseFromASCII.data = cool.Record( spec ) |
Definition at line 95 of file CaloCondBlobAlgs_fillNoiseFromASCII.py.
CaloCondBlobAlgs_fillNoiseFromASCII.db = CaloCondTools.openDb('SQLITE', 'COMP200', 'UPDATE') |
Definition at line 43 of file CaloCondBlobAlgs_fillNoiseFromASCII.py.
CaloCondBlobAlgs_fillNoiseFromASCII.defVec = info[2] |
Definition at line 92 of file CaloCondBlobAlgs_fillNoiseFromASCII.py.
CaloCondBlobAlgs_fillNoiseFromASCII.defVecLAr = g.std.vector('std::vector<float>')() |
Definition at line 69 of file CaloCondBlobAlgs_fillNoiseFromASCII.py.
CaloCondBlobAlgs_fillNoiseFromASCII.defVecTile = g.std.vector('std::vector<float>')() |
Definition at line 74 of file CaloCondBlobAlgs_fillNoiseFromASCII.py.
CaloCondBlobAlgs_fillNoiseFromASCII.desc = CaloCondTools.getAthenaFolderDescr() |
Definition at line 54 of file CaloCondBlobAlgs_fillNoiseFromASCII.py.
CaloCondBlobAlgs_fillNoiseFromASCII.fields = line.split() |
Definition at line 106 of file CaloCondBlobAlgs_fillNoiseFromASCII.py.
dictionary CaloCondBlobAlgs_fillNoiseFromASCII.flt = g.CaloCondBlobFlt.getInstance(blob) |
Definition at line 97 of file CaloCondBlobAlgs_fillNoiseFromASCII.py.
dictionary CaloCondBlobAlgs_fillNoiseFromASCII.fltDict = {} |
Definition at line 89 of file CaloCondBlobAlgs_fillNoiseFromASCII.py.
CaloCondBlobAlgs_fillNoiseFromASCII.folder = db.getFolder(folderPath) |
Definition at line 56 of file CaloCondBlobAlgs_fillNoiseFromASCII.py.
string CaloCondBlobAlgs_fillNoiseFromASCII.folderPath = CaloCondTools.getCaloPrefix()+"Noise/CellNoise" |
Definition at line 51 of file CaloCondBlobAlgs_fillNoiseFromASCII.py.
CaloCondBlobAlgs_fillNoiseFromASCII.folderTag = g.CaloCondUtils.getFullTag(folderPath,tag) |
Definition at line 52 of file CaloCondBlobAlgs_fillNoiseFromASCII.py.
CaloCondBlobAlgs_fillNoiseFromASCII.g = cppyy.gbl |
Definition at line 36 of file CaloCondBlobAlgs_fillNoiseFromASCII.py.
CaloCondBlobAlgs_fillNoiseFromASCII.gain = g.CaloCondUtils.getDbCaloGain(int(fields[2])) |
Definition at line 110 of file CaloCondBlobAlgs_fillNoiseFromASCII.py.
CaloCondBlobAlgs_fillNoiseFromASCII.gainDefVec = g.std.vector('float')() |
Definition at line 65 of file CaloCondBlobAlgs_fillNoiseFromASCII.py.
dictionary CaloCondBlobAlgs_fillNoiseFromASCII.hash = int(fields[1]) - systemDict[systemId][1] |
Definition at line 109 of file CaloCondBlobAlgs_fillNoiseFromASCII.py.
string CaloCondBlobAlgs_fillNoiseFromASCII.inputFile = "/afs/cern.ch/user/g/gunal/scratch0/AtlasOffline-12.0.6/calonoise.txt" |
Definition at line 17 of file CaloCondBlobAlgs_fillNoiseFromASCII.py.
Definition at line 21 of file CaloCondBlobAlgs_fillNoiseFromASCII.py.
CaloCondBlobAlgs_fillNoiseFromASCII.iovUntil = cool.ValidityKeyMax |
Definition at line 22 of file CaloCondBlobAlgs_fillNoiseFromASCII.py.
int CaloCondBlobAlgs_fillNoiseFromASCII.lbkSince = 0 |
Definition at line 20 of file CaloCondBlobAlgs_fillNoiseFromASCII.py.
CaloCondBlobAlgs_fillNoiseFromASCII.lines = open(inputFile,"r").readlines() |
Definition at line 104 of file CaloCondBlobAlgs_fillNoiseFromASCII.py.
CaloCondBlobAlgs_fillNoiseFromASCII.log = CaloCondLogger.getLogger("CaloNoiseWriter") |
Definition at line 40 of file CaloCondBlobAlgs_fillNoiseFromASCII.py.
int CaloCondBlobAlgs_fillNoiseFromASCII.mbSize = float(blob.size()) / 1024. |
Definition at line 100 of file CaloCondBlobAlgs_fillNoiseFromASCII.py.
CaloCondBlobAlgs_fillNoiseFromASCII.nChannel = info[0] |
Definition at line 91 of file CaloCondBlobAlgs_fillNoiseFromASCII.py.
CaloCondBlobAlgs_fillNoiseFromASCII.noiseA = float(fields[3]) |
Definition at line 111 of file CaloCondBlobAlgs_fillNoiseFromASCII.py.
CaloCondBlobAlgs_fillNoiseFromASCII.noiseB = float(fields[4]) |
Definition at line 112 of file CaloCondBlobAlgs_fillNoiseFromASCII.py.
int CaloCondBlobAlgs_fillNoiseFromASCII.runSince = 0 |
Definition at line 19 of file CaloCondBlobAlgs_fillNoiseFromASCII.py.
CaloCondBlobAlgs_fillNoiseFromASCII.spec = cool.RecordSpecification() |
Definition at line 47 of file CaloCondBlobAlgs_fillNoiseFromASCII.py.
dictionary CaloCondBlobAlgs_fillNoiseFromASCII.sysName = info[3] |
Definition at line 93 of file CaloCondBlobAlgs_fillNoiseFromASCII.py.
dictionary CaloCondBlobAlgs_fillNoiseFromASCII.systemDict |
Definition at line 81 of file CaloCondBlobAlgs_fillNoiseFromASCII.py.
CaloCondBlobAlgs_fillNoiseFromASCII.systemId = int(fields[0]) |
Definition at line 108 of file CaloCondBlobAlgs_fillNoiseFromASCII.py.
string CaloCondBlobAlgs_fillNoiseFromASCII.tag = "000-00" |
Definition at line 24 of file CaloCondBlobAlgs_fillNoiseFromASCII.py.