ATLAS Offline Software
Functions | Variables
beamspotVtxAnalysis Namespace Reference

Functions

def makeListFromString (s, token=',')
 
def findBeamspots (file, dir, pattern)
 
def makePoint (tree, prefix, xval='x0', xlow=-8, xhigh=8, xbins=100, doGausFit=True, cuts="")
 
def AddText (xmin, ymin, text, size=0.015, font=None)
 
def makeFloatFromString (s)
 
def splitBeamspotTreeTitle (title, cutToken="CUT")
 
def getTree (name, file, dir)
 
def getObject (chain, name)
 
def AddStatText (h, minx=0.7, miny=0.7, title="", units="", pars=['Mean', 'RMS'])
 
def makeHists (tree, name)
 
def makeCanvas (name, hists, xlabel, ylabel, doStats=True, doLegend=True, units="", logy=False, setMinZero=True, drawOptions="", histLabels=[])
 
def getObjects (file, prefix, names)
 
def makeStandardPlots (file, prefix, names=[], nameLabels=[], doMC=False, logy=True)
 
def makeDeltaPlots (file, prefix, names=[], nameLabels=[])
 

Variables

string __author__ = 'James Walder'
 
string __version__ = '$Id$'
 
string __usage__ = '%prog [options] '
 
 parser = OptionParser(usage=__usage__, version=__version__)
 
 dest
 
 default
 
 help
 
 action
 
 False
 
 options
 
 args
 
list legends = []
 
list pdglines = []
 
list labels = []
 
list ghists = []
 
list failed = []
 
list graphs = []
 
list canvases = []
 
float PointSize = 1.6
 
float MaxHeightFactor = 1.5
 
list colours = [ EColor.kRed+1, EColor.kBlue+1, EColor.kGreen-8, EColor.kYellow+2]
 
list markers = [20,25,22,27,23,28,30,21]
 
float plotTextSize = 0.03
 
def files = makeListFromString(options.files)
 
 fii = TFile(files[0])
 
list cs = []
 
 bsfii = TFile(options.beamspotFile)
 
def bs = findBeamspots(bsfii,"Beamspot","Beamspots.*")
 
list type = ['Adaptive','InDetPriVxFinderFastFinder','InDetPriVxFinderFullFinder']
 
def bsAdaptive = findBeamspots(bsfii,"Beamspot","Beamspots.*"+t+".*")
 
list hx = []
 
list hy = []
 
list hz = []
 
list hsx = []
 
list hsy = []
 
list hsz = []
 
list hax = []
 
list hay = []
 
list hk = []
 
list hrhoxy = []
 
string name = "SCT"
 
def hists = makeHists(i,name)
 
 s = raw_input('--> ')
 

Function Documentation

◆ AddStatText()

def beamspotVtxAnalysis.AddStatText (   h,
  minx = 0.7,
  miny = 0.7,
  title = "",
  units = "",
  pars = ['Mean','RMS'] 
)

Definition at line 175 of file beamspotVtxAnalysis.py.

175 def AddStatText(h, minx=0.7,miny=0.7,title="",units="",pars=['Mean','RMS']):
176  n = h.GetEntries()
177  En = sqrt(n)
178 
179  m = h.GetMean()
180  Em = h.GetMeanError()
181 
182  r = h.GetRMS()
183  Er = h.GetRMSError()
184 
185  step =0.033
186  ypos = miny;
187  if len(title) > 0:
188  AddText(minx, ypos, title,plotTextSize)
189  ypos = ypos - step
190  if "Entries" in pars:
191  nsig = 'N = %(v).0f #pm %(ev).0f' % { 'v': n, 'ev': En}
192  AddText(minx, ypos, nsig,plotTextSize)
193  ypos = ypos - step
194  if "Mean" in pars:
195  mass = '#mu= %(v).04f #pm %(ev).04f %(u)s'% { 'v': m, 'ev': Em, 'u':units}
196  AddText(minx, ypos, mass,plotTextSize)
197  ypos = ypos - step
198  if "RMS" in pars:
199  sigma= 'RMS = %(v)2.4f #pm %(ev)2.4f %(u)s'% { 'v': r, 'ev': Er, 'u':units}
200  AddText(minx, ypos, sigma,plotTextSize)
201  ypos = ypos - step
202 
203 

