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

Functions

 eventext (event, hname)
 varname (hname)

Variables

str __version__ = '$Revision: 505706 $'
str __author__ = 'Radist Morse radist.morse@gmail.com'
str __doc__ = 'Script for drawing LArG4Validation N tuples'
str usage = "usage: %prog [options] root1 [root2 ...]"
 parser = OptionParser(usage=usage, version="%prog v1.0 $Id: LArG4ValidationPlotter.py 505706 2012-06-15 11:48:02Z gsedov $")
 dest
 help
 action
 split_canvas
 plots = createPlots(parsedPlots,parsedRoots)
 files
 outputfile
 divide
 False
 zero
 options
 args
 split_canv = options.split_canvas.split(":")
 parsedRoots = parseRoots(options.files)
 parsedPlots = parsePlots(options.plots,varname)
list parsedRestricts = []
 pe = PlotEntry()
 vars_to_draw
 display_name
 profile
 maxperlist = split_canv[0]*split_canv[1]
 numplots = len(parsedPlots)
 root = TFile(rootopt.filename,"read")
 rootfile
 tree
 rootopt1 = parsedRoots.pop(0)
 canv
 leg

Function Documentation

◆ eventext()

LArG4ValidationPlotter.eventext ( event,
hname )

Definition at line 12 of file LArG4ValidationPlotter.py.

12def eventext(event,hname) :
13 if (hname == "erec") :
14 return event.DepositedEnergy
15 elif (hname == "egen") :
16 return event.TrackEnergy
17 elif (hname == "cpu") :
18 return event.CPU
19 elif (hname == "eta") :
20 return event.Eta
21 elif (hname == "phi") :
22 return event.Phi
23 elif (hname == "pt") :
24 return event.Pt
25 elif (hname == "FC1_DeltaR") :
26 return sqrt(event.FC1_DeltaX*event.FC1_DeltaX+event.FC1_DeltaY*event.FC1_DeltaY)
27 if (hname == "erecegen") :
28 return event.DepositedEnergy / event.TrackEnergy
29 else :
30 return "False"
31

◆ varname()

LArG4ValidationPlotter.varname ( hname)

Definition at line 32 of file LArG4ValidationPlotter.py.

32def varname(hname) :
33 if (hname == "erec") :
34 return "E_{rec}"
35 elif (hname == "egen") :
36 return "E_{gen}"
37 elif (hname == "cpu") :
38 return "CPU Time"
39 elif (hname == "eta") :
40 return "#eta"
41 elif (hname == "phi") :
42 return "#phi"
43 elif (hname == "pt") :
44 return "P_{t}"
45 elif (hname == "FC1_DeltaR") :
46 return "FC1_DeltaR"
47 elif (hname == "erecegen") :
48 return "#frac{E_{rec}}{E_{gen}}"
49 else :
50 return ""
51

Variable Documentation

◆ __author__

str LArG4ValidationPlotter.__author__ = 'Radist Morse radist.morse@gmail.com'
private

Definition at line 8 of file LArG4ValidationPlotter.py.

◆ __doc__

str LArG4ValidationPlotter.__doc__ = 'Script for drawing LArG4Validation N tuples'
private

Definition at line 9 of file LArG4ValidationPlotter.py.

◆ __version__

str LArG4ValidationPlotter.__version__ = '$Revision: 505706 $'
private

Definition at line 7 of file LArG4ValidationPlotter.py.

◆ action

LArG4ValidationPlotter.action

Definition at line 65 of file LArG4ValidationPlotter.py.

◆ args

LArG4ValidationPlotter.args

Definition at line 71 of file LArG4ValidationPlotter.py.

◆ canv

LArG4ValidationPlotter.canv

Definition at line 167 of file LArG4ValidationPlotter.py.

◆ dest

LArG4ValidationPlotter.dest

Definition at line 61 of file LArG4ValidationPlotter.py.

◆ display_name

LArG4ValidationPlotter.display_name

Definition at line 106 of file LArG4ValidationPlotter.py.

◆ divide

LArG4ValidationPlotter.divide

Definition at line 69 of file LArG4ValidationPlotter.py.

◆ False

LArG4ValidationPlotter.False

Definition at line 69 of file LArG4ValidationPlotter.py.

◆ files

LArG4ValidationPlotter.files

Definition at line 69 of file LArG4ValidationPlotter.py.

◆ help

LArG4ValidationPlotter.help

Definition at line 61 of file LArG4ValidationPlotter.py.

◆ leg

LArG4ValidationPlotter.leg

Definition at line 167 of file LArG4ValidationPlotter.py.

◆ maxperlist

LArG4ValidationPlotter.maxperlist = split_canv[0]*split_canv[1]

Definition at line 126 of file LArG4ValidationPlotter.py.

◆ numplots

LArG4ValidationPlotter.numplots = len(parsedPlots)

Definition at line 129 of file LArG4ValidationPlotter.py.

◆ options

LArG4ValidationPlotter.options

Definition at line 71 of file LArG4ValidationPlotter.py.

◆ outputfile

LArG4ValidationPlotter.outputfile

Definition at line 69 of file LArG4ValidationPlotter.py.

◆ parsedPlots

list LArG4ValidationPlotter.parsedPlots = parsePlots(options.plots,varname)

Definition at line 97 of file LArG4ValidationPlotter.py.

◆ parsedRestricts

list LArG4ValidationPlotter.parsedRestricts = []

Definition at line 101 of file LArG4ValidationPlotter.py.

◆ parsedRoots

LArG4ValidationPlotter.parsedRoots = parseRoots(options.files)

Definition at line 90 of file LArG4ValidationPlotter.py.

◆ parser

LArG4ValidationPlotter.parser = OptionParser(usage=usage, version="%prog v1.0 $Id: LArG4ValidationPlotter.py 505706 2012-06-15 11:48:02Z gsedov $")

Definition at line 59 of file LArG4ValidationPlotter.py.

◆ pe

LArG4ValidationPlotter.pe = PlotEntry()

Definition at line 103 of file LArG4ValidationPlotter.py.

◆ plots

LArG4ValidationPlotter.plots = createPlots(parsedPlots,parsedRoots)

Definition at line 69 of file LArG4ValidationPlotter.py.

◆ profile

LArG4ValidationPlotter.profile

Definition at line 113 of file LArG4ValidationPlotter.py.

◆ root

LArG4ValidationPlotter.root = TFile(rootopt.filename,"read")

Definition at line 142 of file LArG4ValidationPlotter.py.

◆ rootfile

LArG4ValidationPlotter.rootfile

Definition at line 146 of file LArG4ValidationPlotter.py.

◆ rootopt1

LArG4ValidationPlotter.rootopt1 = parsedRoots.pop(0)

Definition at line 157 of file LArG4ValidationPlotter.py.

◆ split_canv

LArG4ValidationPlotter.split_canv = options.split_canvas.split(":")

Definition at line 73 of file LArG4ValidationPlotter.py.

◆ split_canvas

LArG4ValidationPlotter.split_canvas

Definition at line 69 of file LArG4ValidationPlotter.py.

◆ tree

LArG4ValidationPlotter.tree

Definition at line 147 of file LArG4ValidationPlotter.py.

◆ usage

str LArG4ValidationPlotter.usage = "usage: %prog [options] root1 [root2 ...]"

Definition at line 57 of file LArG4ValidationPlotter.py.

◆ vars_to_draw

LArG4ValidationPlotter.vars_to_draw

Definition at line 104 of file LArG4ValidationPlotter.py.

◆ zero

LArG4ValidationPlotter.zero

Definition at line 69 of file LArG4ValidationPlotter.py.