ATLAS Offline Software
Variables
CaloCondBlobAlgs_fillNoiseFromASCII Namespace Reference

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)
 

Variable Documentation

◆ author

string CaloCondBlobAlgs_fillNoiseFromASCII.author = "ngollub"

Definition at line 26 of file CaloCondBlobAlgs_fillNoiseFromASCII.py.

◆ blob

CaloCondBlobAlgs_fillNoiseFromASCII.blob = data['CaloCondBlob16M']

Definition at line 96 of file CaloCondBlobAlgs_fillNoiseFromASCII.py.

◆ channelId

CaloCondBlobAlgs_fillNoiseFromASCII.channelId = cool.ChannelId(systemId)

Definition at line 122 of file CaloCondBlobAlgs_fillNoiseFromASCII.py.

◆ comment

string CaloCondBlobAlgs_fillNoiseFromASCII.comment = "Default cell noise values from Guillaume"

Definition at line 27 of file CaloCondBlobAlgs_fillNoiseFromASCII.py.

◆ data

CaloCondBlobAlgs_fillNoiseFromASCII.data = cool.Record( spec )

Definition at line 95 of file CaloCondBlobAlgs_fillNoiseFromASCII.py.

◆ db

CaloCondBlobAlgs_fillNoiseFromASCII.db = CaloCondTools.openDb('SQLITE', 'COMP200', 'UPDATE')

Definition at line 43 of file CaloCondBlobAlgs_fillNoiseFromASCII.py.

◆ defVec

CaloCondBlobAlgs_fillNoiseFromASCII.defVec = info[2]

Definition at line 92 of file CaloCondBlobAlgs_fillNoiseFromASCII.py.

◆ defVecLAr

CaloCondBlobAlgs_fillNoiseFromASCII.defVecLAr = g.std.vector('std::vector<float>')()

Definition at line 69 of file CaloCondBlobAlgs_fillNoiseFromASCII.py.

◆ defVecTile

CaloCondBlobAlgs_fillNoiseFromASCII.defVecTile = g.std.vector('std::vector<float>')()

Definition at line 74 of file CaloCondBlobAlgs_fillNoiseFromASCII.py.

◆ desc

CaloCondBlobAlgs_fillNoiseFromASCII.desc = CaloCondTools.getAthenaFolderDescr()

Definition at line 54 of file CaloCondBlobAlgs_fillNoiseFromASCII.py.

◆ fields

CaloCondBlobAlgs_fillNoiseFromASCII.fields = line.split()

Definition at line 106 of file CaloCondBlobAlgs_fillNoiseFromASCII.py.

◆ flt

dictionary CaloCondBlobAlgs_fillNoiseFromASCII.flt = g.CaloCondBlobFlt.getInstance(blob)

Definition at line 97 of file CaloCondBlobAlgs_fillNoiseFromASCII.py.

◆ fltDict

dictionary CaloCondBlobAlgs_fillNoiseFromASCII.fltDict = {}

Definition at line 89 of file CaloCondBlobAlgs_fillNoiseFromASCII.py.

◆ folder

CaloCondBlobAlgs_fillNoiseFromASCII.folder = db.getFolder(folderPath)

Definition at line 56 of file CaloCondBlobAlgs_fillNoiseFromASCII.py.

◆ folderPath

string CaloCondBlobAlgs_fillNoiseFromASCII.folderPath = CaloCondTools.getCaloPrefix()+"Noise/CellNoise"

Definition at line 51 of file CaloCondBlobAlgs_fillNoiseFromASCII.py.

◆ folderTag

CaloCondBlobAlgs_fillNoiseFromASCII.folderTag = g.CaloCondUtils.getFullTag(folderPath,tag)

Definition at line 52 of file CaloCondBlobAlgs_fillNoiseFromASCII.py.

◆ g

CaloCondBlobAlgs_fillNoiseFromASCII.g = cppyy.gbl

Definition at line 36 of file CaloCondBlobAlgs_fillNoiseFromASCII.py.

◆ gain

CaloCondBlobAlgs_fillNoiseFromASCII.gain = g.CaloCondUtils.getDbCaloGain(int(fields[2]))

Definition at line 110 of file CaloCondBlobAlgs_fillNoiseFromASCII.py.

◆ gainDefVec

