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

Variables

 parser
 default
 help
 type
 int
 float
 action
 args = parser.parse_args()
 run = args.run
int run2 = 0 else run
 lumi = args.lumi
int lumi2 = 0 else lumi
 schema = args.schema
str schema2 = "none" else schema
 folderPath = args.folder
str folderPath2 = "none" else folderPath
 tag = args.tag
str tag2 = "none" else tag
 maxdiff = args.maxdiff
 maxdiffpercent = args.maxdiffpercent
 chan = args.channel
 cell = args.cell
 gain = args.gain
 index = args.index
 zthr = args.zero
 multi = not args.wide
 brief = args.brief
 doubl = args.double
 print_to_stdout = args.stdout
tuple tile = (chan==48)
 log = CaloCondLogger.getLogger("ReadCellNoise")
str cabling = 'RUN3'
 hashMgrDef = TileCellTools.TileCellHashMgr(cabling=cabling)
 hashMgrA = TileCellTools.TileCellHashMgr("UpgradeA")
 hashMgrBC = TileCellTools.TileCellHashMgr("UpgradeBC")
 hashMgrABC = TileCellTools.TileCellHashMgr("UpgradeABC")
 folderTag = tag
 tag_upper = tag.upper()
str tag1 = tag_upper.split('_')[1][:4] if '_' in tag_upper else tag_upper[:4]
str folderPath1 = ""
str folderTag2 = tag2
str tag2_upper = tag2.upper()
str tag2_1 = tag2_upper.split('_')[1][:4] if '_' in tag2_upper else tag2_upper[:4]
 blobReader = TileCalibCrest.TileBlobReaderCrest(schema, folderPath1, folderTag, run, lumi)
 blobReader2 = TileCalibCrest.TileBlobReaderCrest(schema2, folderPath2, folderTag2, run2, lumi2)
 blobFlt = blobReader.getDrawer(-1,chan,None,False,False)
 blobFlt2 = blobReader2.getDrawer(-1,chan,None,False,False)
str outputfile = 'output_crest.ascii'
 f = open(outputfile, 'w')
 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 = ["S0 ", "Pl ", "S1 ", "S2 ", "Ra "]
str dm = " "
 hashMgr = hashMgrABC
str msg = "%s%4d %s%d\t" % ( name1[0], cell, name1[1], gain)
 l0 = len(msg)
 v = blobFlt.getData(cell, gain, index)
 v2 = blobFlt2.getData(cell, gain, index)
 dv12 = v - v2
int dp12 = 0
str s1 = "{0:<14.9g}".format(v) if v<0 else "{0:<15.10g}".format(v)
str s2 = "{0:<14.9g}".format(v2) if v2<0 else "{0:<15.10g}".format(v2)
str s3 = "{0:<14.9g}".format(dv12) if dv12<0 else "{0:<15.10g}".format(dv12)
str s4 = "{0:<14.9g}".format(dp12) if dp12<0 else "{0:<15.10g}".format(dp12)
str output_line = msg[:len(msg)-len(dm)]

Variable Documentation

◆ action

ReadCellNoiseFromCrestCompare.action

Definition at line 80 of file ReadCellNoiseFromCrestCompare.py.

◆ args

ReadCellNoiseFromCrestCompare.args = parser.parse_args()

Definition at line 89 of file ReadCellNoiseFromCrestCompare.py.

◆ blobFlt

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

Definition at line 192 of file ReadCellNoiseFromCrestCompare.py.

◆ blobFlt2

ReadCellNoiseFromCrestCompare.blobFlt2 = blobReader2.getDrawer(-1,chan,None,False,False)

Definition at line 197 of file ReadCellNoiseFromCrestCompare.py.

◆ blobReader

ReadCellNoiseFromCrestCompare.blobReader = TileCalibCrest.TileBlobReaderCrest(schema, folderPath1, folderTag, run, lumi)

Definition at line 179 of file ReadCellNoiseFromCrestCompare.py.

◆ blobReader2