◆ AddText()

def beamspotVtxAnalysis.AddText (   xmin,
  ymin,
  text,
  size = 0.015,
  font = None 
)

Definition at line 110 of file beamspotVtxAnalysis.py.

110 def AddText(xmin,ymin,text,size=0.015, font=None):
111  m = TLatex() # //l.SetTextAlign(12); l.SetTextSize(tsize);
112  m.SetNDC();
113  #m.SetTextFont(72);
114  m.SetTextColor(EColor.kBlack);
115  m.SetTextSize(size)
116  if font != None:
117  m.SetTextFont(font)
118  m.DrawLatex(xmin,ymin,text);
119  labels.append(m)
120 
121 

◆ findBeamspots()

def beamspotVtxAnalysis.findBeamspots (   file,
  dir,
  pattern 
)

Definition at line 58 of file beamspotVtxAnalysis.py.

58 def findBeamspots(file,dir, pattern):
59  import re
60  from ROOT import gDirectory
61  file.cd(dir)
62  p = re.compile(pattern)
63  print p.pattern
64  n = gDirectory.GetListOfKeys().GetSize()
65  print "N: ", n
66  matched = []
67  for i in range(n):
68  name = gDirectory.GetListOfKeys().At(i).GetName()
69  if not p.match(name):
70  continue
71  print name
72  #print p.match(name)
73  h = gDirectory.Get(gDirectory.GetListOfKeys().At(i).GetName())
74  #print h, h.GetName()
75  matched.append(h)
76 
77  file.cd()
78  return matched
79 

◆ getObject()

def beamspotVtxAnalysis.getObject (   chain,
  name 
)

Definition at line 164 of file beamspotVtxAnalysis.py.

164 def getObject(chain,name):
165  try:
166  h = chain.Get(name)
167  #h=chain.Get(name)
168  h.Print()
169  except:
170  print "No object in ", chain.GetName(), dir,name
171  h = None
172  return h
173 
174 

◆ getObjects()

def beamspotVtxAnalysis.getObjects (   file,
  prefix,
  names 
)

Definition at line 301 of file beamspotVtxAnalysis.py.

301 def getObjects(file, prefix,names):
302  o=[]
303  for i in names:
304  o.append(getObject(file,prefix+i))
305  return o
306 

◆ getTree()

def beamspotVtxAnalysis.getTree (   name,
  file,
  dir 
)

Definition at line 144 of file beamspotVtxAnalysis.py.

144 def getTree(name, file, dir):
145  tr = file.Get(dir +"/" + name)
146  print type(tr)
147  return tr
148 
149 
150 # Start of main programs
151 
152 #Open the files
153 

◆ makeCanvas()

def beamspotVtxAnalysis.makeCanvas (   name,
  hists,
  xlabel,
  ylabel,
  doStats = True,
  doLegend = True,
  units = "",
  logy = False,
  setMinZero = True,
  drawOptions = "",
  histLabels = [] 
)

Definition at line 225 of file beamspotVtxAnalysis.py.

