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

Variables

 parser
 type
 int
 default
 help
 dest
 float
 action
 args = parser.parse_args()
 run = args.run
int run2 = 0 else run
 lumi = args.lumi
int lumi2 = 0 else lumi
 folderPath = args.folder
str folderPath2 = "none" else folderPath
 tag = args.tag
str tag2 = "none" else tag
 schema = args.schema
str schema2 = "none" else schema
 jsonfn = args.jsonfn
str jsonfn2 = "same" else jsonfn
 maxdiff = args.maxdiff
 maxdiffpercent = args.maxdiffpercent
 print_to_stdout = args.stdout
 log = getLogger("ReadFromCrest")
 db = jsonfn
str db2 = jsonfn2
 f = open('output_crest.ascii', 'w')
 fd = open('from_%d_to_%d.dif'%(run2,run), 'w')
bool writedif = True
 blobReader = TileCalibCrest.TileBlobReaderCrest(db, folderPath, tag, run, lumi)
 blobReader2 = TileCalibCrest.TileBlobReaderCrest(db2, folderPath2, tag2, run2, lumi2)
int ros = 1
int drawer = 0
 flt = None
int r = 5
int d = 0
 ot = flt.getObjType()
 ov = flt.getObjVersion()
int os = flt.getObjSizeByte()//4
 no = flt.getNObjs()
 nc = flt.getNChans()
 ng = flt.getNGains()
 flt2 = None
 ot2 = flt2.getObjType()
int os2 = flt2.getObjSizeByte()//4
 answ = input(' continue anyway? (y/n)')
list v = []
list v2 = []
 modName = TileCalibUtils.getDrawerString(ros,mod)
int osc = flt.getObjSizeByte()//4
int os2c = flt2.getObjSizeByte()//4
 oscMax = max(osc,os2c)
str chnName = " %2i" % chn
list dv12 = v[ind] - v2[ind]
int dv12percent = 0
str line = '%s chann %2d adc %d ind %d val1 %d val2 %d diff %d' % (modName,chn,adc,ind,v[ind],v2[ind],dv12)

Variable Documentation

◆ action

ReadFromCrestCompare.action

Definition at line 108 of file ReadFromCrestCompare.py.

◆ answ

str ReadFromCrestCompare.answ = input(' continue anyway? (y/n)')

Definition at line 251 of file ReadFromCrestCompare.py.

◆ args

ReadFromCrestCompare.args = parser.parse_args()

Definition at line 111 of file ReadFromCrestCompare.py.

◆ blobReader

ReadFromCrestCompare.blobReader = TileCalibCrest.TileBlobReaderCrest(db, folderPath, tag, run, lumi)

Definition at line 199 of file ReadFromCrestCompare.py.

◆ blobReader2

ReadFromCrestCompare.blobReader2 = TileCalibCrest.TileBlobReaderCrest(db2, folderPath2, tag2, run2, lumi2)

Definition at line 202 of file ReadFromCrestCompare.py.

◆ chnName

str ReadFromCrestCompare.chnName = " %2i" % chn

Definition at line 297 of file ReadFromCrestCompare.py.

◆ d

int ReadFromCrestCompare.d = 0

Definition at line 216 of file ReadFromCrestCompare.py.

◆ db

ReadFromCrestCompare.db = jsonfn

Definition at line 179 of file ReadFromCrestCompare.py.

◆ db2

str ReadFromCrestCompare.db2 = jsonfn2

Definition at line 184 of file ReadFromCrestCompare.py.

◆ default

ReadFromCrestCompare.default

Definition at line 75 of file ReadFromCrestCompare.py.

◆ dest

ReadFromCrestCompare.dest

Definition at line 79 of file ReadFromCrestCompare.py.

◆ drawer

int ReadFromCrestCompare.drawer = 0

Definition at line 209 of file ReadFromCrestCompare.py.

◆ dv12

list ReadFromCrestCompare.dv12 = v[ind] - v2[ind]

Definition at line 304 of file ReadFromCrestCompare.py.

◆ dv12percent

list ReadFromCrestCompare.dv12percent = 0

Definition at line 307 of file ReadFromCrestCompare.py.

◆ f

ReadFromCrestCompare.f = open('output_crest.ascii', 'w')

Definition at line 189 of file ReadFromCrestCompare.py.

◆ fd

ReadFromCrestCompare.fd = open('from_%d_to_%d.dif'%(run2,run), 'w')

Definition at line 191 of file ReadFromCrestCompare.py.

◆ float

ReadFromCrestCompare.float

Definition at line 103 of file ReadFromCrestCompare.py.

◆ flt

ReadFromCrestCompare.flt = None

Definition at line 214 of file ReadFromCrestCompare.py.

◆ flt2

ReadFromCrestCompare.flt2 = None

Definition at line 234 of file ReadFromCrestCompare.py.

◆ folderPath

str ReadFromCrestCompare.folderPath = args.folder

Definition at line 118 of file ReadFromCrestCompare.py.

◆ folderPath2

str ReadFromCrestCompare.folderPath2 = "none" else folderPath

Definition at line 119 of file ReadFromCrestCompare.py.

◆ help

ReadFromCrestCompare.help

Definition at line 76 of file ReadFromCrestCompare.py.

◆ int

ReadFromCrestCompare.int

