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

Functions

 usage ()

Variables

str letters = "hr:l:S:s:t:f:p:d:c:a:g:n:"
list keywords = ["help","run=","lumi=","server=","schema=","tag=","folder=","ros=","drawer=","channel=","adc=","gain=","nval="]
 opts
 extraparams
int run = 2147483647
int lumi = 0
str server = ''
str schema = 'COOLOFL_TILE/CONDBR2'
str folderPath = "/TILE/OFL02/CALIB/CIS/LIN"
str tag = "UPD4"
int ros = 1
int drawer = 0
int channel = 0
int adc = 0
int nval = 0
 a = a.strip()
 log = getLogger("ReadFloat")
 db = TileCalibTools.openDbConn(schema,server)
 folderTag = TileCalibTools.getFolderTag(db, folderPath, tag)
 blobReader = TileCalibTools.TileBlobReader(db,folderPath, folderTag)
 flt = blobReader.getDrawer(ros, drawer,(run,lumi))
 modName = TileCalibUtils.getDrawerString(ros,drawer)
str msg = "%s ch %i gn %i :" % ( modName, channel, adc )

Function Documentation

◆ usage()

ReadFloatFromCool.usage ( )

Definition at line 11 of file ReadFloatFromCool.py.

11def usage():
12 print ("Usage: ",sys.argv[0]," [OPTION] ... ")
13 print ("Dumps the TileCal constants from various schemas / folders / tags")
14 print ("")
15 print ("-h, --help shows this help")
16 print ("-f, --folder= specify status folder to use f.i. /TILE/OFL02/CALIB/CIS/LIN ")
17 print ("-t, --tag= specify tag to use, f.i. UPD1 or UPD4 or full suffix like RUN2-HLT-UPD1-00")
18 print ("-r, --run= specify run number, by default uses latest iov")
19 print ("-l, --lumi= specify lumi block number, default is 0")
20 print ("-p, --ros= specify partition (ros number), default is 1")
21 print ("-d, --drawer= specify drawer number, default is 0")
22 print ("-c, --channel= specify channel number, default is 0")
23 print ("-g, -a, --adc= specify gain (adc number), default is 0")
24 print ("-n, --nval= specify number of values to output, default is all")
25 print ("-s, --schema= specify schema to use, like 'COOLOFL_TILE/CONDBR2' or 'sqlite://;schema=tileSqlite.db;dbname=CONDBR2'")
26 print ("-S, --server= specify server - ORACLE or FRONTIER, default is FRONTIER")
27
StatusCode usage()

Variable Documentation

◆ a

ReadFloatFromCool.a = a.strip()

Definition at line 53 of file ReadFloatFromCool.py.

◆ adc

ReadFloatFromCool.adc = 0

Definition at line 48 of file ReadFloatFromCool.py.

◆ blobReader

ReadFloatFromCool.blobReader = TileCalibTools.TileBlobReader(db,folderPath, folderTag)

Definition at line 114 of file ReadFloatFromCool.py.

◆ channel

ReadFloatFromCool.channel = 0

Definition at line 47 of file ReadFloatFromCool.py.

◆ db

ReadFloatFromCool.db = TileCalibTools.openDbConn(schema,server)

Definition at line 109 of file ReadFloatFromCool.py.

◆ drawer

ReadFloatFromCool.drawer = 0

Definition at line 46 of file ReadFloatFromCool.py.

◆ extraparams

ReadFloatFromCool.extraparams

Definition at line 32 of file ReadFloatFromCool.py.

◆ flt

ReadFloatFromCool.flt = blobReader.getDrawer(ros, drawer,(run,lumi))

Definition at line 123 of file ReadFloatFromCool.py.

◆ folderPath

ReadFloatFromCool.folderPath = "/TILE/OFL02/CALIB/CIS/LIN"

Definition at line 43 of file ReadFloatFromCool.py.

◆ folderTag

ReadFloatFromCool.folderTag = TileCalibTools.getFolderTag(db, folderPath, tag)

Definition at line 110 of file ReadFloatFromCool.py.

◆ keywords

list ReadFloatFromCool.keywords = ["help","run=","lumi=","server=","schema=","tag=","folder=","ros=","drawer=","channel=","adc=","gain=","nval="]

Definition at line 29 of file ReadFloatFromCool.py.

◆ letters

str ReadFloatFromCool.letters = "hr:l:S:s:t:f:p:d:c:a:g:n:"

Definition at line 28 of file ReadFloatFromCool.py.

◆ log

ReadFloatFromCool.log = getLogger("ReadFloat")

Definition at line 103 of file ReadFloatFromCool.py.

◆ lumi

ReadFloatFromCool.lumi = 0

Definition at line 40 of file ReadFloatFromCool.py.

◆ modName

ReadFloatFromCool.modName = TileCalibUtils.getDrawerString(ros,drawer)

Definition at line 124 of file ReadFloatFromCool.py.

◆ msg

str ReadFloatFromCool.msg = "%s ch %i gn %i :" % ( modName, channel, adc )

Definition at line 125 of file ReadFloatFromCool.py.

◆ nval

ReadFloatFromCool.nval = 0

Definition at line 49 of file ReadFloatFromCool.py.

◆ opts

ReadFloatFromCool.opts

Definition at line 32 of file ReadFloatFromCool.py.

◆ ros

ReadFloatFromCool.ros = 1

Definition at line 45 of file ReadFloatFromCool.py.

◆ run

ReadFloatFromCool.run = 2147483647

Definition at line 39 of file ReadFloatFromCool.py.

◆ schema

ReadFloatFromCool.schema = 'COOLOFL_TILE/CONDBR2'

Definition at line 42 of file ReadFloatFromCool.py.

◆ server

ReadFloatFromCool.server = ''

Definition at line 41 of file ReadFloatFromCool.py.

◆ tag

ReadFloatFromCool.tag = "UPD4"

Definition at line 44 of file ReadFloatFromCool.py.