225 def makeCanvas(name, hists, xlabel, ylabel, doStats=True,doLegend=True, units="", logy=False,setMinZero=True,drawOptions="",histLabels=[]):
226  canv = TCanvas(name, "",800,600)
227 
228  min=10e6
229  max=-10e6
230  for i in hists:
231  m = i.GetMaximum()
232  max = ( m if m>max else max)
233  m = i.GetMinimum()
234  min = (m if m < min else min)
235 
236  if setMinZero and not logy:
237  min=0
238  if min<=0 and logy:
239  min=0.01
240  #if min > 1 and logy:
241  # min=0.1
242 
243  c=0
244  m=0
245  isFirst=True
246  for i in hists:
247  i.SetMarkerColor(colours[c])
248  i.SetLineColor(colours[c])
249  i.SetMarkerStyle(markers[m])
250  c = c+1
251  if c == len(colours):
252  m = m+1
253  c=0
254  if m == len(markers):
255  m=0
256 
257  if isFirst:
258  i.SetMinimum( min)
259  i.SetMaximum( max*1.5)
260  i.SetXTitle(xlabel)
261  if "XXX" not in ylabel :
262  print "XX"
263  s = ylabel
264  else:
265  print "YY"
266  n = i.GetBinWidth(1)
267  l = '%(n).4f'%{'n':n}
268  s = ylabel.replace("XXX",l)
269  i.SetYTitle(s)
270  i.Draw(drawOptions)
271  isFirst = False
272  else:
273  i.Draw(drawOptions+"sames")
274  if logy:
275  canv.SetLogy(1)
276  if doStats:
277  pos = 0.9
278  for i in range(len(hists)):
279  if len(histLabels) == 0:
280  AddStatText(hists[i], minx=0.7, miny=pos, title = hists[i].GetName())
281  else:
282  AddStatText(hists[i], minx=0.7, miny=pos, title = histLabels[i])
283  pos = pos -0.15
284  if doLegend:
285  leg = TLegend(0.2,0.7,0.4,0.9)
286  leg.SetFillColor(0);
287  leg.SetFillStyle(0);
288  leg.SetBorderSize(0);
289  for i in range(len(hists)):
290  if len(histLabels) == 0:
291  leg.AddEntry(hists[i], hists[i].GetName())
292  else:
293  leg.AddEntry(hists[i], histLabels[i])
294 
295  legends.append(leg)
296  leg.Draw()
297 
298  return canv
299 
300 

◆ makeDeltaPlots()

def beamspotVtxAnalysis.makeDeltaPlots (   file,
  prefix,
  names = [],
  nameLabels = [] 
)

Definition at line 345 of file beamspotVtxAnalysis.py.

345 def makeDeltaPlots(file, prefix,names=[],nameLabels=[]):
346 
347  cs = []
348  cs.append(makeCanvas(prefix+"_DnTracks",getObjects(file,"hDnTracks_",names)
349  , xlabel="#DeltanTracks", ylabel = "Entries/ XXX", logy=True,histLabels=nameLabels))
350  cs.append(makeCanvas(prefix+"_Dsumpt",getObjects(file,"hDsumpt_",names)
351  , xlabel="#Deltasumpt", ylabel = "Entries/ XXX", logy=True,histLabels=nameLabels))
352 
353  cs.append(makeCanvas(prefix+"_Dx",getObjects(file,"hvDx_",names)
354  ,xlabel="#Deltax [mm]", ylabel = "Entries/ XXX", logy=True,histLabels=nameLabels))
355  cs.append(makeCanvas(prefix+"_Dy",getObjects(file,"hvDy_",names)
356  ,xlabel="#Deltay [mm]", ylabel = "Entries/ XXX", logy=True,histLabels=nameLabels))
357  cs.append(makeCanvas(prefix+"_Dz",getObjects(file,"hvDz_",names)
358  ,xlabel="#Deltaz [mm]", ylabel = "Entries/ XXX", logy=True,histLabels=nameLabels))
359 
360  cs.append(makeCanvas(prefix+"_DEx",getObjects(file,"hvDEx_",names)
361  ,xlabel="#Delta#sigma(x) [mm]", ylabel = "Entries/ XXX", logy=True,histLabels=nameLabels))
362  cs.append(makeCanvas(prefix+"_DEy",getObjects(file,"hvDEy_",names)
363  ,xlabel="#Delta#sigma(y) [mm]", ylabel = "Entries/ XXX", logy=True,histLabels=nameLabels))
364  cs.append(makeCanvas(prefix+"_DEz",getObjects(file,"hvDEz_",names)
365  ,xlabel="#Delta#sigma(z) [mm]", ylabel = "Entries/ XXX", logy=True,histLabels=nameLabels))
366 
367 
368 
369  return cs
370 
371 
372 # For the analys
373 #Open the files
374 

◆ makeFloatFromString()

def beamspotVtxAnalysis.makeFloatFromString (   s)

Definition at line 122 of file beamspotVtxAnalysis.py.

122 def makeFloatFromString(s):
123  subs = { 'p':'.', 'm':'-' }
124  n = ""
125  for i in s:
126  c = i
127  if i in subs.keys():
128  c = subs[i]
129  n = n+c
130  return float(n)
131 
132 

◆ makeHists()

def beamspotVtxAnalysis.makeHists (   tree,
  name 
)

Definition at line 204 of file beamspotVtxAnalysis.py.