Definition at line 75 of file ReadFromCrestCompare.py.

◆ jsonfn

ReadFromCrestCompare.jsonfn = args.jsonfn

Definition at line 124 of file ReadFromCrestCompare.py.

◆ jsonfn2

str ReadFromCrestCompare.jsonfn2 = "same" else jsonfn

Definition at line 125 of file ReadFromCrestCompare.py.

◆ line

str ReadFromCrestCompare.line = '%s chann %2d adc %d ind %d val1 %d val2 %d diff %d' % (modName,chn,adc,ind,v[ind],v2[ind],dv12)

Definition at line 315 of file ReadFromCrestCompare.py.

◆ log

ReadFromCrestCompare.log = getLogger("ReadFromCrest")

Definition at line 172 of file ReadFromCrestCompare.py.

◆ lumi

ReadFromCrestCompare.lumi = args.lumi

Definition at line 116 of file ReadFromCrestCompare.py.

◆ lumi2

int ReadFromCrestCompare.lumi2 = 0 else lumi

Definition at line 117 of file ReadFromCrestCompare.py.

◆ maxdiff

ReadFromCrestCompare.maxdiff = args.maxdiff

Definition at line 126 of file ReadFromCrestCompare.py.

◆ maxdiffpercent

ReadFromCrestCompare.maxdiffpercent = args.maxdiffpercent

Definition at line 127 of file ReadFromCrestCompare.py.

◆ modName

ReadFromCrestCompare.modName = TileCalibUtils.getDrawerString(ros,mod)

Definition at line 274 of file ReadFromCrestCompare.py.

◆ nc

ReadFromCrestCompare.nc = flt.getNChans()

Definition at line 231 of file ReadFromCrestCompare.py.

◆ ng

ReadFromCrestCompare.ng = flt.getNGains()

Definition at line 232 of file ReadFromCrestCompare.py.

◆ no

ReadFromCrestCompare.no = flt.getNObjs()

Definition at line 230 of file ReadFromCrestCompare.py.

◆ os

int ReadFromCrestCompare.os = flt.getObjSizeByte()//4

Definition at line 229 of file ReadFromCrestCompare.py.

◆ os2

int ReadFromCrestCompare.os2 = flt2.getObjSizeByte()//4

Definition at line 247 of file ReadFromCrestCompare.py.

◆ os2c

int ReadFromCrestCompare.os2c = flt2.getObjSizeByte()//4

Definition at line 280 of file ReadFromCrestCompare.py.

◆ osc

int ReadFromCrestCompare.osc = flt.getObjSizeByte()//4

Definition at line 279 of file ReadFromCrestCompare.py.

◆ oscMax

ReadFromCrestCompare.oscMax = max(osc,os2c)

Definition at line 281 of file ReadFromCrestCompare.py.

◆ ot

ReadFromCrestCompare.ot = flt.getObjType()

Definition at line 227 of file ReadFromCrestCompare.py.

◆ ot2

ReadFromCrestCompare.ot2 = flt2.getObjType()

Definition at line 246 of file ReadFromCrestCompare.py.

◆ ov

ReadFromCrestCompare.ov = flt.getObjVersion()

Definition at line 228 of file ReadFromCrestCompare.py.

◆ parser

ReadFromCrestCompare.parser
Initial value:
1= argparse.ArgumentParser(
2 prog='ReadFromCrestCompare.py',
3 description='Read conditions from CREST server (or/and JSON files), compare values and dump differences above specified thresholds',
4 formatter_class=argparse.RawDescriptionHelpFormatter,
5 epilog=
6)

Definition at line 36 of file ReadFromCrestCompare.py.

◆ print_to_stdout

ReadFromCrestCompare.print_to_stdout = args.stdout

Definition at line 128 of file ReadFromCrestCompare.py.

◆ r

int ReadFromCrestCompare.r = 5

Definition at line 215 of file ReadFromCrestCompare.py.

◆ ros

int ReadFromCrestCompare.ros = 1

Definition at line 208 of file ReadFromCrestCompare.py.

◆ run

ReadFromCrestCompare.run = args.run

Definition at line 114 of file ReadFromCrestCompare.py.

◆ run2

int ReadFromCrestCompare.run2 = 0 else run

Definition at line 115 of file ReadFromCrestCompare.py.

◆ schema

str ReadFromCrestCompare.schema = args.schema

Definition at line 122 of file ReadFromCrestCompare.py.

◆ schema2

str ReadFromCrestCompare.schema2 = "none" else schema

Definition at line 123 of file ReadFromCrestCompare.py.

◆ tag

str ReadFromCrestCompare.tag = args.tag

Definition at line 120 of file ReadFromCrestCompare.py.

◆ tag2

str ReadFromCrestCompare.tag2 = "none" else tag

Definition at line 121 of file ReadFromCrestCompare.py.

◆ type

ReadFromCrestCompare.type

Definition at line 75 of file ReadFromCrestCompare.py.

◆ v

list ReadFromCrestCompare.v = []

Definition at line 255 of file ReadFromCrestCompare.py.

◆ v2

list ReadFromCrestCompare.v2 = []

Definition at line 256 of file ReadFromCrestCompare.py.

◆ writedif

bool ReadFromCrestCompare.writedif = True

Definition at line 192 of file ReadFromCrestCompare.py.