CaloCondBlobAlgs_fillNoiseFromASCII.gainDefVec = g.std.vector('float')()

Definition at line 65 of file CaloCondBlobAlgs_fillNoiseFromASCII.py.

◆ hash

dictionary CaloCondBlobAlgs_fillNoiseFromASCII.hash = int(fields[1]) - systemDict[systemId][1]

Definition at line 109 of file CaloCondBlobAlgs_fillNoiseFromASCII.py.

◆ inputFile

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.

◆ iovSince

CaloCondBlobAlgs_fillNoiseFromASCII.iovSince = CaloCondTools.iovFromRunLumi(runSince,lbkSince)

Definition at line 21 of file CaloCondBlobAlgs_fillNoiseFromASCII.py.

◆ iovUntil

CaloCondBlobAlgs_fillNoiseFromASCII.iovUntil = cool.ValidityKeyMax

Definition at line 22 of file CaloCondBlobAlgs_fillNoiseFromASCII.py.

◆ lbkSince

int CaloCondBlobAlgs_fillNoiseFromASCII.lbkSince = 0

Definition at line 20 of file CaloCondBlobAlgs_fillNoiseFromASCII.py.

◆ lines

CaloCondBlobAlgs_fillNoiseFromASCII.lines = open(inputFile,"r").readlines()

Definition at line 104 of file CaloCondBlobAlgs_fillNoiseFromASCII.py.

◆ log

CaloCondBlobAlgs_fillNoiseFromASCII.log = CaloCondLogger.getLogger("CaloNoiseWriter")

Definition at line 40 of file CaloCondBlobAlgs_fillNoiseFromASCII.py.

◆ mbSize

int CaloCondBlobAlgs_fillNoiseFromASCII.mbSize = float(blob.size()) / 1024.

Definition at line 100 of file CaloCondBlobAlgs_fillNoiseFromASCII.py.

◆ nChannel

CaloCondBlobAlgs_fillNoiseFromASCII.nChannel = info[0]

Definition at line 91 of file CaloCondBlobAlgs_fillNoiseFromASCII.py.

◆ noiseA

CaloCondBlobAlgs_fillNoiseFromASCII.noiseA = float(fields[3])

Definition at line 111 of file CaloCondBlobAlgs_fillNoiseFromASCII.py.

◆ noiseB

CaloCondBlobAlgs_fillNoiseFromASCII.noiseB = float(fields[4])

Definition at line 112 of file CaloCondBlobAlgs_fillNoiseFromASCII.py.

◆ runSince

int CaloCondBlobAlgs_fillNoiseFromASCII.runSince = 0

Definition at line 19 of file CaloCondBlobAlgs_fillNoiseFromASCII.py.

◆ spec

CaloCondBlobAlgs_fillNoiseFromASCII.spec = cool.RecordSpecification()

Definition at line 47 of file CaloCondBlobAlgs_fillNoiseFromASCII.py.

◆ sysName

dictionary CaloCondBlobAlgs_fillNoiseFromASCII.sysName = info[3]

Definition at line 93 of file CaloCondBlobAlgs_fillNoiseFromASCII.py.

◆ systemDict

dictionary CaloCondBlobAlgs_fillNoiseFromASCII.systemDict
Initial value:
1 = { 0 : (31872, 0, defVecLAr , 'EMEC, z<0'),
2  1 : (54784, 31872, defVecLAr , 'EMB , z<0'),
3  2 : (54784, 86656, defVecLAr , 'EMB , z>0'),
4  3 : (31872, 141440, defVecLAr , 'EMEC, z>0'),
5  16 : ( 5632, 0, defVecLAr , 'HEC' ),
6  32 : ( 3524, 0, defVecLAr , 'FCAL' ),
7  48 : ( 5184, 0, defVecTile, 'TILE' )
8  }

Definition at line 81 of file CaloCondBlobAlgs_fillNoiseFromASCII.py.

◆ systemId

CaloCondBlobAlgs_fillNoiseFromASCII.systemId = int(fields[0])

Definition at line 108 of file CaloCondBlobAlgs_fillNoiseFromASCII.py.

◆ tag

string CaloCondBlobAlgs_fillNoiseFromASCII.tag = "000-00"

Definition at line 24 of file CaloCondBlobAlgs_fillNoiseFromASCII.py.