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

Functions

 usage ()

Variables

str letters = "hr:l:s:t:f:p:d:m:c:a:g:i:"
list keywords = ["help","run=","lumi=","schema=","tag=","folder=","ros=","drawer=","module=","chan=","channel=","adc=","gain=","field="]
 opts
 extraparams
int run = 2147483647
int lumi = 0
str schema = 'CREST'
str folderPath = "/TILE/ONL01/FILTER/OF2/PHY"
str tag = ""
int ros = 1
int drawer = 0
int channel = 0
int adc = 0
int field = 0
 a = a.strip()
 partname = a[:3]
dict part_dict = {'AUX':0,'LBA':1,'LBC':2,'EBA':3,'EBC':4}
 log = getLogger("ReadOfc")
str folderTag = tag
 blobReader = TileCalibCrest.TileBlobReaderCrest(schema,folderPath, folderTag, run, lumi)
 ofc = blobReader.getDrawer(ros, drawer,(run,lumi))
 nchann = ofc.getNChans()
 nfields = ofc.getNFields()
 nsamples = ofc.getNSamples()
 nphases = ofc.getNPhases()
 phase = ofc.getPhase(channel, adc, iphase)
str msg = "phase %6.1f ns :" % phase

Function Documentation

◆ usage()

ReadOfcFromCrest.usage ( )

Definition at line 15 of file ReadOfcFromCrest.py.

15def usage():
16 print ("Usage: ",sys.argv[0]," [OPTION] ... ")
17 print ("Dumps the TileCal OFC values various schemas / folders / tags")
18 print ("")
19 print ("-h, --help shows this help")
20 print ("-f, --folder= specify status folder to use CIS, LAS, PHY ")
21 print ("-t, --tag= specify tag to use, f.i. UPD1 or UPD4 or full suffix like RUN2-HLT-UPD1-00")
22 print ("-r, --run= specify run number, by default uses latest iov")
23 print ("-l, --lumi= specify lumi block number, default is 0")
24 print ("-p, --ros= specify partition (ros number), default is 1")
25 print ("-d, --drawer= specify drawer number, default is 0")
26 print ("-m, --module= specify module to use, default is LBA01")
27 print ("-c, --chan= specify channel number, default is 0")
28 print ("-g, -a, --adc= specify gain (adc number), default is 0")
29 print ("-i, --field= specify field number, default is 0")
30 print ("-s, --schema= specify name of input JSON file or CREST_SERVER_PATH")
31
StatusCode usage()

Variable Documentation

◆ a

ReadOfcFromCrest.a = a.strip()

Definition at line 55 of file ReadOfcFromCrest.py.

◆ adc

ReadOfcFromCrest.adc = 0

Definition at line 51 of file ReadOfcFromCrest.py.

◆ blobReader

ReadOfcFromCrest.blobReader = TileCalibCrest.TileBlobReaderCrest(schema,folderPath, folderTag, run, lumi)

Definition at line 116 of file ReadOfcFromCrest.py.

◆ channel

ReadOfcFromCrest.channel = 0

Definition at line 50 of file ReadOfcFromCrest.py.

◆ drawer

ReadOfcFromCrest.drawer = 0

Definition at line 49 of file ReadOfcFromCrest.py.

◆ extraparams

ReadOfcFromCrest.extraparams

Definition at line 36 of file ReadOfcFromCrest.py.

◆ field

ReadOfcFromCrest.field = 0

Definition at line 52 of file ReadOfcFromCrest.py.

◆ folderPath

str ReadOfcFromCrest.folderPath = "/TILE/ONL01/FILTER/OF2/PHY"

Definition at line 46 of file ReadOfcFromCrest.py.

◆ folderTag

str ReadOfcFromCrest.folderTag = tag

Definition at line 111 of file ReadOfcFromCrest.py.

◆ keywords

list ReadOfcFromCrest.keywords = ["help","run=","lumi=","schema=","tag=","folder=","ros=","drawer=","module=","chan=","channel=","adc=","gain=","field="]

Definition at line 33 of file ReadOfcFromCrest.py.

◆ letters

str ReadOfcFromCrest.letters = "hr:l:s:t:f:p:d:m:c:a:g:i:"

Definition at line 32 of file ReadOfcFromCrest.py.

◆ log

ReadOfcFromCrest.log = getLogger("ReadOfc")

Definition at line 98 of file ReadOfcFromCrest.py.

◆ lumi

ReadOfcFromCrest.lumi = 0

Definition at line 44 of file ReadOfcFromCrest.py.

◆ msg

str ReadOfcFromCrest.msg = "phase %6.1f ns :" % phase

Definition at line 140 of file ReadOfcFromCrest.py.

◆ nchann

ReadOfcFromCrest.nchann = ofc.getNChans()

Definition at line 125 of file ReadOfcFromCrest.py.

◆ nfields

ReadOfcFromCrest.nfields = ofc.getNFields()

Definition at line 126 of file ReadOfcFromCrest.py.

◆ nphases

ReadOfcFromCrest.nphases = ofc.getNPhases()

Definition at line 128 of file ReadOfcFromCrest.py.

◆ nsamples

ReadOfcFromCrest.nsamples = ofc.getNSamples()

Definition at line 127 of file ReadOfcFromCrest.py.

◆ ofc

ReadOfcFromCrest.ofc = blobReader.getDrawer(ros, drawer,(run,lumi))

Definition at line 122 of file ReadOfcFromCrest.py.

◆ opts

ReadOfcFromCrest.opts

Definition at line 36 of file ReadOfcFromCrest.py.

◆ part_dict

dict ReadOfcFromCrest.part_dict = {'AUX':0,'LBA':1,'LBC':2,'EBA':3,'EBC':4}

Definition at line 69 of file ReadOfcFromCrest.py.

◆ partname

ReadOfcFromCrest.partname = a[:3]

Definition at line 68 of file ReadOfcFromCrest.py.

◆ phase

ReadOfcFromCrest.phase = ofc.getPhase(channel, adc, iphase)

Definition at line 139 of file ReadOfcFromCrest.py.

◆ ros

dict ReadOfcFromCrest.ros = 1

Definition at line 48 of file ReadOfcFromCrest.py.

◆ run

ReadOfcFromCrest.run = 2147483647

Definition at line 43 of file ReadOfcFromCrest.py.

◆ schema

ReadOfcFromCrest.schema = 'CREST'

Definition at line 45 of file ReadOfcFromCrest.py.

◆ tag

str ReadOfcFromCrest.tag = ""

Definition at line 47 of file ReadOfcFromCrest.py.