Public Member Functions | |
def | __init__ (self, name, title, defaultFloatType="D", defaultIntType="I") |
def | branch_ (self, selfmap, varName, type, len, postfix="", storageType="default", title=None) |
def | copyStructure (self, tree) |
def | fill (self, varName, value) |
def | reset (self) |
def | setDefaultFloatType (self, defaultFloatType) |
def | setDefaultIntType (self, defaultIntType) |
def | var (self, varName, type=float, default=-99, title=None, storageType="default", filler=None) |
def | vector (self, varName, lenvar, maxlen=None, type=float, default=-99, title=None, storageType="default", filler=None) |
def | vfill (self, varName, values) |
Public Attributes | |
defaultFloatType | |
defaultIntType | |
defaults | |
fillers | |
tree | |
vars | |
vecdefaults | |
vecvars | |
def tree.Tree.__init__ | ( | self, | |
name, | |||
title, | |||
defaultFloatType = "D" , |
|||
defaultIntType = "I" |
|||
) |
def tree.Tree.branch_ | ( | self, | |
selfmap, | |||
varName, | |||
type, | |||
len, | |||
postfix = "" , |
|||
storageType = "default" , |
|||
title = None |
|||
) |
Backend function used to create scalar and vector branches. Users should call "var" and "vector", not this function directly.
Definition at line 32 of file tree.py.
References tree.Tree.defaultFloatType, and tree.Tree.defaultIntType.
Referenced by tree.Tree.var(), and tree.Tree.vector().
def tree.Tree.copyStructure | ( | self, | |
tree | |||
) |
Definition at line 23 of file tree.py.
References CentralityTable::BinValues.var, PhysicsTools::SourceVariableSet::PosVar.var, TaggingVariablePlotter::VariableConfig.var, tree.Tree.var(), reco::parser::Grammar::definition< ScannerT >.var, and PhysicsTools::MVAComputer::InputVar.var.
def tree.Tree.fill | ( | self, | |
varName, | |||
value | |||
) |
Definition at line 116 of file tree.py.
References tree.Tree.fillers, tree.Tree.vars, PlotAlignmentValidation::DMRPlotInfo.vars, and JsonOutputProducer.vars.
def tree.Tree.reset | ( | self | ) |
Definition at line 103 of file tree.py.
References tree.Tree.defaults, geometryComparison.GeometryComparison.defaults, svgfig.Path.defaults, svgfig.Curve.defaults, svgfig.Poly.defaults, svgfig.Text.defaults, svgfig.TextGlobal.defaults, svgfig.Dots.defaults, svgfig.Line.defaults, svgfig.LineGlobal.defaults, svgfig.VLine.defaults, svgfig.HLine.defaults, svgfig.Rect.defaults, svgfig.Ellipse.defaults, svgfig.Ticks.defaults, svgfig.CurveAxis.defaults, svgfig.LineAxis.defaults, svgfig.XAxis.defaults, svgfig.YAxis.defaults, svgfig.Axes.defaults, svgfig.HGrid.defaults, svgfig.VGrid.defaults, svgfig.Grid.defaults, svgfig.XErrorBars.defaults, svgfig.YErrorBars.defaults, tree.Tree.fillers, and tree.Tree.vecdefaults.
def tree.Tree.setDefaultFloatType | ( | self, | |
defaultFloatType | |||
) |
def tree.Tree.setDefaultIntType | ( | self, | |
defaultIntType | |||
) |
def tree.Tree.var | ( | self, | |
varName, | |||
type = float , |
|||
default = -99 , |
|||
title = None , |
|||
storageType = "default" , |
|||
filler = None |
|||
) |
Definition at line 66 of file tree.py.
References tree.Tree.branch_(), fwlite::RecordWriter::DataBuffer.branch_, edm::TypeInBranchType.branch_, fwlite::internal::Data.branch_, BareRootProductGetter::Buffer.branch_, tree.Tree.defaults, geometryComparison.GeometryComparison.defaults, svgfig.Path.defaults, svgfig.Curve.defaults, svgfig.Poly.defaults, svgfig.Text.defaults, svgfig.TextGlobal.defaults, svgfig.Dots.defaults, svgfig.Line.defaults, svgfig.LineGlobal.defaults, svgfig.VLine.defaults, svgfig.HLine.defaults, svgfig.Rect.defaults, svgfig.Ellipse.defaults, svgfig.Ticks.defaults, svgfig.CurveAxis.defaults, svgfig.LineAxis.defaults, svgfig.XAxis.defaults, svgfig.YAxis.defaults, svgfig.Axes.defaults, svgfig.HGrid.defaults, svgfig.VGrid.defaults, svgfig.Grid.defaults, svgfig.XErrorBars.defaults, svgfig.YErrorBars.defaults, tree.Tree.fillers, tree.Tree.vars, PlotAlignmentValidation::DMRPlotInfo.vars, and JsonOutputProducer.vars.
Referenced by tree.Tree.copyStructure().
def tree.Tree.vector | ( | self, | |
varName, | |||
lenvar, | |||
maxlen = None , |
|||
type = float , |
|||
default = -99 , |
|||
title = None , |
|||
storageType = "default" , |
|||
filler = None |
|||
) |
either lenvar is a string, and maxlen an int (variable size array), or lenvar is an int and maxlen is not specified (fixed array)
Definition at line 84 of file tree.py.
References tree.Tree.branch_(), fwlite::RecordWriter::DataBuffer.branch_, edm::TypeInBranchType.branch_, fwlite::internal::Data.branch_, BareRootProductGetter::Buffer.branch_, tree.Tree.fillers, tree.Tree.vecdefaults, and tree.Tree.vecvars.
def tree.Tree.vfill | ( | self, | |
varName, | |||
values | |||
) |
tree.Tree.defaultFloatType |
Definition at line 13 of file tree.py.
Referenced by tree.Tree.branch_(), and tree.Tree.setDefaultFloatType().
tree.Tree.defaultIntType |
Definition at line 14 of file tree.py.
Referenced by tree.Tree.branch_(), and tree.Tree.setDefaultIntType().
tree.Tree.defaults |
Definition at line 11 of file tree.py.
Referenced by tree.Tree.reset(), and tree.Tree.var().
tree.Tree.fillers |
Definition at line 15 of file tree.py.
Referenced by tree.Tree.fill(), tree.Tree.reset(), tree.Tree.var(), tree.Tree.vector(), and tree.Tree.vfill().
tree.Tree.tree |
Definition at line 10 of file tree.py.
Referenced by svgfig.SVG.__str__(), ZJetsTreeAnalyzer.ZJetsTreeAnalyzer.beginLoop(), MetTreeProducer.MetTreeProducer.declareVariables(), core.AutoFillTreeProducer.AutoFillTreeProducer.declareVariables(), core.AutoFillTreeProducer.AutoFillTreeProducer.fillTree(), ZJetsTreeAnalyzer.ZJetsTreeAnalyzer.process(), MetTreeProducer.MetTreeProducer.process(), and python.cmstools.EventTree.SetAlias().
tree.Tree.vars |
Definition at line 8 of file tree.py.
Referenced by tree.Tree.fill(), and tree.Tree.var().
tree.Tree.vecdefaults |
Definition at line 12 of file tree.py.
Referenced by tree.Tree.reset(), and tree.Tree.vector().
tree.Tree.vecvars |
Definition at line 9 of file tree.py.
Referenced by tree.Tree.vector(), and tree.Tree.vfill().