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

Functions

 usage ()

Variables

str letters = "hs:t:f:r:l:b:e:n:c:g:x:BDCiI"
list keywords = ["help","schema=","tag=","folder=","run=","lumi=","begin=","end=","channel=","cell=","gain=","index=","brief","double","comment","iov","IOV"]
 opts
 extraparams
int run = 2147483647
int lumi = 0
str schema = 'CREST'
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
int begin = -1
int end = 2147483647
bool iov = False
bool iovonly = False
bool IOVONLY = False
bool comment = False
 a = a.strip()
tuple tile = (chan==48)
 log = TileCalibLogger.getLogger("ReadCellNoise")
str cabling = 'RUN3'
 hashMgr = None
 hashMgrDef = TileCellTools.TileCellHashMgr(cabling=cabling)
 hashMgrA = TileCellTools.TileCellHashMgr("UpgradeA")
 hashMgrBC = TileCellTools.TileCellHashMgr("UpgradeBC")
 hashMgrABC = TileCellTools.TileCellHashMgr("UpgradeABC")
str folderTAG = tag.upper()
 blobReader = TileCalibCrest.TileBlobReaderCrest(schema, folderPath, tag, run, lumi)
 blobFlt = blobReader.getDrawer(-1,chan,None,False,False)
 ncell = blobFlt.getNChans()
 ngain = blobFlt.getNGains()
 nval = blobFlt.getObjSizeUint32()
list iovList = []
list be = iovList[0][0]
list en = iovList[-1][0]
int option = 1 if iovonly else 0
int cellmin = 0
 cellmax = ncell
int gainmin = 0
 gainmax = ngain
int indexmin = 0
 indexmax = nval
list name1 = ["","","0.0 "]
list names = []
str dm = " "
 oldBlob = None
str pref = ""
 newBlob = blobReader.getBlob(-1, chan, iovs, False)
str msg = "%s%4d %s%d\t" % ( name1[0], cell, name1[1], gain)
 v = blobFlt.getData(cell, gain, index)

Function Documentation

◆ usage()

ReadCellNoiseFromCrest.usage ( )

Definition at line 20 of file ReadCellNoiseFromCrest.py.

20def usage():
21 print ("Usage: ",sys.argv[0]," [OPTION] ... ")
22 print ("Dumps noise constants from online or offline folders / tags")
23 print ("")
24 print ("-h, --help shows this help")
25 print ("-s, --schema= specify name of input JSON file or CREST_SERVER_PATH")
26 print ("-f, --folder= specify status folder to use f.i. /TILE/OFL02/NOISE/CELL or /CALO/Noise/CellNoise")
27 print ("-t, --tag= specify tag to use, f.i. UPD1 or UPD4 or tag suffix like 14TeV-N200_dT50-01")
28 print ("-r, --run= specify run number, by default uses latest iov")
29 print ("-l, --lumi= specify lumi block number, default is 0")
30 print ("-b, --begin= specify run number of first iov in multi-iov mode, by default uses very first iov")
31 print ("-e, --end= specify run number of last iov in multi-iov mode, by default uses latest iov")
32 print ("-C, --comment print comment for every IOV")
33 print ("-i, --iov print IOVs only for every COOL channel")
34 print ("-I, --IOV print IOVs only")
35 print ("-n, --channel= specify COOL channel to read (48 by defalt)")
36 print ("-c, --cell= specify cell hash (0-5183), default is -1, means all cells")
37 print ("-g, --gain= specify gain to print (0-3), default is -1, means all gains")
38 print ("-x, --index= specify parameter index (0-4), default is -1, means all parameters")
39 print ("-B, --brief print only numbers without character names")
40 print ("-D, --double print values with double precision")
41
StatusCode usage()

Variable Documentation

◆ a

ReadCellNoiseFromCrest.a = a.strip()

Definition at line 72 of file ReadCellNoiseFromCrest.py.

◆ be

list ReadCellNoiseFromCrest.be = iovList[0][0]

