ATLAS Offline Software
Loading...
Searching...
No Matches
ReadCellNoiseFromCool Namespace Reference

Functions

 usage ()

Variables

str letters = "hS:s:t:f:r:l:n:c:g:i:bd"
list keywords = ["help","server=","schema=","tag=","folder=","run=","lumi=","channel=","cell=","gain=","index=","brief","double"]
 opts
 extraparams
int run = 2147483647
int lumi = 0
str server = ''
str schema = 'OFL2'
str folderPath = '/TILE/OFL02/NOISE/CELL'
str tag = 'UPD4'
int chan = 48
int cell = -1
int gain = -1
int index = -1
bool brief = False
bool doubl = False
 a = a.strip()
tuple tile = (chan==48)
 log = CaloCondLogger.getLogger("ReadCellNoise")
str cabling = 'RUN1'
 hashMgr = None
 hashMgrDef = TileCellTools.TileCellHashMgr(cabling=cabling)
 hashMgrA = TileCellTools.TileCellHashMgr("UpgradeA")
 hashMgrBC = TileCellTools.TileCellHashMgr("UpgradeBC")
 hashMgrABC = TileCellTools.TileCellHashMgr("UpgradeABC")
 db = CaloCondTools.openDbConn(schema, server)
 folderTag = TileCalibTools.getFolderTag(db, folderPath, tag )
 folder = db.getFolder(folderPath)
 iov = CaloCondTools.iovFromRunLumi( run, lumi )
 obj = folder.findObject( iov, chan, folderTag )
 blob = obj.payload()[0]
 blobFlt = cppyy.gbl.CaloCondBlobFlt.getInstance(blob)
 ncell = blobFlt.getNChans()
 ngain = blobFlt.getNGains()
 nval = blobFlt.getObjSizeUint32()
int cellmin = 0
 cellmax = ncell
int gainmin = 0
 gainmax = ngain
int indexmin = 0
 indexmax = nval
list name1 = ["","","0.0 "]
list names = []
str dm = " "
str msg = "%s%4d %s%d\t" % ( name1[0], cell, name1[1], gain)
 v = blobFlt.getData(cell, gain, index)

Function Documentation

◆ usage()

ReadCellNoiseFromCool.usage ( )

Definition at line 17 of file ReadCellNoiseFromCool.py.

17def usage():
18 print ("Usage: ",sys.argv[0]," [OPTION] ... ")
19 print ("Dumps noise constants from online or offline folders / tags")
20 print ("")
21 print ("-h, --help shows this help")
22 print ("-s, --schema= specify schema to use, ONL or OFL for RUN1 or ONL2 or OFL2 for RUN2 or MC")
23 print ("-S, --server= specify server - ORACLE or FRONTIER, default is FRONTIER")
24 print ("-f, --folder= specify status folder to use f.i. /TILE/OFL02/NOISE/CELL or /CALO/Noise/CellNoise ")
25 print ("-t, --tag= specify tag to use, f.i. UPD1 or UPD4 or tag suffix like 14TeV-N200_dT50-01")
26 print ("-r, --run= specify run number, by default uses latest iov")
27 print ("-l, --lumi= specify lumi block number, default is 0")
28 print ("-n, --channel= specify cool channel to read (48 by defalt)")
29 print ("-c, --cell= specify cell hash (0-5183), default is -1, means all cells")
30 print ("-g, --gain= specify gain to print (0-3), default is -1, means all gains")
31 print ("-i, --index= specify parameter index (0-4), default is -1, means all parameters")
32 print ("-b, --brief print only numbers without character names")
33 print ("-d, --double print values with double precision")
34
StatusCode usage()

Variable Documentation

◆ a

ReadCellNoiseFromCool.a = a.strip()

Definition at line 60 of file ReadCellNoiseFromCool.py.

◆ blob

ReadCellNoiseFromCool.blob = obj.payload()[0]

Definition at line 187 of file ReadCellNoiseFromCool.py.

◆ blobFlt

ReadCellNoiseFromCool.blobFlt = cppyy.gbl.CaloCondBlobFlt.getInstance(blob)

Definition at line 190 of file ReadCellNoiseFromCool.py.

◆ brief

bool ReadCellNoiseFromCool.brief = False

Definition at line 56 of file ReadCellNoiseFromCool.py.

◆ cabling

str ReadCellNoiseFromCool.cabling = 'RUN1'

Definition at line 154 of file ReadCellNoiseFromCool.py.

◆ cell

ReadCellNoiseFromCool.cell = -1

Definition at line 53 of file ReadCellNoiseFromCool.py.

◆ cellmax

int ReadCellNoiseFromCool.cellmax = ncell

Definition at line 213 of file ReadCellNoiseFromCool.py.

◆ cellmin

int ReadCellNoiseFromCool.cellmin = 0

Definition at line 212 of file ReadCellNoiseFromCool.py.

◆ chan

ReadCellNoiseFromCool.chan = 48

Definition at line 52 of file ReadCellNoiseFromCool.py.

◆ db

ReadCellNoiseFromCool.db = CaloCondTools.openDbConn(schema, server)

Definition at line 168 of file ReadCellNoiseFromCool.py.

◆ dm

str ReadCellNoiseFromCool.dm = " "

Definition at line 235 of file ReadCellNoiseFromCool.py.

◆ doubl

bool ReadCellNoiseFromCool.doubl = False

Definition at line 57 of file ReadCellNoiseFromCool.py.

◆ extraparams

ReadCellNoiseFromCool.extraparams

Definition at line 39 of file ReadCellNoiseFromCool.py.

