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

Functions

 usage ()

Variables

str letters = "hr:l:s:t:f:D:S:a:g:b:e:o:z:xL:M:Pp:Tv:i:m:c:I:A:N:X:Y:Z:d:u:C:n"
list words = ["help","run=","lumi=","schema=","tag=","folder=","dbname=","server=","adc=","gain=","print","module=","opt=","zAxis=","noTitle","label=","label2=","chan=","begin=","end=","tree","val=","ind=","part=","modmin=","modmax=","chmin=","chmax=","gmin=","gmax=","vmin=","vmax=","cut=","norm"]
 options
 args
str schema = 'COOLOFL_TILE/CONDBR2'
str dbname = ''
str server = ''
str folderPath = "/TILE/OFL02/CALIB/CIS/LIN"
str tag = "UPD4"
bool line = False
bool noline = False
bool vsbin = False
str plotopt = "dist"
bool save_tree = False
bool print_msg = False
bool opt2d = False
str zAxis = ""
bool setTitle = True
 label = None
str label2 = ""
str partname = "LBA"
str modulename = "LBA01"
int modmin = 0
int modmax = 9999
int chanmin = 0
int chanmax = 9999
int gainmin = 0
int gainmax = 0
 valmin = None
 valmax = None
int mod_n = 0
int chan_n = 0
int gain_n = 0
int val_n = 0
int begin = 0
int end = 0
int runNum = 0
int lumiNum = 0
bool one_run = False
bool multi = False
bool norm = False
 cut = None
 a = a.strip()
int nval = 1
str modnum = modulename[3:]
dict part_dict = {'AUX':0,'LBA':1,'LBC':2,'EBA':3,'EBC':4,'ALL':5}
dict ros = part_dict[partname]
int rosmin = 0
int rosmax = 5
bool many = False
str channame = "%2.2d-%2.2d" % (chanmin,chanmax)
str gainname = "AllG"
 log = getLogger("PlotCalibFromCool")
 logLevel = logging.DEBUG
 log1 = getLogger("PlotCalibFromCool")
list folderTag = []
 ft = TileCalibTools.getFolderTag(schema , fp, tag)
dict COOL_part = ros
int COOL_chan = modmin-1
 idb = TileCalibTools.openDbConn(schema,server)
list iovList = []
list blobReader = []
 br = TileCalibTools.TileBlobReader(idb,fp, ft)
 dbobjs = br.getDBobjsWithinRange(COOL_part, COOL_chan)
 obj = dbobjs.currentRef()
 objsince = obj.since()
int sinceRun = objsince >> 32
int sinceLum = objsince & 0xFFFFFFFF
tuple since = (sinceRun, sinceLum)
 objuntil = obj.until()
int untilRun = objuntil >> 32
int untilLum = objuntil & 0xFFFFFFFF
tuple until = (untilRun, untilLum)
tuple iov = (since, since)
list il = []
tuple iov1 = (-1,-1)
tuple iov2 = iov[0]
int i = len(il)-1
list be = iovList[0][0][0]
list en = iovList[-1][0][0]
 lastrun = TileCalibTools.getLastRunNumber()
int veryEnd = end if (end<lastrun or begin>lastrun) else lastrun
int ib = 0
 ie = len(iovList)
 run = iovs[0][0]
 lumi = iovs[0][1]
 labels = ROOT.vector('string')()
 Creating tree for constants.
 vals = ROOT.vector('double')()
str titsuff = ""
str rlt = titsuff.replace(" ","_").replace("_Tag","")
str gtitle = modulename +" " + " Channel" +("s " if (chanmin!=chanmax) else " ") + channame +" " + gainname + titsuff
str fname = "%s_g%d_v%d%s_%s" % ( partname,gain_n,val_n,rlt,plotopt)
 tree_file = ROOT.TFile(fname+".root","RECREATE")
 tree = TTree("tree","ttree")
 run_n = np.zeros(1, dtype = float)
 lumi_n = np.zeros(1, dtype = float)
 channel_n = np.zeros(1, dtype = float)
 module_n = np.zeros(1, dtype = int)
 ros_n = np.zeros(1, dtype = int)
 value = np.zeros(1, dtype = float)
 scale = np.zeros(1, dtype = float)
bool first = True
 Looping over iovs and filling the tree.
