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")
 folderTag = tag
str folderTag2 = tag2
 db = jsonfn
str db2 = jsonfn2
 f = open('output_crest.ascii', 'w')
 fd = open('from_%d_to_%d.dif'%(run2,run), 'w')
bool writedif = True
 blobReader2 = TileCalibCrest.TileBlobReaderCrest(db2, folderPath2, folderTag2, run2, lumi2)
 blobReader = TileCalibCrest.TileBlobReaderCrest(db, folderPath, folderTag, run, lumi)
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 96 of file ReadFromCrestCompare.py.

◆ answ

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

Definition at line 236 of file ReadFromCrestCompare.py.

◆ args

ReadFromCrestCompare.args = parser.parse_args()

Definition at line 99 of file ReadFromCrestCompare.py.

◆ blobReader

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

Definition at line 187 of file ReadFromCrestCompare.py.

◆ blobReader2

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

Definition at line 184 of file ReadFromCrestCompare.py.

◆ chnName

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

Definition at line 282 of file ReadFromCrestCompare.py.

◆ d

int ReadFromCrestCompare.d = 0

Definition at line 201 of file ReadFromCrestCompare.py.

◆ db

ReadFromCrestCompare.db = jsonfn

Definition at line 161 of file ReadFromCrestCompare.py.

◆ db2

str ReadFromCrestCompare.db2 = jsonfn2

Definition at line 166 of file ReadFromCrestCompare.py.

◆ default

ReadFromCrestCompare.default

Definition at line 63 of file ReadFromCrestCompare.py.

◆ dest

ReadFromCrestCompare.dest

Definition at line 67 of file ReadFromCrestCompare.py.

◆ drawer

int ReadFromCrestCompare.drawer = 0

Definition at line 194 of file ReadFromCrestCompare.py.

◆ dv12

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

Definition at line 289 of file ReadFromCrestCompare.py.

◆ dv12percent

list ReadFromCrestCompare.dv12percent = 0

Definition at line 292 of file ReadFromCrestCompare.py.

◆ f

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

Definition at line 171 of file ReadFromCrestCompare.py.

◆ fd

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

Definition at line 173 of file ReadFromCrestCompare.py.

◆ float

ReadFromCrestCompare.float

Definition at line 91 of file ReadFromCrestCompare.py.

◆ flt

ReadFromCrestCompare.flt = None

Definition at line 199 of file ReadFromCrestCompare.py.

◆ flt2

ReadFromCrestCompare.flt2 = None

Definition at line 219 of file ReadFromCrestCompare.py.

◆ folderPath

ReadFromCrestCompare.folderPath = args.folder

Definition at line 106 of file ReadFromCrestCompare.py.

◆ folderPath2

str ReadFromCrestCompare.folderPath2 = "none" else folderPath

Definition at line 107 of file ReadFromCrestCompare.py.

◆ folderTag

str ReadFromCrestCompare.folderTag = tag

Definition at line 145 of file ReadFromCrestCompare.py.

◆ folderTag2

str ReadFromCrestCompare.folderTag2 = tag2

Definition at line 152 of file ReadFromCrestCompare.py.

◆ help

ReadFromCrestCompare.help

Definition at line 64 of file ReadFromCrestCompare.py.

◆ int

ReadFromCrestCompare.int

Definition at line 63 of file ReadFromCrestCompare.py.

◆ jsonfn

ReadFromCrestCompare.jsonfn = args.jsonfn

Definition at line 112 of file ReadFromCrestCompare.py.

◆ jsonfn2

str ReadFromCrestCompare.jsonfn2 = "same" else jsonfn

Definition at line 113 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 300 of file ReadFromCrestCompare.py.

◆ log

ReadFromCrestCompare.log = getLogger("ReadFromCrest")

Definition at line 140 of file ReadFromCrestCompare.py.

◆ lumi

ReadFromCrestCompare.lumi = args.lumi

Definition at line 104 of file ReadFromCrestCompare.py.

◆ lumi2

int ReadFromCrestCompare.lumi2 = 0 else lumi

Definition at line 105 of file ReadFromCrestCompare.py.

◆ maxdiff

ReadFromCrestCompare.maxdiff = args.maxdiff

Definition at line 114 of file ReadFromCrestCompare.py.

◆ maxdiffpercent

ReadFromCrestCompare.maxdiffpercent = args.maxdiffpercent

Definition at line 115 of file ReadFromCrestCompare.py.

◆ modName

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

Definition at line 259 of file ReadFromCrestCompare.py.

◆ nc

ReadFromCrestCompare.nc = flt.getNChans()

Definition at line 216 of file ReadFromCrestCompare.py.

◆ ng

ReadFromCrestCompare.ng = flt.getNGains()

Definition at line 217 of file ReadFromCrestCompare.py.

◆ no

ReadFromCrestCompare.no = flt.getNObjs()

Definition at line 215 of file ReadFromCrestCompare.py.

◆ os

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

Definition at line 214 of file ReadFromCrestCompare.py.

◆ os2

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

Definition at line 232 of file ReadFromCrestCompare.py.

◆ os2c

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

Definition at line 265 of file ReadFromCrestCompare.py.

◆ osc

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

Definition at line 264 of file ReadFromCrestCompare.py.

◆ oscMax

ReadFromCrestCompare.oscMax = max(osc,os2c)

Definition at line 266 of file ReadFromCrestCompare.py.

◆ ot

ReadFromCrestCompare.ot = flt.getObjType()

Definition at line 212 of file ReadFromCrestCompare.py.

◆ ot2

ReadFromCrestCompare.ot2 = flt2.getObjType()

Definition at line 231 of file ReadFromCrestCompare.py.

◆ ov

ReadFromCrestCompare.ov = flt.getObjVersion()

Definition at line 213 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 33 of file ReadFromCrestCompare.py.

◆ print_to_stdout

ReadFromCrestCompare.print_to_stdout = args.stdout

Definition at line 116 of file ReadFromCrestCompare.py.

◆ r

int ReadFromCrestCompare.r = 5

Definition at line 200 of file ReadFromCrestCompare.py.

◆ ros

int ReadFromCrestCompare.ros = 1

Definition at line 193 of file ReadFromCrestCompare.py.

◆ run

ReadFromCrestCompare.run = args.run

Definition at line 102 of file ReadFromCrestCompare.py.

◆ run2

int ReadFromCrestCompare.run2 = 0 else run

Definition at line 103 of file ReadFromCrestCompare.py.

◆ schema

ReadFromCrestCompare.schema = args.schema

Definition at line 110 of file ReadFromCrestCompare.py.

◆ schema2

str ReadFromCrestCompare.schema2 = "none" else schema

Definition at line 111 of file ReadFromCrestCompare.py.

◆ tag

ReadFromCrestCompare.tag = args.tag

Definition at line 108 of file ReadFromCrestCompare.py.

◆ tag2

str ReadFromCrestCompare.tag2 = "none" else tag

Definition at line 109 of file ReadFromCrestCompare.py.

◆ type

ReadFromCrestCompare.type

Definition at line 63 of file ReadFromCrestCompare.py.

◆ v

list ReadFromCrestCompare.v = []

Definition at line 240 of file ReadFromCrestCompare.py.

◆ v2

list ReadFromCrestCompare.v2 = []

Definition at line 241 of file ReadFromCrestCompare.py.

◆ writedif

bool ReadFromCrestCompare.writedif = True

Definition at line 174 of file ReadFromCrestCompare.py.