204 def makeHists( tree, name):
205  points= []
206 
207  cuts='nEvents>5000&&fitID==1&&fitStatus==1'
208 
209  xpos = makePoint( tree,name, xval='xc',xbins=100,xlow=-0.16,xhigh=-0.12,doGausFit=False,cuts=cuts)[-1]
210  ypos = makePoint( tree,name, xval='yc',xbins=100,xlow=0.99,xhigh=1.02,doGausFit=False,cuts=cuts)[-1]
211  zpos = makePoint( tree,name, xval='z', xbins=50,xlow=-2,xhigh=3,doGausFit=False,cuts=cuts)[-1]
212 
213  sx = makePoint( tree,name,xval='sx',xbins=100,xlow=0.06,xhigh=0.1,doGausFit=False,cuts=cuts)[-1]
214  sy = makePoint( tree,name, xval='sy',xbins=100,xlow=0.06,xhigh=0.1,doGausFit=False,cuts=cuts)[-1]
215  sz = makePoint( tree,name, xval='sz',xbins=100,xlow=55,xhigh=65,doGausFit=False,cuts=cuts)[-1]
216  ax = makePoint( tree,name, xval='ax',xbins=50,xlow=400e-6,xhigh=700e-6,doGausFit=False,cuts=cuts)[-1]
217  ay = makePoint( tree,name, xval='ay',xbins=50,xlow=-20e-6,xhigh=100e-6,doGausFit=False,cuts=cuts)[-1]
218  k = makePoint( tree,name, xval='k', xbins=100,xlow=0.9,xhigh=1.3,doGausFit=False,cuts=cuts)[-1]
219  rhoxy = makePoint( tree,name, xval='rhoxy',xbins=100,xlow=-0.3,xhigh=0.3,doGausFit=False,cuts=cuts)[-1]
220 
221  return (xpos, ypos, zpos, sx, sy, sz, ax, ay, k, rhoxy)
222 
223 
224 

◆ makeListFromString()

def beamspotVtxAnalysis.makeListFromString (   s,
  token = ',' 
)

Definition at line 14 of file beamspotVtxAnalysis.py.

14 def makeListFromString(s,token=','):
15  names = s.split(token)
16  return names
17 

◆ makePoint()

def beamspotVtxAnalysis.makePoint (   tree,
  prefix,
  xval = 'x0',
  xlow = -8,
  xhigh = 8,
  xbins = 100,
  doGausFit = True,
  cuts = "" 
)

Definition at line 80 of file beamspotVtxAnalysis.py.

80 def makePoint( tree,prefix ,xval='x0',xlow=-8, xhigh=8, xbins=100, doGausFit=True, cuts=""):
81  h = TH1D(prefix+"_"+xval, "h_"+tree.GetName()+"_"+xval, xbins, xlow,xhigh)
82  p = '(%(x)s) >> %(h)s' % { 'x':xval, 'h':h.GetName()}
83  h.SetXTitle(xval)
84  ylabel = "Entries / XXX"
85  n = h.GetBinWidth(1)
86  l = '%(n).2f'%{'n':n}
87  s = ylabel.replace("XXX",l)
88  h.SetYTitle(s)
89 
90  print p
91  tree.Draw( p , cuts);
92  h.Print()
93 
94  mean = h.GetMean()
95  meanErr = h.GetMeanError()
96  rms = h.GetRMS()
97  rmsErr = h.GetRMSError()
98  if doGausFit:
99  h.Fit("gaus","LL")
100  f = h.GetFunction("gaus")
101  mean = f.GetParameter(1)
102  meanErr = f.GetParError(1)
103  rms = f.GetParameter(2)
104  rmsErr = f.GetParError(2)
105  ghists.append(h)
106  print h.GetName(), mean, meanErr, rms, rmsErr
107  return (mean, meanErr, rms, rmsErr,h)
108 
109 

◆ makeStandardPlots()

def beamspotVtxAnalysis.makeStandardPlots (   file,
  prefix,
  names = [],
  nameLabels = [],
  doMC = False,
  logy = True 
)

Definition at line 307 of file beamspotVtxAnalysis.py.