Definition at line 184 of file ReadCellNoiseFromCrest.py.

◆ begin

list ReadCellNoiseFromCrest.begin = -1

Definition at line 64 of file ReadCellNoiseFromCrest.py.

◆ blobFlt

ReadCellNoiseFromCrest.blobFlt = blobReader.getDrawer(-1,chan,None,False,False)

Definition at line 150 of file ReadCellNoiseFromCrest.py.

◆ blobReader

ReadCellNoiseFromCrest.blobReader = TileCalibCrest.TileBlobReaderCrest(schema, folderPath, tag, run, lumi)

Definition at line 146 of file ReadCellNoiseFromCrest.py.

◆ brief

bool ReadCellNoiseFromCrest.brief = False

Definition at line 62 of file ReadCellNoiseFromCrest.py.

◆ cabling

str ReadCellNoiseFromCrest.cabling = 'RUN3'

Definition at line 126 of file ReadCellNoiseFromCrest.py.

◆ cell

ReadCellNoiseFromCrest.cell = -1

Definition at line 59 of file ReadCellNoiseFromCrest.py.

◆ cellmax

int ReadCellNoiseFromCrest.cellmax = ncell

Definition at line 214 of file ReadCellNoiseFromCrest.py.

◆ cellmin

int ReadCellNoiseFromCrest.cellmin = 0

Definition at line 213 of file ReadCellNoiseFromCrest.py.

◆ chan

ReadCellNoiseFromCrest.chan = 48

Definition at line 58 of file ReadCellNoiseFromCrest.py.

◆ comment

bool ReadCellNoiseFromCrest.comment = False

Definition at line 69 of file ReadCellNoiseFromCrest.py.

◆ dm

str ReadCellNoiseFromCrest.dm = " "

Definition at line 236 of file ReadCellNoiseFromCrest.py.

◆ doubl

bool ReadCellNoiseFromCrest.doubl = False

Definition at line 63 of file ReadCellNoiseFromCrest.py.

◆ en

list ReadCellNoiseFromCrest.en = iovList[-1][0]

Definition at line 185 of file ReadCellNoiseFromCrest.py.

◆ end

list ReadCellNoiseFromCrest.end = 2147483647

Definition at line 65 of file ReadCellNoiseFromCrest.py.

◆ extraparams

ReadCellNoiseFromCrest.extraparams

Definition at line 46 of file ReadCellNoiseFromCrest.py.

◆ folderPath

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

Definition at line 56 of file ReadCellNoiseFromCrest.py.

◆ folderTAG

str ReadCellNoiseFromCrest.folderTAG = tag.upper()

Definition at line 141 of file ReadCellNoiseFromCrest.py.

◆ gain

ReadCellNoiseFromCrest.gain = -1

Definition at line 60 of file ReadCellNoiseFromCrest.py.

◆ gainmax

int ReadCellNoiseFromCrest.gainmax = ngain

Definition at line 221 of file ReadCellNoiseFromCrest.py.

◆ gainmin

int ReadCellNoiseFromCrest.gainmin = 0

Definition at line 220 of file ReadCellNoiseFromCrest.py.

◆ hashMgr

ReadCellNoiseFromCrest.hashMgr = None

Definition at line 134 of file ReadCellNoiseFromCrest.py.

◆ hashMgrA

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

Definition at line 136 of file ReadCellNoiseFromCrest.py.

◆ hashMgrABC

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

Definition at line 138 of file ReadCellNoiseFromCrest.py.

◆ hashMgrBC

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

Definition at line 137 of file ReadCellNoiseFromCrest.py.

◆ hashMgrDef

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

Definition at line 135 of file ReadCellNoiseFromCrest.py.

◆ index

ReadCellNoiseFromCrest.index = -1

Definition at line 61 of file ReadCellNoiseFromCrest.py.

◆ indexmax

int ReadCellNoiseFromCrest.indexmax = nval