tuple one_iov = (len(iovList)<2)
str rl = "(%i,%i) - (%i,%i)" % (iovs[0][0],iovs[0][1],iovs[1][0],iovs[1][1])
 modName = TileCalibUtils.getDrawerString(ros,mod)
 flt = br.getDrawer(ros, mod,(run,lumi), False, False)
 nchan = flt.getNChans()
 ngain = flt.getNGains()
str msg = "%s %s %2i %1i " % (rl, modName, chn, adc )
str cut_cond = "runnumber == " + str(runNum)
str data = "value"
 Which value to choose.
int cx = 1600
int cy = 800
 canv = TCanvas("PlotCalib","plotCalib",0,0,cx,cy)
 hhh = TH2D("hhh","hhh",modmax-modmin+1,modmin-0.5,modmax+0.5,chanmax-chanmin+1,chanmin-0.5,chanmax+0.5)
int color = 1
list grall = []
int vmin = 1.e+38
int vmax = -1.e+38
str cut0 = cut_cond
str data1 = data
 leg = TLegend(0.7,0.7,0.9,0.9)
str cut1 = "(ros == %d && module == %d && channel == %d) && %s" % (ros,mod,chn,cut0)
 gr = TGraph(tree.GetSelectedRows(),tree.GetV2(),tree.GetV1())
 yy = gr.GetY()
 vv = yy[ii]
 lg = len(grall)
int nc = 20
tuple extra = (2+0.4*int(lg/nc+1))
tuple dv = (vmax-vmin)/10.
 nentries = tree.GetEntries()
list Matrix = [[1 for y in range(48)] for x in range(64)]
 x = int(module_n[0])
 y = int(channel_n[0])
list sc = Matrix[modmax-1][chanmax] if norm and Matrix[modmax-1][chanmax]>0 else 1
 h = ROOT.gDirectory.Get("htemp")
float dy = 0.05
float delx = 0.115*696*ROOT.gPad.GetWh()/(472*ROOT.gPad.GetWw())
 lat = TLatex()
 p = TLatex()
 ll = max(len(label),len(label2))

Function Documentation

◆ usage()

PlotCalibFromCool.usage ( )

Definition at line 12 of file PlotCalibFromCool.py.

12def usage():
13 print ("How to use: ",sys.argv[0]," [OPTION] ... ")
14 print ("Plots the TileCal constants from various schemas / folders / tags as a function of run number/ lumiblock")
15 print ("")
16 print ("-h, --help shows this help")
17 print ("-T, --tree save all in a tree")
18 print ("-o, --opt= specify plotting option: line, noline or graph, bin, dist or 2d, default is dist")
19 print ("-z, --zAxis= specify label for Z axis on 2d plot")
20 print ("-x, --noTitle create plot without title")
21 print ("-L, --label= create plot with ATLAS/Tile label at the very top and this additional text")
22 print ("-M, --label2= second line of the label, if needed")
23 print ("-P, --print print all the values on the console")
24 print ("-n, --norm normalize everything to the first point")
25 print ("-f, --folder= specify status folder to use f.i. /TILE/OFL02/CALIB/CIS/LIN ")
26 print ("-t, --tag= specify tag to use, f.i. UPD1 or UPD4 or full suffix like RUN2-HLT-UPD1-00")
27 print ("-b, --begin= specify the starting run number")
28 print ("-e, --end= sepcify the last run number")
29 print ("-r, --run= specify fixed run number, will plot constants as a function of lumi")
30 print ("-l, --lumi= specify lumi block number, default is 0")
31 print ("-p, --part= specify which partition to plot, only for --plotopt=2d")
32 print ("-I, --modmin= specify minimal module to use for 2D plot, default is 1")
33 print ("-A, --modmax= specify maximal module to use for 2D plot, default is 64")
34 print ("-N, --chmin= specify minimal channel to use for 2D plot, default is 0")
35 print ("-X, --chmax= specify maximal channel to use for 2D plot, default is 47")
36 print ("-Y, --gmin= specify minimal gain to use for print option, default is 0")
37 print ("-Z, --gmax= specify maximal gain to use for print option, default is 1")
38 print ("-m, --module= specify module to use for 1D plots, default is LBA01")
39 print ("-c, --chan= specify channel to use for 1D plots, default is 0")
40 print ("-g, --gain=, -a, --adc= specify adc(gain) to use, default is 0 (low gain)")
41 print ("-v, --val=, -i, --ind= specify index of value to use, default is 0 ")
42 print ("-d, --vmin= specify minimal value for plot")
43 print ("-u, --vmax= specify maximal value for plot")
44 print ("-C, --cut= specify additional cut on displayed values")
45 print ("-s, --schema= specify schema to use, like 'COOLONL_TILE/CONDBR2' or 'sqlite://;schema=tileSqlite.db;dbname=CONDBR2' or tileSqlite.db")
46 print ("-D, --dbname= specify dbname part of schema if schema only contains file name, default is CONDBR2")
47 print ("-S, --server= specify server - ORACLE or FRONTIER, default is FRONTIER")
48
49
StatusCode usage()