307 def makeStandardPlots(file, prefix,names=[],nameLabels=[], doMC=False, logy=True):
308 
309  cs = []
310  cs.append(makeCanvas(prefix+"_nTracks",getObjects(file,"hnTracks_",names)
311  , xlabel="nTracks", ylabel = "Entries/ XXX", logy=logy,histLabels=nameLabels))
312 
313  cs.append(makeCanvas(prefix+"_chi2",getObjects(file,"hchi2_",names)
314  , xlabel="chi2", ylabel = "Entries/ XXX", logy=logy,histLabels=nameLabels))
315  cs.append(makeCanvas(prefix+"_prob",getObjects(file,"hprob_",names)
316  , xlabel="prob", ylabel = "Entries/ XXX", logy=logy,histLabels=nameLabels))
317  cs.append(makeCanvas(prefix+"_sumpt",getObjects(file,"hsumpt_",names)
318  , xlabel="sumpt", ylabel = "Entries/ XXX", logy=logy,histLabels=nameLabels))
319 
320  cs.append(makeCanvas(prefix+"_x",getObjects(file,"hvx_",names)
321  ,xlabel="x [mm]", ylabel = "Entries/ XXX", logy=logy,histLabels=nameLabels))
322  cs.append(makeCanvas(prefix+"_y",getObjects(file,"hvy_",names)
323  ,xlabel="y [mm]", ylabel = "Entries/ XXX", logy=logy,histLabels=nameLabels))
324  cs.append(makeCanvas(prefix+"_z",getObjects(file,"hvz_",names)
325  ,xlabel="z [mm]", ylabel = "Entries/ XXX", logy=logy,histLabels=nameLabels))
326 
327  cs.append(makeCanvas(prefix+"_Ex",getObjects(file,"hvEx_",names)
328  ,xlabel="#sigma(x) [mm]", ylabel = "Entries/ XXX", logy=logy,histLabels=nameLabels))
329  cs.append(makeCanvas(prefix+"_Ey",getObjects(file,"hvEy_",names)
330  ,xlabel="#sigma(y) [mm]", ylabel = "Entries/ XXX", logy=logy,histLabels=nameLabels))
331  cs.append(makeCanvas(prefix+"_Ez",getObjects(file,"hvEz_",names)
332  ,xlabel="#sigma(z) [mm]", ylabel = "Entries/ XXX", logy=logy,histLabels=nameLabels))
333 
334  if doMC:
335  cs.append(makeCanvas(prefix+"_Pullx",getObjects(file,"hvxPullMC_",names)
336  ,xlabel="Pull x", ylabel = "Entries/ XXX", logy=logy,histLabels=nameLabels))
337  cs.append(makeCanvas(prefix+"_Pully",getObjects(file,"hvyPullMC_",names)
338  ,xlabel="Pull y", ylabel = "Entries/ XXX", logy=logy,histLabels=nameLabels))
339  cs.append(makeCanvas(prefix+"_Pullz",getObjects(file,"hvzPullMC_",names)
340  ,xlabel="Pull z", ylabel = "Entries/ XXX", logy=logy,histLabels=nameLabels))
341 
342 
343  return cs
344 

◆ splitBeamspotTreeTitle()

def beamspotVtxAnalysis.splitBeamspotTreeTitle (   title,
  cutToken = "CUT" 
)

Definition at line 133 of file beamspotVtxAnalysis.py.

133 def splitBeamspotTreeTitle(title, cutToken="CUT"):
134  t = title.split(cutToken)
135  namestring = t[0].strip('_')
136  cutstring = t[-1].strip('_')
137  cuts = cutstring.split('_')
138  output = {}
139  for i in range(0,len(cuts),2):
140  output[cuts[i]] = makeFloatFromString(cuts[i+1])
141 
142  return output,namestring
143 

Variable Documentation

◆ __author__

string beamspotVtxAnalysis.__author__ = 'James Walder'
private

Definition at line 10 of file beamspotVtxAnalysis.py.

◆ __usage__

string beamspotVtxAnalysis.__usage__ = '%prog [options] '
private

Definition at line 12 of file beamspotVtxAnalysis.py.

◆ __version__

string beamspotVtxAnalysis.__version__ = '$Id$'
private

Definition at line 11 of file beamspotVtxAnalysis.py.

◆ action

beamspotVtxAnalysis.action

