ATLAS Offline Software
Variables
plotBeamSpotVxVal Namespace Reference

Variables

string __author__ = 'Peter Loscutoff'
 
string __version__ = '$Id $'
 
string __usage__ = 'plotBeamSpotVxVal.py [options] bs.nt.root split.nt.root'
 
 parser = OptionParser(usage=__usage__, version=__version__)
 
 dest
 
 action
 
 default
 
 False
 
 help
 
 options
 
 args
 
 canvas = TCanvas("PlotBsVxVal","PlotBsVxVal",1000,500)
 
 bsfile = TFile(args[0])
 
 splitfile = TFile(args[1])
 
dictionary subplotSVs = {}
 
int fitbins = 3001
 
int plotrange = int(options.plotrange) + 1
 
int outlierCut = 20
 
 plotSV = TH1D("p(s)SV","Pull vs # Tracks",plotrange*2,-.25,plotrange-.25)
 
string nameSV = "plotSV%s" % i
 
 tree = gDirectory.Get("splitVertex")
 
 entries = tree.GetEntriesFast()
 
 noprint = tree.GetEntry(entry)
 
tuple binSV = (tree.tracks_odd+tree.tracks_even)
 
dictionary fitsigma = subplotSVs[nameSV].GetRMS()
 
tuple fserror = (subplotSVs[nameSV].GetRMS())/sqrt(subplotSVs[nameSV].Integral())
 
int bin = i+1
 
 legend = TLegend(.60,.75,.92,.92)
 
dictionary subplots = {}
 
dictionary bstable = {}
 
list splitWeight = []
 
list fullWeight = []
 
 lumiedge = array('d')
 
int lumibins = 0
 
int lumiend = 0
 
 bstree = gDirectory.Get("BeamSpotNt")
 
 lumibegin = bstree.lbStart
 
string name = str(lumibegin) + "to" + str(lumiend)
 
 plotX = TH1D("p(s)X","k vs Lumi Block",lumibins,lumiedge)
 
 plotBS = TH1D("p(s)bs","k vs Lumi Block",lumibins,lumiedge)
 
 sptree = gDirectory.Get("splitVertex")
 
 splitBin = int(.5*(sptree.tracks_odd + sptree.tracks_even) )
 
 vxtree = gDirectory.Get('Vertices')
 
 fullBin = vxtree.nTracks
 
 lumi = sptree.lumi
 
dictionary bs_x0 = bstable[lumi]["x0"]
 
dictionary bs_y0 = bstable[lumi]["y0"]
 
dictionary bs_a = bstable[lumi]["ax"]
 
dictionary bs_b = bstable[lumi]["ay"]
 
dictionary bs_z = bstable[lumi]["z"]
 
dictionary bs_sx = bstable[lumi]["sx"]
 
dictionary bs_sy = bstable[lumi]["sy"]
 
dictionary bs_sz = bstable[lumi]["sz"]
 
dictionary bs_rho = bstable[lumi]["rhoxy"]
 
 range = k.split("to")
 
 cov = array('d')
 
 covmat = TMatrixDSym(2)
 
int min = .8
 
float max = 1.2
 
int sumw = 0
 
int sumwx = 0
 
int midpoint = int(name.split("to")[0])+.5
 
 globalbin = plotBS.FindBin(midpoint)
 
int vsavg = sumwx/sumw
 
float vserr = 1.0/sumw
 
int bsavg = sumwx/sumw
 
float bserr = 1.0/sumw
 

Variable Documentation

◆ __author__

string plotBeamSpotVxVal.__author__ = 'Peter Loscutoff'
private

Definition at line 10 of file plotBeamSpotVxVal.py.

◆ __usage__

string plotBeamSpotVxVal.__usage__ = 'plotBeamSpotVxVal.py [options] bs.nt.root split.nt.root'
private

Definition at line 12 of file plotBeamSpotVxVal.py.

◆ __version__

string plotBeamSpotVxVal.__version__ = '$Id $'
private

Definition at line 11 of file plotBeamSpotVxVal.py.

◆ action

plotBeamSpotVxVal.action

Definition at line 21 of file plotBeamSpotVxVal.py.

◆ args

plotBeamSpotVxVal.args

Definition at line 27 of file plotBeamSpotVxVal.py.

◆ bin

plotBeamSpotVxVal.bin = i+1

Definition at line 83 of file plotBeamSpotVxVal.py.

◆ binSV

tuple plotBeamSpotVxVal.binSV = (tree.tracks_odd+tree.tracks_even)

Definition at line 73 of file plotBeamSpotVxVal.py.

◆ bs_a

dictionary plotBeamSpotVxVal.bs_a = bstable[lumi]["ax"]