Variable Documentation

◆ a

PlotCalibFromCool.a = a.strip()

Definition at line 104 of file PlotCalibFromCool.py.

◆ args

PlotCalibFromCool.args

Definition at line 53 of file PlotCalibFromCool.py.

◆ be

PlotCalibFromCool.be = iovList[0][0][0]

Definition at line 398 of file PlotCalibFromCool.py.

◆ begin

list PlotCalibFromCool.begin = 0

Definition at line 94 of file PlotCalibFromCool.py.

◆ blobReader

list PlotCalibFromCool.blobReader = []

Definition at line 352 of file PlotCalibFromCool.py.

◆ br

PlotCalibFromCool.br = TileCalibTools.TileBlobReader(idb,fp, ft)

Definition at line 355 of file PlotCalibFromCool.py.

◆ canv

PlotCalibFromCool.canv = TCanvas("PlotCalib","plotCalib",0,0,cx,cy)

Definition at line 670 of file PlotCalibFromCool.py.

◆ chan_n

int PlotCalibFromCool.chan_n = 0

Definition at line 91 of file PlotCalibFromCool.py.

◆ chanmax

int PlotCalibFromCool.chanmax = 9999

Definition at line 85 of file PlotCalibFromCool.py.

◆ chanmin

int PlotCalibFromCool.chanmin = 0

Definition at line 84 of file PlotCalibFromCool.py.

◆ channame

str PlotCalibFromCool.channame = "%2.2d-%2.2d" % (chanmin,chanmax)

Definition at line 278 of file PlotCalibFromCool.py.

◆ channel_n

PlotCalibFromCool.channel_n = np.zeros(1, dtype = float)

Definition at line 497 of file PlotCalibFromCool.py.

◆ color

int PlotCalibFromCool.color = 1

Definition at line 694 of file PlotCalibFromCool.py.

◆ COOL_chan

int PlotCalibFromCool.COOL_chan = modmin-1

Definition at line 343 of file PlotCalibFromCool.py.

◆ COOL_part

int PlotCalibFromCool.COOL_part = ros

Definition at line 342 of file PlotCalibFromCool.py.

◆ cut

str PlotCalibFromCool.cut = None

Definition at line 101 of file PlotCalibFromCool.py.

◆ cut0

str PlotCalibFromCool.cut0 = cut_cond

Definition at line 698 of file PlotCalibFromCool.py.

◆ cut1

str PlotCalibFromCool.cut1 = "(ros == %d && module == %d && channel == %d) && %s" % (ros,mod,chn,cut0)

Definition at line 709 of file PlotCalibFromCool.py.

◆ cut_cond

str PlotCalibFromCool.cut_cond = "runnumber == " + str(runNum)

Definition at line 637 of file PlotCalibFromCool.py.

◆ cx

int PlotCalibFromCool.cx = 1600

Definition at line 666 of file PlotCalibFromCool.py.

◆ cy

int PlotCalibFromCool.cy = 800

Definition at line 667 of file PlotCalibFromCool.py.

◆ data

str PlotCalibFromCool.data = "value"

Which value to choose.

Definition at line 643 of file PlotCalibFromCool.py.

◆ data1

str PlotCalibFromCool.data1 = data

Definition at line 699 of file PlotCalibFromCool.py.

◆ dbname

str PlotCalibFromCool.dbname = ''

Definition at line 65 of file PlotCalibFromCool.py.

◆ dbobjs

PlotCalibFromCool.dbobjs = br.getDBobjsWithinRange(COOL_part, COOL_chan)