Definition at line 23 of file beamspotVtxAnalysis.py.

◆ args

beamspotVtxAnalysis.args

Definition at line 25 of file beamspotVtxAnalysis.py.

◆ bs

def beamspotVtxAnalysis.bs = findBeamspots(bsfii,"Beamspot","Beamspots.*")

Definition at line 418 of file beamspotVtxAnalysis.py.

◆ bsAdaptive

def beamspotVtxAnalysis.bsAdaptive = findBeamspots(bsfii,"Beamspot","Beamspots.*"+t+".*")

Definition at line 422 of file beamspotVtxAnalysis.py.

◆ bsfii

beamspotVtxAnalysis.bsfii = TFile(options.beamspotFile)

Definition at line 415 of file beamspotVtxAnalysis.py.

◆ canvases

list beamspotVtxAnalysis.canvases = []

Definition at line 45 of file beamspotVtxAnalysis.py.

◆ colours

list beamspotVtxAnalysis.colours = [ EColor.kRed+1, EColor.kBlue+1, EColor.kGreen-8, EColor.kYellow+2]

Definition at line 50 of file beamspotVtxAnalysis.py.

◆ cs

list beamspotVtxAnalysis.cs = []

Definition at line 391 of file beamspotVtxAnalysis.py.

◆ default

beamspotVtxAnalysis.default

Definition at line 19 of file beamspotVtxAnalysis.py.

◆ dest

beamspotVtxAnalysis.dest

Definition at line 19 of file beamspotVtxAnalysis.py.

◆ failed

list beamspotVtxAnalysis.failed = []

Definition at line 43 of file beamspotVtxAnalysis.py.

◆ False

beamspotVtxAnalysis.False

Definition at line 23 of file beamspotVtxAnalysis.py.

◆ fii

beamspotVtxAnalysis.fii = TFile(files[0])

Definition at line 156 of file beamspotVtxAnalysis.py.

◆ files

def beamspotVtxAnalysis.files = makeListFromString(options.files)

Definition at line 154 of file beamspotVtxAnalysis.py.

◆ ghists

list beamspotVtxAnalysis.ghists = []

Definition at line 42 of file beamspotVtxAnalysis.py.

◆ graphs

list beamspotVtxAnalysis.graphs = []

Definition at line 44 of file beamspotVtxAnalysis.py.

◆ hax

list beamspotVtxAnalysis.hax = []

Definition at line 430 of file beamspotVtxAnalysis.py.

◆ hay

list beamspotVtxAnalysis.hay = []

Definition at line 431 of file beamspotVtxAnalysis.py.

◆ help

beamspotVtxAnalysis.help

Definition at line 19 of file beamspotVtxAnalysis.py.

◆ hists

def beamspotVtxAnalysis.hists = makeHists(i,name)

Definition at line 452 of file beamspotVtxAnalysis.py.

◆ hk

list beamspotVtxAnalysis.hk = []

Definition at line 432 of file beamspotVtxAnalysis.py.

◆ hrhoxy

list beamspotVtxAnalysis.hrhoxy = []

Definition at line 433 of file beamspotVtxAnalysis.py.

◆ hsx

list beamspotVtxAnalysis.hsx = []

Definition at line 427 of file beamspotVtxAnalysis.py.

◆ hsy

list beamspotVtxAnalysis.hsy = []

Definition at line 428 of file beamspotVtxAnalysis.py.

◆ hsz

list beamspotVtxAnalysis.hsz = []

Definition at line 429 of file beamspotVtxAnalysis.py.

◆ hx

list beamspotVtxAnalysis.hx = []

Definition at line 424 of file beamspotVtxAnalysis.py.

◆ hy

list beamspotVtxAnalysis.hy = []

Definition at line 425 of file beamspotVtxAnalysis.py.

◆ hz

list beamspotVtxAnalysis.hz = []

Definition at line 426 of file beamspotVtxAnalysis.py.

◆ labels

list beamspotVtxAnalysis.labels = []

Definition at line 41 of file beamspotVtxAnalysis.py.

◆ legends

list beamspotVtxAnalysis.legends = []

Definition at line 39 of file beamspotVtxAnalysis.py.

◆ markers