ReadCellNoiseFromCrestCompare.blobReader2 = TileCalibCrest.TileBlobReaderCrest(schema2, folderPath2, folderTag2, run2, lumi2)

Definition at line 183 of file ReadCellNoiseFromCrestCompare.py.

◆ brief

ReadCellNoiseFromCrestCompare.brief = args.brief

Definition at line 110 of file ReadCellNoiseFromCrestCompare.py.

◆ cabling

str ReadCellNoiseFromCrestCompare.cabling = 'RUN3'

Definition at line 144 of file ReadCellNoiseFromCrestCompare.py.

◆ cell

ReadCellNoiseFromCrestCompare.cell = args.cell

Definition at line 105 of file ReadCellNoiseFromCrestCompare.py.

◆ cellmax

int ReadCellNoiseFromCrestCompare.cellmax = ncell

Definition at line 241 of file ReadCellNoiseFromCrestCompare.py.

◆ cellmin

ReadCellNoiseFromCrestCompare.cellmin = 0

Definition at line 240 of file ReadCellNoiseFromCrestCompare.py.

◆ chan

ReadCellNoiseFromCrestCompare.chan = args.channel

Definition at line 104 of file ReadCellNoiseFromCrestCompare.py.

◆ default

ReadCellNoiseFromCrestCompare.default

Definition at line 40 of file ReadCellNoiseFromCrestCompare.py.

◆ dm

str ReadCellNoiseFromCrestCompare.dm = " "

Definition at line 265 of file ReadCellNoiseFromCrestCompare.py.

◆ doubl

ReadCellNoiseFromCrestCompare.doubl = args.double

Definition at line 111 of file ReadCellNoiseFromCrestCompare.py.

◆ dp12

int ReadCellNoiseFromCrestCompare.dp12 = 0

Definition at line 300 of file ReadCellNoiseFromCrestCompare.py.

◆ dv12

int ReadCellNoiseFromCrestCompare.dv12 = v - v2

Definition at line 295 of file ReadCellNoiseFromCrestCompare.py.

◆ f

ReadCellNoiseFromCrestCompare.f = open(outputfile, 'w')

Definition at line 204 of file ReadCellNoiseFromCrestCompare.py.

◆ float

ReadCellNoiseFromCrestCompare.float

Definition at line 64 of file ReadCellNoiseFromCrestCompare.py.

◆ folderPath

ReadCellNoiseFromCrestCompare.folderPath = args.folder

Definition at line 98 of file ReadCellNoiseFromCrestCompare.py.

◆ folderPath1

ReadCellNoiseFromCrestCompare.folderPath1 = ""

Definition at line 162 of file ReadCellNoiseFromCrestCompare.py.

◆ folderPath2

str ReadCellNoiseFromCrestCompare.folderPath2 = "none" else folderPath

Definition at line 99 of file ReadCellNoiseFromCrestCompare.py.

◆ folderTag

ReadCellNoiseFromCrestCompare.folderTag = tag

Definition at line 158 of file ReadCellNoiseFromCrestCompare.py.

◆ folderTag2

str ReadCellNoiseFromCrestCompare.folderTag2 = tag2

Definition at line 168 of file ReadCellNoiseFromCrestCompare.py.

◆ gain

ReadCellNoiseFromCrestCompare.gain = args.gain

Definition at line 106 of file ReadCellNoiseFromCrestCompare.py.

◆ gainmax

int ReadCellNoiseFromCrestCompare.gainmax = ngain

Definition at line 248 of file ReadCellNoiseFromCrestCompare.py.

◆ gainmin

ReadCellNoiseFromCrestCompare.gainmin = 0

Definition at line 247 of file ReadCellNoiseFromCrestCompare.py.

◆ hashMgr

ReadCellNoiseFromCrestCompare.hashMgr = hashMgrABC

Definition at line 275 of file ReadCellNoiseFromCrestCompare.py.

◆ hashMgrA

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

Definition at line 153 of file ReadCellNoiseFromCrestCompare.py.