Definition at line 228 of file ReadCellNoiseFromCrest.py.

◆ indexmin

int ReadCellNoiseFromCrest.indexmin = 0

Definition at line 227 of file ReadCellNoiseFromCrest.py.

◆ iov

bool ReadCellNoiseFromCrest.iov = False

Definition at line 66 of file ReadCellNoiseFromCrest.py.

◆ iovList

ReadCellNoiseFromCrest.iovList = []

Definition at line 175 of file ReadCellNoiseFromCrest.py.

◆ IOVONLY

bool ReadCellNoiseFromCrest.IOVONLY = False

Definition at line 68 of file ReadCellNoiseFromCrest.py.

◆ iovonly

bool ReadCellNoiseFromCrest.iovonly = False

Definition at line 67 of file ReadCellNoiseFromCrest.py.

◆ keywords

list ReadCellNoiseFromCrest.keywords = ["help","schema=","tag=","folder=","run=","lumi=","begin=","end=","channel=","cell=","gain=","index=","brief","double","comment","iov","IOV"]

Definition at line 43 of file ReadCellNoiseFromCrest.py.

◆ letters

str ReadCellNoiseFromCrest.letters = "hs:t:f:r:l:b:e:n:c:g:x:BDCiI"

Definition at line 42 of file ReadCellNoiseFromCrest.py.

◆ log

ReadCellNoiseFromCrest.log = TileCalibLogger.getLogger("ReadCellNoise")

Definition at line 123 of file ReadCellNoiseFromCrest.py.

◆ lumi

ReadCellNoiseFromCrest.lumi = 0

Definition at line 54 of file ReadCellNoiseFromCrest.py.

◆ msg

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

Definition at line 270 of file ReadCellNoiseFromCrest.py.

◆ name1

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

Definition at line 234 of file ReadCellNoiseFromCrest.py.

◆ names

list ReadCellNoiseFromCrest.names = []

Definition at line 235 of file ReadCellNoiseFromCrest.py.

◆ ncell

ReadCellNoiseFromCrest.ncell = blobFlt.getNChans()

Definition at line 160 of file ReadCellNoiseFromCrest.py.

◆ newBlob

ReadCellNoiseFromCrest.newBlob = blobReader.getBlob(-1, chan, iovs, False)

Definition at line 251 of file ReadCellNoiseFromCrest.py.

◆ ngain

ReadCellNoiseFromCrest.ngain = blobFlt.getNGains()

Definition at line 161 of file ReadCellNoiseFromCrest.py.

◆ nval

ReadCellNoiseFromCrest.nval = blobFlt.getObjSizeUint32()

Definition at line 162 of file ReadCellNoiseFromCrest.py.

◆ oldBlob

ReadCellNoiseFromCrest.oldBlob = None

Definition at line 246 of file ReadCellNoiseFromCrest.py.

◆ option

int ReadCellNoiseFromCrest.option = 1 if iovonly else 0

Definition at line 202 of file ReadCellNoiseFromCrest.py.

◆ opts

ReadCellNoiseFromCrest.opts

Definition at line 46 of file ReadCellNoiseFromCrest.py.

◆ pref

str ReadCellNoiseFromCrest.pref = ""

Definition at line 247 of file ReadCellNoiseFromCrest.py.

◆ run

ReadCellNoiseFromCrest.run = 2147483647

Definition at line 53 of file ReadCellNoiseFromCrest.py.

◆ schema

ReadCellNoiseFromCrest.schema = 'CREST'

Definition at line 55 of file ReadCellNoiseFromCrest.py.

◆ tag

ReadCellNoiseFromCrest.tag = 'UPD4'

Definition at line 57 of file ReadCellNoiseFromCrest.py.

◆ tile

tuple ReadCellNoiseFromCrest.tile = (chan==48)

Definition at line 116 of file ReadCellNoiseFromCrest.py.

◆ v

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

Definition at line 272 of file ReadCellNoiseFromCrest.py.