Definition at line 357 of file PlotCalibFromCool.py.

◆ delx

float PlotCalibFromCool.delx = 0.115*696*ROOT.gPad.GetWh()/(472*ROOT.gPad.GetWw())

Definition at line 865 of file PlotCalibFromCool.py.

◆ dv

tuple PlotCalibFromCool.dv = (vmax-vmin)/10.

Definition at line 762 of file PlotCalibFromCool.py.

◆ dy

float PlotCalibFromCool.dy = 0.05

Definition at line 864 of file PlotCalibFromCool.py.

◆ en

PlotCalibFromCool.en = iovList[-1][0][0]

Definition at line 399 of file PlotCalibFromCool.py.

◆ end

list PlotCalibFromCool.end = 0

Definition at line 95 of file PlotCalibFromCool.py.

◆ extra

tuple PlotCalibFromCool.extra = (2+0.4*int(lg/nc+1))

Definition at line 761 of file PlotCalibFromCool.py.

◆ first

bool PlotCalibFromCool.first = True

Looping over iovs and filling the tree.

Definition at line 517 of file PlotCalibFromCool.py.

◆ flt

PlotCalibFromCool.flt = br.getDrawer(ros, mod,(run,lumi), False, False)

Definition at line 559 of file PlotCalibFromCool.py.

◆ fname

str PlotCalibFromCool.fname = "%s_g%d_v%d%s_%s" % ( partname,gain_n,val_n,rlt,plotopt)

Definition at line 487 of file PlotCalibFromCool.py.

◆ folderPath

str PlotCalibFromCool.folderPath = "/TILE/OFL02/CALIB/CIS/LIN"

Definition at line 67 of file PlotCalibFromCool.py.

◆ folderTag

list PlotCalibFromCool.folderTag = []

Definition at line 327 of file PlotCalibFromCool.py.

◆ ft

PlotCalibFromCool.ft = TileCalibTools.getFolderTag(schema , fp, tag)

Definition at line 329 of file PlotCalibFromCool.py.

◆ gain_n

int PlotCalibFromCool.gain_n = 0

Definition at line 92 of file PlotCalibFromCool.py.

◆ gainmax

int PlotCalibFromCool.gainmax = 0

Definition at line 87 of file PlotCalibFromCool.py.

◆ gainmin

int PlotCalibFromCool.gainmin = 0

Definition at line 86 of file PlotCalibFromCool.py.

◆ gainname

str PlotCalibFromCool.gainname = "AllG"

Definition at line 299 of file PlotCalibFromCool.py.

◆ gr

PlotCalibFromCool.gr = TGraph(tree.GetSelectedRows(),tree.GetV2(),tree.GetV1())

Definition at line 713 of file PlotCalibFromCool.py.

◆ grall

list PlotCalibFromCool.grall = []

Definition at line 695 of file PlotCalibFromCool.py.

◆ gtitle

str PlotCalibFromCool.gtitle = modulename +" " + " Channel" +("s " if (chanmin!=chanmax) else " ") + channame +" " + gainname + titsuff

Definition at line 484 of file PlotCalibFromCool.py.

◆ h

PlotCalibFromCool.h = ROOT.gDirectory.Get("htemp")

Definition at line 835 of file PlotCalibFromCool.py.

◆ hhh

PlotCalibFromCool.hhh = TH2D("hhh","hhh",modmax-modmin+1,modmin-0.5,modmax+0.5,chanmax-chanmin+1,chanmin-0.5,chanmax+0.5)

Definition at line 673 of file PlotCalibFromCool.py.

◆ i

int PlotCalibFromCool.i = len(il)-1

Definition at line 391 of file PlotCalibFromCool.py.

◆ ib

int PlotCalibFromCool.ib = 0

Definition at line 419 of file PlotCalibFromCool.py.

◆ idb

PlotCalibFromCool.idb = TileCalibTools.openDbConn(schema,server)

Definition at line 350 of file PlotCalibFromCool.py.

◆ ie

int PlotCalibFromCool.ie = len(iovList)

Definition at line 420 of file PlotCalibFromCool.py.

◆ il

list PlotCalibFromCool.il = []

Definition at line 381 of file PlotCalibFromCool.py.

◆ iov

tuple PlotCalibFromCool.iov = (since, since)

Definition at line 372 of file PlotCalibFromCool.py.

