ATLAS Offline Software
Functions | Variables
LArG4AODNtuplePlotter Namespace Reference

Functions

def eventext (event, hname)
 
def varname (hname)
 

Variables

string __version__ = '$Revision: 505706 $'
 
string __author__ = 'Radist Morse radist.morse@gmail.com'
 
string __doc__ = 'Script for drawing LArG4Validation N tuples'
 
string usage = "usage: %prog [options] root1 [root2 ...]"
 
 parser = OptionParser(usage=usage, version="%prog v1.0 $Id: LArG4AODNtuplePlotter.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 = []
 
list listvars = ["hadrleak","e237oe277","weta2","f1","e2tsts1","e2tsts1demins","wtots1","fracs1","weta1"]
 
dictionary capvars = {}
 
list listmax = [0.02,1.0,0.015,0.7,3.0,1500.0,4.0,0.6,0.8]
 
list listmin = [-0.007,0.84,0.005,0.0,0.0,0.0,1.0,0.0,0.4]
 
list listlogy = [0,0,0,0,1,1,0,0,0]
 
 pe = PlotEntry()
 
 display_name
 
 givenmin
 
 givenmax
 
 logy
 
 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()

def LArG4AODNtuplePlotter.eventext (   event,
  hname 
)

Definition at line 12 of file LArG4AODNtuplePlotter.py.

12 def eventext(event,hname) :
13  if (hname == "hadrleak") :
14  return event.ethad1/event.et
15  elif (hname == "e237oe277") :
16  if (event.e277 > 0) :
17  return event.e237/event.e277
18  else :
19  return 0
20  elif (hname == "e2tsts1") :
21  return event.e2tsts1/(1000. + 0.009 * event.et)
22  elif (hname == "e2tsts1demins") :
23  return event.e2tsts1 - event.emins1
24  elif (hname == "erec") :
25  return event.energy
26  elif (hname == "erecegen") :
27  return event.energy / event.truth_energy
28  elif (hname == "eta") :
29  return event.eta
30  elif (hname == "pt") :
31  return event.pt
32  elif (hname == "egen") :
33  return event.truth_energy
34  else :
35  return "False"
36 

◆ varname()

def LArG4AODNtuplePlotter.varname (   hname)

Definition at line 37 of file LArG4AODNtuplePlotter.py.

37 def varname(hname) :
38  if (hname == "hadrleak") :
39  return "Hadron Leak"
40  elif (hname == "e237oe277") :
41  return "#frac{E_{237}}{E_{277}}"
42  elif (hname == "e2tsts1") :
43  return "E_{2}tsts_{1}"
44  elif (hname == "e2tsts1demins") :
45  return "e2tsts1demins"
46  elif (hname == "erec") :
47  return "E_{rec}"
48  elif (hname == "erecegen") :
49  return "#frac{E_{rec}}{E_{gen}}"
50  elif (hname == "eta") :
51  return "#eta"
52  elif (hname == "pt") :
53  return "P_{t}"
54  elif (hname == "egen") :
55  return "E_{gen}"
56  else :
57  return ""
58 

Variable Documentation

◆ __author__

string LArG4AODNtuplePlotter.__author__ = 'Radist Morse radist.morse@gmail.com'
private

Definition at line 8 of file LArG4AODNtuplePlotter.py.

◆ __doc__

string LArG4AODNtuplePlotter.__doc__ = 'Script for drawing LArG4Validation N tuples'
private

Definition at line 9 of file LArG4AODNtuplePlotter.py.

◆ __version__

string LArG4AODNtuplePlotter.__version__ = '$Revision: 505706 $'
private

Definition at line 7 of file LArG4AODNtuplePlotter.py.

◆ action

LArG4AODNtuplePlotter.action

Definition at line 71 of file LArG4AODNtuplePlotter.py.

◆ args

LArG4AODNtuplePlotter.args

Definition at line 77 of file LArG4AODNtuplePlotter.py.

◆ canv

LArG4AODNtuplePlotter.canv

Definition at line 170 of file LArG4AODNtuplePlotter.py.

◆ capvars

dictionary LArG4AODNtuplePlotter.capvars = {}

Definition at line 109 of file LArG4AODNtuplePlotter.py.

◆ dest

LArG4AODNtuplePlotter.dest

Definition at line 67 of file LArG4AODNtuplePlotter.py.

◆ display_name

LArG4AODNtuplePlotter.display_name

Definition at line 119 of file LArG4AODNtuplePlotter.py.

◆ divide

LArG4AODNtuplePlotter.divide

Definition at line 75 of file LArG4AODNtuplePlotter.py.

◆ False

LArG4AODNtuplePlotter.False

Definition at line 75 of file LArG4AODNtuplePlotter.py.

◆ files

LArG4AODNtuplePlotter.files

Definition at line 75 of file LArG4AODNtuplePlotter.py.

◆ givenmax

LArG4AODNtuplePlotter.givenmax

Definition at line 121 of file LArG4AODNtuplePlotter.py.

◆ givenmin

LArG4AODNtuplePlotter.givenmin

Definition at line 120 of file LArG4AODNtuplePlotter.py.

◆ help

LArG4AODNtuplePlotter.help

Definition at line 67 of file LArG4AODNtuplePlotter.py.

◆ leg

LArG4AODNtuplePlotter.leg

Definition at line 170 of file LArG4AODNtuplePlotter.py.

◆ listlogy

list LArG4AODNtuplePlotter.listlogy = [0,0,0,0,1,1,0,0,0]

Definition at line 114 of file LArG4AODNtuplePlotter.py.

◆ listmax

list LArG4AODNtuplePlotter.listmax = [0.02,1.0,0.015,0.7,3.0,1500.0,4.0,0.6,0.8]

Definition at line 112 of file LArG4AODNtuplePlotter.py.

◆ listmin

list LArG4AODNtuplePlotter.listmin = [-0.007,0.84,0.005,0.0,0.0,0.0,1.0,0.0,0.4]

Definition at line 113 of file LArG4AODNtuplePlotter.py.

◆ listvars

list LArG4AODNtuplePlotter.listvars = ["hadrleak","e237oe277","weta2","f1","e2tsts1","e2tsts1demins","wtots1","fracs1","weta1"]

Definition at line 108 of file LArG4AODNtuplePlotter.py.

◆ logy

LArG4AODNtuplePlotter.logy

Definition at line 122 of file LArG4AODNtuplePlotter.py.

◆ maxperlist

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

Definition at line 128 of file LArG4AODNtuplePlotter.py.

◆ numplots

LArG4AODNtuplePlotter.numplots = len(parsedPlots)

Definition at line 131 of file LArG4AODNtuplePlotter.py.

◆ options

LArG4AODNtuplePlotter.options

Definition at line 77 of file LArG4AODNtuplePlotter.py.

◆ outputfile

LArG4AODNtuplePlotter.outputfile

Definition at line 75 of file LArG4AODNtuplePlotter.py.

◆ parsedPlots

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

Definition at line 103 of file LArG4AODNtuplePlotter.py.

◆ parsedRestricts

list LArG4AODNtuplePlotter.parsedRestricts = []

Definition at line 107 of file LArG4AODNtuplePlotter.py.

◆ parsedRoots

LArG4AODNtuplePlotter.parsedRoots = parseRoots(options.files)

Definition at line 96 of file LArG4AODNtuplePlotter.py.

◆ parser

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

Definition at line 65 of file LArG4AODNtuplePlotter.py.

◆ pe

LArG4AODNtuplePlotter.pe = PlotEntry()

Definition at line 116 of file LArG4AODNtuplePlotter.py.

◆ plots

LArG4AODNtuplePlotter.plots = createPlots(parsedPlots,parsedRoots)

Definition at line 75 of file LArG4AODNtuplePlotter.py.

◆ root

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

Definition at line 144 of file LArG4AODNtuplePlotter.py.

◆ rootfile

LArG4AODNtuplePlotter.rootfile

Definition at line 148 of file LArG4AODNtuplePlotter.py.

◆ rootopt1

LArG4AODNtuplePlotter.rootopt1 = parsedRoots.pop(0)

Definition at line 160 of file LArG4AODNtuplePlotter.py.

◆ split_canv

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

Definition at line 79 of file LArG4AODNtuplePlotter.py.

◆ split_canvas

LArG4AODNtuplePlotter.split_canvas

Definition at line 75 of file LArG4AODNtuplePlotter.py.

◆ tree

LArG4AODNtuplePlotter.tree

Definition at line 149 of file LArG4AODNtuplePlotter.py.

◆ usage

string LArG4AODNtuplePlotter.usage = "usage: %prog [options] root1 [root2 ...]"

Definition at line 63 of file LArG4AODNtuplePlotter.py.

◆ zero

LArG4AODNtuplePlotter.zero

Definition at line 75 of file LArG4AODNtuplePlotter.py.

LArG4AODNtuplePlotter.eventext
def eventext(event, hname)
Definition: LArG4AODNtuplePlotter.py:12
LArG4AODNtuplePlotter.varname
def varname(hname)
Definition: LArG4AODNtuplePlotter.py:37