list beamspotVtxAnalysis.markers = [20,25,22,27,23,28,30,21]

Definition at line 51 of file beamspotVtxAnalysis.py.

◆ MaxHeightFactor

float beamspotVtxAnalysis.MaxHeightFactor = 1.5

Definition at line 48 of file beamspotVtxAnalysis.py.

◆ name

string beamspotVtxAnalysis.name = "SCT"

Definition at line 441 of file beamspotVtxAnalysis.py.

◆ options

beamspotVtxAnalysis.options

Definition at line 25 of file beamspotVtxAnalysis.py.

◆ parser

beamspotVtxAnalysis.parser = OptionParser(usage=__usage__, version=__version__)

Definition at line 18 of file beamspotVtxAnalysis.py.

◆ pdglines

list beamspotVtxAnalysis.pdglines = []

Definition at line 40 of file beamspotVtxAnalysis.py.

◆ plotTextSize

float beamspotVtxAnalysis.plotTextSize = 0.03

Definition at line 52 of file beamspotVtxAnalysis.py.

◆ PointSize

float beamspotVtxAnalysis.PointSize = 1.6

Definition at line 47 of file beamspotVtxAnalysis.py.

◆ s

beamspotVtxAnalysis.s = raw_input('--> ')

Definition at line 481 of file beamspotVtxAnalysis.py.

◆ type

list beamspotVtxAnalysis.type = ['Adaptive','InDetPriVxFinderFastFinder','InDetPriVxFinderFullFinder']

Definition at line 420 of file beamspotVtxAnalysis.py.

beamspotVtxAnalysis.AddText
def AddText(xmin, ymin, text, size=0.015, font=None)
Definition: beamspotVtxAnalysis.py:110
beamspotVtxAnalysis.makePoint
def makePoint(tree, prefix, xval='x0', xlow=-8, xhigh=8, xbins=100, doGausFit=True, cuts="")
Definition: beamspotVtxAnalysis.py:80
beamspotVtxAnalysis.makeHists
def makeHists(tree, name)
Definition: beamspotVtxAnalysis.py:204
beamspotVtxAnalysis.makeFloatFromString
def makeFloatFromString(s)
Definition: beamspotVtxAnalysis.py:122
TH1D
Definition: rootspy.cxx:342
beamspotVtxAnalysis.splitBeamspotTreeTitle
def splitBeamspotTreeTitle(title, cutToken="CUT")
Definition: beamspotVtxAnalysis.py:133
beamspotVtxAnalysis.getObject
def getObject(chain, name)
Definition: beamspotVtxAnalysis.py:164
beamspotVtxAnalysis.getObjects
def getObjects(file, prefix, names)
Definition: beamspotVtxAnalysis.py:301
beamspotVtxAnalysis.type
list type
Definition: beamspotVtxAnalysis.py:420
beamspotVtxAnalysis.AddStatText
def AddStatText(h, minx=0.7, miny=0.7, title="", units="", pars=['Mean', 'RMS'])
Definition: beamspotVtxAnalysis.py:175
beamspotVtxAnalysis.makeCanvas
def makeCanvas(name, hists, xlabel, ylabel, doStats=True, doLegend=True, units="", logy=False, setMinZero=True, drawOptions="", histLabels=[])
Definition: beamspotVtxAnalysis.py:225
beamspotVtxAnalysis.getTree
def getTree(name, file, dir)
Definition: beamspotVtxAnalysis.py:144
plotBeamSpotVxVal.range
range
Definition: plotBeamSpotVxVal.py:195
beamspotVtxAnalysis.findBeamspots
def findBeamspots(file, dir, pattern)
Definition: beamspotVtxAnalysis.py:58
beamspotVtxAnalysis.makeListFromString
def makeListFromString(s, token=',')
Definition: beamspotVtxAnalysis.py:14
beamspotVtxAnalysis.makeStandardPlots
def makeStandardPlots(file, prefix, names=[], nameLabels=[], doMC=False, logy=True)
Definition: beamspotVtxAnalysis.py:307
beamspotVtxAnalysis.makeDeltaPlots
def makeDeltaPlots(file, prefix, names=[], nameLabels=[])
Definition: beamspotVtxAnalysis.py:345
readCCLHist.float
float
Definition: readCCLHist.py:83