◆ folder

ReadCellNoiseFromCool.folder = db.getFolder(folderPath)

Definition at line 181 of file ReadCellNoiseFromCool.py.

◆ folderPath

str ReadCellNoiseFromCool.folderPath = '/TILE/OFL02/NOISE/CELL'

Definition at line 50 of file ReadCellNoiseFromCool.py.

◆ folderTag

str ReadCellNoiseFromCool.folderTag = TileCalibTools.getFolderTag(db, folderPath, tag )

Definition at line 171 of file ReadCellNoiseFromCool.py.

◆ gain

ReadCellNoiseFromCool.gain = -1

Definition at line 54 of file ReadCellNoiseFromCool.py.

◆ gainmax

int ReadCellNoiseFromCool.gainmax = ngain

Definition at line 220 of file ReadCellNoiseFromCool.py.

◆ gainmin

int ReadCellNoiseFromCool.gainmin = 0

Definition at line 219 of file ReadCellNoiseFromCool.py.

◆ hashMgr

ReadCellNoiseFromCool.hashMgr = None

Definition at line 162 of file ReadCellNoiseFromCool.py.

◆ hashMgrA

ReadCellNoiseFromCool.hashMgrA = TileCellTools.TileCellHashMgr("UpgradeA")

Definition at line 164 of file ReadCellNoiseFromCool.py.

◆ hashMgrABC

ReadCellNoiseFromCool.hashMgrABC = TileCellTools.TileCellHashMgr("UpgradeABC")

Definition at line 166 of file ReadCellNoiseFromCool.py.

◆ hashMgrBC

ReadCellNoiseFromCool.hashMgrBC = TileCellTools.TileCellHashMgr("UpgradeBC")

Definition at line 165 of file ReadCellNoiseFromCool.py.

◆ hashMgrDef

ReadCellNoiseFromCool.hashMgrDef = TileCellTools.TileCellHashMgr(cabling=cabling)

Definition at line 163 of file ReadCellNoiseFromCool.py.

◆ index

ReadCellNoiseFromCool.index = -1

Definition at line 55 of file ReadCellNoiseFromCool.py.

◆ indexmax

int ReadCellNoiseFromCool.indexmax = nval

Definition at line 227 of file ReadCellNoiseFromCool.py.

◆ indexmin

int ReadCellNoiseFromCool.indexmin = 0

Definition at line 226 of file ReadCellNoiseFromCool.py.

◆ iov

ReadCellNoiseFromCool.iov = CaloCondTools.iovFromRunLumi( run, lumi )

Definition at line 184 of file ReadCellNoiseFromCool.py.

◆ keywords

list ReadCellNoiseFromCool.keywords = ["help","server=","schema=","tag=","folder=","run=","lumi=","channel=","cell=","gain=","index=","brief","double"]

Definition at line 36 of file ReadCellNoiseFromCool.py.

◆ letters

str ReadCellNoiseFromCool.letters = "hS:s:t:f:r:l:n:c:g:i:bd"

Definition at line 35 of file ReadCellNoiseFromCool.py.

◆ log

ReadCellNoiseFromCool.log = CaloCondLogger.getLogger("ReadCellNoise")

Definition at line 101 of file ReadCellNoiseFromCool.py.

◆ lumi

ReadCellNoiseFromCool.lumi = 0

Definition at line 47 of file ReadCellNoiseFromCool.py.

◆ msg

str ReadCellNoiseFromCool.msg = "%s%4d %s%d\t" % ( name1[0], cell, name1[1], gain)

Definition at line 248 of file ReadCellNoiseFromCool.py.

◆ name1

list ReadCellNoiseFromCool.name1 = ["","","0.0 "]

Definition at line 233 of file ReadCellNoiseFromCool.py.

◆ names

list ReadCellNoiseFromCool.names = []

Definition at line 234 of file ReadCellNoiseFromCool.py.

◆ ncell

ReadCellNoiseFromCool.ncell = blobFlt.getNChans()

Definition at line 197 of file ReadCellNoiseFromCool.py.

◆ ngain

ReadCellNoiseFromCool.ngain = blobFlt.getNGains()

Definition at line 198 of file ReadCellNoiseFromCool.py.

◆ nval

ReadCellNoiseFromCool.nval = blobFlt.getObjSizeUint32()

Definition at line 199 of file ReadCellNoiseFromCool.py.

◆ obj

ReadCellNoiseFromCool.obj = folder.findObject( iov, chan, folderTag )

Definition at line 186 of file ReadCellNoiseFromCool.py.

◆ opts

ReadCellNoiseFromCool.opts

Definition at line 39 of file ReadCellNoiseFromCool.py.

◆ run

ReadCellNoiseFromCool.run = 2147483647

Definition at line 46 of file ReadCellNoiseFromCool.py.

◆ schema

str ReadCellNoiseFromCool.schema = 'OFL2'

Definition at line 49 of file ReadCellNoiseFromCool.py.

◆ server

ReadCellNoiseFromCool.server = ''

Definition at line 48 of file ReadCellNoiseFromCool.py.

◆ tag

str ReadCellNoiseFromCool.tag = 'UPD4'

Definition at line 51 of file ReadCellNoiseFromCool.py.

◆ tile

tuple ReadCellNoiseFromCool.tile = (chan==48)

Definition at line 92 of file ReadCellNoiseFromCool.py.

◆ v

ReadCellNoiseFromCool.v = blobFlt.getData(cell, gain, index)

Definition at line 250 of file ReadCellNoiseFromCool.py.