◆ hashMgrABC

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

Definition at line 155 of file ReadCellNoiseFromCrestCompare.py.

◆ hashMgrBC

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

Definition at line 154 of file ReadCellNoiseFromCrestCompare.py.

◆ hashMgrDef

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

Definition at line 152 of file ReadCellNoiseFromCrestCompare.py.

◆ help

ReadCellNoiseFromCrestCompare.help

Definition at line 41 of file ReadCellNoiseFromCrestCompare.py.

◆ index

ReadCellNoiseFromCrestCompare.index = args.index

Definition at line 107 of file ReadCellNoiseFromCrestCompare.py.

◆ indexmax

int ReadCellNoiseFromCrestCompare.indexmax = nval

Definition at line 255 of file ReadCellNoiseFromCrestCompare.py.

◆ indexmin

ReadCellNoiseFromCrestCompare.indexmin = 0

Definition at line 254 of file ReadCellNoiseFromCrestCompare.py.

◆ int

ReadCellNoiseFromCrestCompare.int

Definition at line 46 of file ReadCellNoiseFromCrestCompare.py.

◆ l0

ReadCellNoiseFromCrestCompare.l0 = len(msg)

Definition at line 289 of file ReadCellNoiseFromCrestCompare.py.

◆ log

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

Definition at line 139 of file ReadCellNoiseFromCrestCompare.py.

◆ lumi

ReadCellNoiseFromCrestCompare.lumi = args.lumi

Definition at line 94 of file ReadCellNoiseFromCrestCompare.py.

◆ lumi2

int ReadCellNoiseFromCrestCompare.lumi2 = 0 else lumi

Definition at line 95 of file ReadCellNoiseFromCrestCompare.py.

◆ maxdiff

ReadCellNoiseFromCrestCompare.maxdiff = args.maxdiff

Definition at line 102 of file ReadCellNoiseFromCrestCompare.py.

◆ maxdiffpercent

ReadCellNoiseFromCrestCompare.maxdiffpercent = args.maxdiffpercent

Definition at line 103 of file ReadCellNoiseFromCrestCompare.py.

◆ msg

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

Definition at line 288 of file ReadCellNoiseFromCrestCompare.py.

◆ multi

ReadCellNoiseFromCrestCompare.multi = not args.wide

Definition at line 109 of file ReadCellNoiseFromCrestCompare.py.

◆ name1

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

Definition at line 263 of file ReadCellNoiseFromCrestCompare.py.

◆ names

list ReadCellNoiseFromCrestCompare.names = ["S0 ", "Pl ", "S1 ", "S2 ", "Ra "]

Definition at line 264 of file ReadCellNoiseFromCrestCompare.py.

◆ ncell

ReadCellNoiseFromCrestCompare.ncell = blobFlt.getNChans()

Definition at line 235 of file ReadCellNoiseFromCrestCompare.py.

◆ ngain

ReadCellNoiseFromCrestCompare.ngain = blobFlt.getNGains()

Definition at line 236 of file ReadCellNoiseFromCrestCompare.py.

◆ nval

ReadCellNoiseFromCrestCompare.nval = blobFlt.getObjSizeUint32()

Definition at line 237 of file ReadCellNoiseFromCrestCompare.py.

◆ output_line

str ReadCellNoiseFromCrestCompare.output_line = msg[:len(msg)-len(dm)]

Definition at line 321 of file ReadCellNoiseFromCrestCompare.py.

◆ outputfile

str ReadCellNoiseFromCrestCompare.outputfile = 'output_crest.ascii'

Definition at line 203 of file ReadCellNoiseFromCrestCompare.py.

◆ parser

ReadCellNoiseFromCrestCompare.parser
Initial value:
1= argparse.ArgumentParser(
2 prog='ReadCellNoiseFromCrestCompare.py',
3 description='Dumps noise constants from online or offline folders/tags in CREST and compares two sources',
4 formatter_class=argparse.RawDescriptionHelpFormatter,
5 epilog=
6)