◆ iov1

tuple PlotCalibFromCool.iov1 = (-1,-1)

Definition at line 382 of file PlotCalibFromCool.py.

◆ iov2

tuple PlotCalibFromCool.iov2 = iov[0]

Definition at line 384 of file PlotCalibFromCool.py.

◆ iovList

list PlotCalibFromCool.iovList = []

Definition at line 351 of file PlotCalibFromCool.py.

◆ label

PlotCalibFromCool.label = None

Definition at line 78 of file PlotCalibFromCool.py.

◆ label2

PlotCalibFromCool.label2 = ""

Definition at line 79 of file PlotCalibFromCool.py.

◆ labels

PlotCalibFromCool.labels = ROOT.vector('string')()

Creating tree for constants.

Definition at line 473 of file PlotCalibFromCool.py.

◆ lastrun

PlotCalibFromCool.lastrun = TileCalibTools.getLastRunNumber()

Definition at line 401 of file PlotCalibFromCool.py.

◆ lat

PlotCalibFromCool.lat = TLatex()

Definition at line 867 of file PlotCalibFromCool.py.

◆ leg

PlotCalibFromCool.leg = TLegend(0.7,0.7,0.9,0.9)

Definition at line 700 of file PlotCalibFromCool.py.

◆ letters

str PlotCalibFromCool.letters = "hr:l:s:t:f:D:S:a:g:b:e:o:z:xL:M:Pp:Tv:i:m:c:I:A:N:X:Y:Z:d:u:C:n"

Definition at line 50 of file PlotCalibFromCool.py.

◆ lg

PlotCalibFromCool.lg = len(grall)

Definition at line 748 of file PlotCalibFromCool.py.

◆ line

bool PlotCalibFromCool.line = False

Definition at line 69 of file PlotCalibFromCool.py.

◆ ll

PlotCalibFromCool.ll = max(len(label),len(label2))

Definition at line 877 of file PlotCalibFromCool.py.

◆ log

PlotCalibFromCool.log = getLogger("PlotCalibFromCool")

Definition at line 319 of file PlotCalibFromCool.py.

◆ log1

PlotCalibFromCool.log1 = getLogger("PlotCalibFromCool")

Definition at line 323 of file PlotCalibFromCool.py.

◆ logLevel

PlotCalibFromCool.logLevel = logging.DEBUG

Definition at line 321 of file PlotCalibFromCool.py.

◆ lumi

int PlotCalibFromCool.lumi = iovs[0][1]

Definition at line 423 of file PlotCalibFromCool.py.

◆ lumi_n

PlotCalibFromCool.lumi_n = np.zeros(1, dtype = float)

Definition at line 496 of file PlotCalibFromCool.py.

◆ lumiNum

int PlotCalibFromCool.lumiNum = 0

Definition at line 97 of file PlotCalibFromCool.py.

◆ many

tuple PlotCalibFromCool.many = False

Definition at line 268 of file PlotCalibFromCool.py.

◆ Matrix

list PlotCalibFromCool.Matrix = [[1 for y in range(48)] for x in range(64)]

Definition at line 808 of file PlotCalibFromCool.py.

◆ mod_n

int PlotCalibFromCool.mod_n = 0

Definition at line 90 of file PlotCalibFromCool.py.

◆ modmax

int PlotCalibFromCool.modmax = 9999

Definition at line 83 of file PlotCalibFromCool.py.

◆ modmin

int PlotCalibFromCool.modmin = 0

Definition at line 82 of file PlotCalibFromCool.py.

◆ modName

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

Definition at line 556 of file PlotCalibFromCool.py.

◆ modnum

str PlotCalibFromCool.modnum = modulename[3:]

Definition at line 238 of file PlotCalibFromCool.py.

◆ module_n

PlotCalibFromCool.module_n = np.zeros(1, dtype = int)

Definition at line 498 of file PlotCalibFromCool.py.

◆ modulename

str PlotCalibFromCool.modulename = "LBA01"

Definition at line 81 of file PlotCalibFromCool.py.

◆ msg

str PlotCalibFromCool.msg = "%s %s %2i %1i " % (rl, modName, chn, adc )

Definition at line 569 of file PlotCalibFromCool.py.

◆ multi

tuple PlotCalibFromCool.multi = False