Definition at line 185 of file plotBeamSpotVxVal.py.

◆ bs_b

dictionary plotBeamSpotVxVal.bs_b = bstable[lumi]["ay"]

Definition at line 186 of file plotBeamSpotVxVal.py.

◆ bs_rho

dictionary plotBeamSpotVxVal.bs_rho = bstable[lumi]["rhoxy"]

Definition at line 191 of file plotBeamSpotVxVal.py.

◆ bs_sx

dictionary plotBeamSpotVxVal.bs_sx = bstable[lumi]["sx"]

Definition at line 188 of file plotBeamSpotVxVal.py.

◆ bs_sy

dictionary plotBeamSpotVxVal.bs_sy = bstable[lumi]["sy"]

Definition at line 189 of file plotBeamSpotVxVal.py.

◆ bs_sz

dictionary plotBeamSpotVxVal.bs_sz = bstable[lumi]["sz"]

Definition at line 190 of file plotBeamSpotVxVal.py.

◆ bs_x0

dictionary plotBeamSpotVxVal.bs_x0 = bstable[lumi]["x0"]

Definition at line 183 of file plotBeamSpotVxVal.py.

◆ bs_y0

dictionary plotBeamSpotVxVal.bs_y0 = bstable[lumi]["y0"]

Definition at line 184 of file plotBeamSpotVxVal.py.

◆ bs_z

dictionary plotBeamSpotVxVal.bs_z = bstable[lumi]["z"]

Definition at line 187 of file plotBeamSpotVxVal.py.

◆ bsavg

int plotBeamSpotVxVal.bsavg = sumwx/sumw

Definition at line 282 of file plotBeamSpotVxVal.py.

◆ bserr

float plotBeamSpotVxVal.bserr = 1.0/sumw

Definition at line 283 of file plotBeamSpotVxVal.py.

◆ bsfile

plotBeamSpotVxVal.bsfile = TFile(args[0])

Definition at line 47 of file plotBeamSpotVxVal.py.

◆ bstable

dictionary plotBeamSpotVxVal.bstable = {}

Definition at line 107 of file plotBeamSpotVxVal.py.

◆ bstree

plotBeamSpotVxVal.bstree = gDirectory.Get("BeamSpotNt")

Definition at line 118 of file plotBeamSpotVxVal.py.

◆ canvas

plotBeamSpotVxVal.canvas = TCanvas("PlotBsVxVal","PlotBsVxVal",1000,500)

Definition at line 43 of file plotBeamSpotVxVal.py.

◆ cov

plotBeamSpotVxVal.cov = array('d')

Definition at line 201 of file plotBeamSpotVxVal.py.

◆ covmat

plotBeamSpotVxVal.covmat = TMatrixDSym(2)

Definition at line 206 of file plotBeamSpotVxVal.py.

◆ default

plotBeamSpotVxVal.default

Definition at line 21 of file plotBeamSpotVxVal.py.

◆ dest

plotBeamSpotVxVal.dest

Definition at line 21 of file plotBeamSpotVxVal.py.

◆ entries

plotBeamSpotVxVal.entries = tree.GetEntriesFast()

Definition at line 70 of file plotBeamSpotVxVal.py.

◆ False

plotBeamSpotVxVal.False

Definition at line 21 of file plotBeamSpotVxVal.py.

◆ fitbins

int plotBeamSpotVxVal.fitbins = 3001

Definition at line 59 of file plotBeamSpotVxVal.py.

◆ fitsigma

dictionary plotBeamSpotVxVal.fitsigma = subplotSVs[nameSV].GetRMS()

Definition at line 81 of file plotBeamSpotVxVal.py.

◆ fserror

tuple plotBeamSpotVxVal.fserror = (subplotSVs[nameSV].GetRMS())/sqrt(subplotSVs[nameSV].Integral())

Definition at line 82 of file plotBeamSpotVxVal.py.

◆ fullBin

plotBeamSpotVxVal.fullBin = vxtree.nTracks

Definition at line 168 of file plotBeamSpotVxVal.py.

◆ fullWeight

list plotBeamSpotVxVal.fullWeight = []

Definition at line 110 of file plotBeamSpotVxVal.py.

◆ globalbin

plotBeamSpotVxVal.globalbin = plotBS.FindBin(midpoint)

Definition at line 247 of file plotBeamSpotVxVal.py.

◆ help

plotBeamSpotVxVal.help

Definition at line 21 of file plotBeamSpotVxVal.py.

◆ legend

plotBeamSpotVxVal.legend = TLegend(.60,.75,.92,.92)

Definition at line 98 of file plotBeamSpotVxVal.py.

◆ lumi

plotBeamSpotVxVal.lumi = sptree.lumi

Definition at line 181 of file plotBeamSpotVxVal.py.