Definition at line 15 of file ReadCellNoiseFromCrestCompare.py.

◆ print_to_stdout

ReadCellNoiseFromCrestCompare.print_to_stdout = args.stdout

Definition at line 112 of file ReadCellNoiseFromCrestCompare.py.

◆ run

ReadCellNoiseFromCrestCompare.run = args.run

Definition at line 92 of file ReadCellNoiseFromCrestCompare.py.

◆ run2

int ReadCellNoiseFromCrestCompare.run2 = 0 else run

Definition at line 93 of file ReadCellNoiseFromCrestCompare.py.

◆ s1

list ReadCellNoiseFromCrestCompare.s1 = "{0:<14.9g}".format(v) if v<0 else "{0:<15.10g}".format(v)

Definition at line 308 of file ReadCellNoiseFromCrestCompare.py.

◆ s2

list ReadCellNoiseFromCrestCompare.s2 = "{0:<14.9g}".format(v2) if v2<0 else "{0:<15.10g}".format(v2)

Definition at line 309 of file ReadCellNoiseFromCrestCompare.py.

◆ s3

list ReadCellNoiseFromCrestCompare.s3 = "{0:<14.9g}".format(dv12) if dv12<0 else "{0:<15.10g}".format(dv12)

Definition at line 310 of file ReadCellNoiseFromCrestCompare.py.

◆ s4

list ReadCellNoiseFromCrestCompare.s4 = "{0:<14.9g}".format(dp12) if dp12<0 else "{0:<15.10g}".format(dp12)

Definition at line 311 of file ReadCellNoiseFromCrestCompare.py.

◆ schema

ReadCellNoiseFromCrestCompare.schema = args.schema

Definition at line 96 of file ReadCellNoiseFromCrestCompare.py.

◆ schema2

str ReadCellNoiseFromCrestCompare.schema2 = "none" else schema

Definition at line 97 of file ReadCellNoiseFromCrestCompare.py.

◆ tag

ReadCellNoiseFromCrestCompare.tag = args.tag

Definition at line 100 of file ReadCellNoiseFromCrestCompare.py.

◆ tag1

str ReadCellNoiseFromCrestCompare.tag1 = tag_upper.split('_')[1][:4] if '_' in tag_upper else tag_upper[:4]

Definition at line 160 of file ReadCellNoiseFromCrestCompare.py.

◆ tag2

str ReadCellNoiseFromCrestCompare.tag2 = "none" else tag

Definition at line 101 of file ReadCellNoiseFromCrestCompare.py.

◆ tag2_1

str ReadCellNoiseFromCrestCompare.tag2_1 = tag2_upper.split('_')[1][:4] if '_' in tag2_upper else tag2_upper[:4]

Definition at line 170 of file ReadCellNoiseFromCrestCompare.py.

◆ tag2_upper

str ReadCellNoiseFromCrestCompare.tag2_upper = tag2.upper()

Definition at line 169 of file ReadCellNoiseFromCrestCompare.py.

◆ tag_upper

ReadCellNoiseFromCrestCompare.tag_upper = tag.upper()

Definition at line 159 of file ReadCellNoiseFromCrestCompare.py.

◆ tile

tuple ReadCellNoiseFromCrestCompare.tile = (chan==48)

Definition at line 114 of file ReadCellNoiseFromCrestCompare.py.

◆ type

ReadCellNoiseFromCrestCompare.type

Definition at line 46 of file ReadCellNoiseFromCrestCompare.py.

◆ v

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

Definition at line 293 of file ReadCellNoiseFromCrestCompare.py.

◆ v2

ReadCellNoiseFromCrestCompare.v2 = blobFlt2.getData(cell, gain, index)

Definition at line 294 of file ReadCellNoiseFromCrestCompare.py.

◆ zthr

ReadCellNoiseFromCrestCompare.zthr = args.zero

Definition at line 108 of file ReadCellNoiseFromCrestCompare.py.