Definition at line 99 of file PlotCalibFromCool.py.

◆ nc

int PlotCalibFromCool.nc = 20

Definition at line 755 of file PlotCalibFromCool.py.

◆ nchan

PlotCalibFromCool.nchan = flt.getNChans()

Definition at line 564 of file PlotCalibFromCool.py.

◆ nentries

PlotCalibFromCool.nentries = tree.GetEntries()

Definition at line 798 of file PlotCalibFromCool.py.

◆ ngain

PlotCalibFromCool.ngain = flt.getNGains()

Definition at line 565 of file PlotCalibFromCool.py.

◆ noline

bool PlotCalibFromCool.noline = False

Definition at line 70 of file PlotCalibFromCool.py.

◆ norm

bool PlotCalibFromCool.norm = False

Definition at line 100 of file PlotCalibFromCool.py.

◆ nval

PlotCalibFromCool.nval = 1

Definition at line 228 of file PlotCalibFromCool.py.

◆ obj

PlotCalibFromCool.obj = dbobjs.currentRef()

Definition at line 361 of file PlotCalibFromCool.py.

◆ objsince

PlotCalibFromCool.objsince = obj.since()

Definition at line 362 of file PlotCalibFromCool.py.

◆ objuntil

PlotCalibFromCool.objuntil = obj.until()

Definition at line 366 of file PlotCalibFromCool.py.

◆ one_iov

tuple PlotCalibFromCool.one_iov = (len(iovList)<2)

Definition at line 522 of file PlotCalibFromCool.py.

◆ one_run

bool PlotCalibFromCool.one_run = False

Definition at line 98 of file PlotCalibFromCool.py.

◆ opt2d

bool PlotCalibFromCool.opt2d = False

Definition at line 75 of file PlotCalibFromCool.py.

◆ options

PlotCalibFromCool.options

Definition at line 53 of file PlotCalibFromCool.py.

◆ p

PlotCalibFromCool.p = TLatex()

Definition at line 871 of file PlotCalibFromCool.py.

◆ part_dict

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

Definition at line 251 of file PlotCalibFromCool.py.

◆ partname

str PlotCalibFromCool.partname = "LBA"

Definition at line 80 of file PlotCalibFromCool.py.

◆ plotopt

str PlotCalibFromCool.plotopt = "dist"

Definition at line 72 of file PlotCalibFromCool.py.

◆ print_msg

bool PlotCalibFromCool.print_msg = False

Definition at line 74 of file PlotCalibFromCool.py.

◆ rl

str PlotCalibFromCool.rl = "(%i,%i) - (%i,%i)" % (iovs[0][0],iovs[0][1],iovs[1][0],iovs[1][1])

Definition at line 529 of file PlotCalibFromCool.py.

◆ rlt

str PlotCalibFromCool.rlt = titsuff.replace(" ","_").replace("_Tag","")

Definition at line 483 of file PlotCalibFromCool.py.

◆ ros

int PlotCalibFromCool.ros = part_dict[partname]

Definition at line 253 of file PlotCalibFromCool.py.

◆ ros_n

PlotCalibFromCool.ros_n = np.zeros(1, dtype = int)

Definition at line 499 of file PlotCalibFromCool.py.

◆ rosmax

dict PlotCalibFromCool.rosmax = 5

Definition at line 256 of file PlotCalibFromCool.py.

◆ rosmin

dict PlotCalibFromCool.rosmin = 0

Definition at line 255 of file PlotCalibFromCool.py.

◆ run

int PlotCalibFromCool.run = iovs[0][0]

Definition at line 422 of file PlotCalibFromCool.py.

◆ run_n

PlotCalibFromCool.run_n = np.zeros(1, dtype = float)

Definition at line 495 of file PlotCalibFromCool.py.

◆ runNum

list PlotCalibFromCool.runNum = 0

Definition at line 96 of file PlotCalibFromCool.py.

◆ save_tree

bool PlotCalibFromCool.save_tree = False

Definition at line 73 of file PlotCalibFromCool.py.

◆ sc

list PlotCalibFromCool.sc = Matrix[modmax-1][chanmax] if norm and Matrix[modmax-1][chanmax]>0 else 1

Definition at line 815 of file PlotCalibFromCool.py.

◆ scale

PlotCalibFromCool.scale = np.zeros(1, dtype = float)