◆ lumibegin

plotBeamSpotVxVal.lumibegin = bstree.lbStart

Definition at line 125 of file plotBeamSpotVxVal.py.

◆ lumibins

int plotBeamSpotVxVal.lumibins = 0

Definition at line 113 of file plotBeamSpotVxVal.py.

◆ lumiedge

plotBeamSpotVxVal.lumiedge = array('d')

Definition at line 112 of file plotBeamSpotVxVal.py.

◆ lumiend

plotBeamSpotVxVal.lumiend = 0

Definition at line 114 of file plotBeamSpotVxVal.py.

◆ max

plotBeamSpotVxVal.max = 1.2

Definition at line 234 of file plotBeamSpotVxVal.py.

◆ midpoint

int plotBeamSpotVxVal.midpoint = int(name.split("to")[0])+.5

Definition at line 241 of file plotBeamSpotVxVal.py.

◆ min

plotBeamSpotVxVal.min = .8

Definition at line 233 of file plotBeamSpotVxVal.py.

◆ name

string plotBeamSpotVxVal.name = str(lumibegin) + "to" + str(lumiend)

Definition at line 128 of file plotBeamSpotVxVal.py.

◆ nameSV

string plotBeamSpotVxVal.nameSV = "plotSV%s" % i

Definition at line 65 of file plotBeamSpotVxVal.py.

◆ noprint

plotBeamSpotVxVal.noprint = tree.GetEntry(entry)

Definition at line 72 of file plotBeamSpotVxVal.py.

◆ options

plotBeamSpotVxVal.options

Definition at line 27 of file plotBeamSpotVxVal.py.

◆ outlierCut

int plotBeamSpotVxVal.outlierCut = 20

Definition at line 61 of file plotBeamSpotVxVal.py.

◆ parser

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

Definition at line 20 of file plotBeamSpotVxVal.py.

◆ plotBS

plotBeamSpotVxVal.plotBS = TH1D("p(s)bs","k vs Lumi Block",lumibins,lumiedge)

Definition at line 145 of file plotBeamSpotVxVal.py.

◆ plotrange

int plotBeamSpotVxVal.plotrange = int(options.plotrange) + 1

Definition at line 60 of file plotBeamSpotVxVal.py.

◆ plotSV

plotBeamSpotVxVal.plotSV = TH1D("p(s)SV","Pull vs # Tracks",plotrange*2,-.25,plotrange-.25)

Definition at line 62 of file plotBeamSpotVxVal.py.

◆ plotX

plotBeamSpotVxVal.plotX = TH1D("p(s)X","k vs Lumi Block",lumibins,lumiedge)

Definition at line 144 of file plotBeamSpotVxVal.py.

◆ range

plotBeamSpotVxVal.range = k.split("to")

Definition at line 195 of file plotBeamSpotVxVal.py.

◆ splitBin

plotBeamSpotVxVal.splitBin = int(.5*(sptree.tracks_odd + sptree.tracks_even) )

Definition at line 156 of file plotBeamSpotVxVal.py.

◆ splitfile

plotBeamSpotVxVal.splitfile = TFile(args[1])

Definition at line 48 of file plotBeamSpotVxVal.py.

◆ splitWeight

list plotBeamSpotVxVal.splitWeight = []

Definition at line 109 of file plotBeamSpotVxVal.py.

◆ sptree

plotBeamSpotVxVal.sptree = gDirectory.Get("splitVertex")

Definition at line 152 of file plotBeamSpotVxVal.py.

◆ subplots

dictionary plotBeamSpotVxVal.subplots = {}

Definition at line 105 of file plotBeamSpotVxVal.py.

◆ subplotSVs

dictionary plotBeamSpotVxVal.subplotSVs = {}

Definition at line 56 of file plotBeamSpotVxVal.py.

◆ sumw

int plotBeamSpotVxVal.sumw = 0

Definition at line 236 of file plotBeamSpotVxVal.py.

◆ sumwx

int plotBeamSpotVxVal.sumwx = 0

Definition at line 237 of file plotBeamSpotVxVal.py.

◆ tree

plotBeamSpotVxVal.tree = gDirectory.Get("splitVertex")

Definition at line 69 of file plotBeamSpotVxVal.py.

◆ vsavg

int plotBeamSpotVxVal.vsavg = sumwx/sumw

Definition at line 254 of file plotBeamSpotVxVal.py.

◆ vserr

float plotBeamSpotVxVal.vserr = 1.0/sumw

Definition at line 255 of file plotBeamSpotVxVal.py.

◆ vxtree

plotBeamSpotVxVal.vxtree = gDirectory.Get('Vertices')

Definition at line 162 of file plotBeamSpotVxVal.py.