CMS 3D CMS Logo

List of all members | Public Member Functions | Public Attributes
python.rootplot.tree2hists.Plot Class Reference

Public Member Functions

def __init__ (self, treeVariable, histogram, cuts="", storeErrors=True)
 

Public Attributes

 cuts
 
 histogram
 
 name
 
 treeVariable
 

Detailed Description

Wrapper for TH1 objects, associating TTree variables with a histogram

Definition at line 74 of file tree2hists.py.

Constructor & Destructor Documentation

def python.rootplot.tree2hists.Plot.__init__ (   self,
  treeVariable,
  histogram,
  cuts = "",
  storeErrors = True 
)

Definition at line 76 of file tree2hists.py.

76  def __init__(self, treeVariable, histogram, cuts="", storeErrors=True):
77  self.treeVariable = treeVariable
78  self.histogram = histogram
79  self.name = histogram.GetName()
80  self.cuts = cuts
81  if storeErrors: self.histogram.Sumw2()
82 
def __init__(self, treeVariable, histogram, cuts="", storeErrors=True)
Definition: tree2hists.py:76

Member Data Documentation

python.rootplot.tree2hists.Plot.cuts
python.rootplot.tree2hists.Plot.histogram

Definition at line 78 of file tree2hists.py.

python.rootplot.tree2hists.Plot.name
python.rootplot.tree2hists.Plot.treeVariable

Definition at line 77 of file tree2hists.py.