Definition at line 501 of file PlotCalibFromCool.py.

◆ schema

str PlotCalibFromCool.schema = 'COOLOFL_TILE/CONDBR2'

Definition at line 64 of file PlotCalibFromCool.py.

◆ server

PlotCalibFromCool.server = ''

Definition at line 66 of file PlotCalibFromCool.py.

◆ setTitle

bool PlotCalibFromCool.setTitle = True

Definition at line 77 of file PlotCalibFromCool.py.

◆ since

tuple PlotCalibFromCool.since = (sinceRun, sinceLum)

Definition at line 365 of file PlotCalibFromCool.py.

◆ sinceLum

int PlotCalibFromCool.sinceLum = objsince & 0xFFFFFFFF

Definition at line 364 of file PlotCalibFromCool.py.

◆ sinceRun

int PlotCalibFromCool.sinceRun = objsince >> 32

Definition at line 363 of file PlotCalibFromCool.py.

◆ tag

PlotCalibFromCool.tag = "UPD4"

Definition at line 68 of file PlotCalibFromCool.py.

◆ titsuff

str PlotCalibFromCool.titsuff = ""

Definition at line 476 of file PlotCalibFromCool.py.

◆ tree

PlotCalibFromCool.tree = TTree("tree","ttree")

Definition at line 494 of file PlotCalibFromCool.py.

◆ tree_file

PlotCalibFromCool.tree_file = ROOT.TFile(fname+".root","RECREATE")

Definition at line 492 of file PlotCalibFromCool.py.

◆ until

tuple PlotCalibFromCool.until = (untilRun, untilLum)

Definition at line 369 of file PlotCalibFromCool.py.

◆ untilLum

int PlotCalibFromCool.untilLum = objuntil & 0xFFFFFFFF

Definition at line 368 of file PlotCalibFromCool.py.

◆ untilRun

int PlotCalibFromCool.untilRun = objuntil >> 32

Definition at line 367 of file PlotCalibFromCool.py.

◆ val_n

PlotCalibFromCool.val_n = 0

Definition at line 93 of file PlotCalibFromCool.py.

◆ valmax

PlotCalibFromCool.valmax = None

Definition at line 89 of file PlotCalibFromCool.py.

◆ valmin

PlotCalibFromCool.valmin = None

Definition at line 88 of file PlotCalibFromCool.py.

◆ vals

PlotCalibFromCool.vals = ROOT.vector('double')()

Definition at line 474 of file PlotCalibFromCool.py.

◆ value

PlotCalibFromCool.value = np.zeros(1, dtype = float)

Definition at line 500 of file PlotCalibFromCool.py.

◆ veryEnd

int PlotCalibFromCool.veryEnd = end if (end<lastrun or begin>lastrun) else lastrun

Definition at line 416 of file PlotCalibFromCool.py.

◆ vmax

PlotCalibFromCool.vmax = -1.e+38

Definition at line 697 of file PlotCalibFromCool.py.

◆ vmin

PlotCalibFromCool.vmin = 1.e+38

Definition at line 696 of file PlotCalibFromCool.py.

◆ vsbin

bool PlotCalibFromCool.vsbin = False

Definition at line 71 of file PlotCalibFromCool.py.

◆ vv

PlotCalibFromCool.vv = yy[ii]

Definition at line 716 of file PlotCalibFromCool.py.

◆ words

list PlotCalibFromCool.words = ["help","run=","lumi=","schema=","tag=","folder=","dbname=","server=","adc=","gain=","print","module=","opt=","zAxis=","noTitle","label=","label2=","chan=","begin=","end=","tree","val=","ind=","part=","modmin=","modmax=","chmin=","chmax=","gmin=","gmax=","vmin=","vmax=","cut=","norm"]

Definition at line 51 of file PlotCalibFromCool.py.

◆ x

float PlotCalibFromCool.x = int(module_n[0])

Definition at line 812 of file PlotCalibFromCool.py.

◆ y

float PlotCalibFromCool.y = int(channel_n[0])

Definition at line 813 of file PlotCalibFromCool.py.

◆ yy

PlotCalibFromCool.yy = gr.GetY()

Definition at line 714 of file PlotCalibFromCool.py.

◆ zAxis

PlotCalibFromCool.zAxis = ""

Definition at line 76 of file PlotCalibFromCool.py.