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" |
|||
) |
Definition at line 7 of file tree.py.
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, tree.Tree.defaultIntType, tree.Tree.tree, HIPMonitorVariables.tree, SimpleTreeProducer.SimpleTreeProducer.tree, eventstfile.Events.tree, CSCTFAnalyzer.tree, CSCTFanalyzer.tree, core.TreeAnalyzerNumpy.TreeAnalyzerNumpy.tree, AlignmentIORootBase.tree, EcalPerEvtMatacqAnalyzer.tree, HIPTwoBodyDecayAnalyzer.tree, XMLEventWriter.tree, HcalIsoTrackAnalyzer.tree, TkOfflineVariables.tree, SiStripHitEfficiencyHarvester.tree, EcalMatacqAnalyzer.tree, BPHHistoSpecificDecay.tree, IsoTrackCalibration.tree, IsoTrackCalib.tree, TkAlMap.TkAlMap.tree, HcalIsoTrkSimAnalyzer.tree, and HcalIsoTrkAnalyzer.tree.
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, trigger::EgammaObject.var(), TaggingVariablePlotter::VariableConfig.var, tree.Tree.var(), reco::parser::Grammar::definition< ScannerT >.var, PhysicsTools::MVAComputer::InputVar.var, and TkAlMap.TkAlMap.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, 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, mps_monitormerge.items, tree.Tree.vars, PlotAlignmentValidation::DMRPlotInfo.vars, JsonOutputProducer.vars, tree.Tree.vecdefaults, and tree.Tree.vecvars.
def tree.Tree.setDefaultFloatType | ( | self, | |
defaultFloatType | |||
) |
Definition at line 17 of file tree.py.
References tree.Tree.defaultFloatType.
def tree.Tree.setDefaultIntType | ( | self, | |
defaultIntType | |||
) |
Definition at line 20 of file tree.py.
References tree.Tree.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_, fwlite::internal::Data.branch_, BareRootProductGetterBase::Buffer.branch_, HFShowerLibrary::BranchReader.branch_, edm::PoolOutputModule::SpecialSplitLevelForBranch.branch_, tree.Tree.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.tree, SimpleTreeProducer.SimpleTreeProducer.tree, HIPMonitorVariables.tree, eventstfile.Events.tree, CSCTFAnalyzer.tree, CSCTFanalyzer.tree, core.TreeAnalyzerNumpy.TreeAnalyzerNumpy.tree, AlignmentIORootBase.tree, EcalPerEvtMatacqAnalyzer.tree, HIPTwoBodyDecayAnalyzer.tree, XMLEventWriter.tree, HcalIsoTrackAnalyzer.tree, TkOfflineVariables.tree, SiStripHitEfficiencyHarvester.tree, EcalMatacqAnalyzer.tree, BPHHistoSpecificDecay.tree, IsoTrackCalibration.tree, IsoTrackCalib.tree, TkAlMap.TkAlMap.tree, HcalIsoTrkSimAnalyzer.tree, HcalIsoTrkAnalyzer.tree, 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_, fwlite::internal::Data.branch_, BareRootProductGetterBase::Buffer.branch_, HFShowerLibrary::BranchReader.branch_, edm::PoolOutputModule::SpecialSplitLevelForBranch.branch_, tree.Tree.fillers, tree.Tree.tree, HIPMonitorVariables.tree, SimpleTreeProducer.SimpleTreeProducer.tree, eventstfile.Events.tree, CSCTFAnalyzer.tree, CSCTFanalyzer.tree, core.TreeAnalyzerNumpy.TreeAnalyzerNumpy.tree, AlignmentIORootBase.tree, EcalPerEvtMatacqAnalyzer.tree, HIPTwoBodyDecayAnalyzer.tree, XMLEventWriter.tree, TkOfflineVariables.tree, HcalIsoTrackAnalyzer.tree, SiStripHitEfficiencyHarvester.tree, EcalMatacqAnalyzer.tree, BPHHistoSpecificDecay.tree, IsoTrackCalibration.tree, IsoTrackCalib.tree, TkAlMap.TkAlMap.tree, HcalIsoTrkSimAnalyzer.tree, HcalIsoTrkAnalyzer.tree, 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(), tree.Tree.branch_(), MetTreeProducer.MetTreeProducer.declareVariables(), core.AutoFillTreeProducer.AutoFillTreeProducer.declareVariables(), core.AutoFillTreeProducer.AutoFillTreeProducer.fillTree(), ZJetsTreeAnalyzer.ZJetsTreeAnalyzer.process(), MetTreeProducer.MetTreeProducer.process(), python.cmstools.EventTree.SetAlias(), tree.Tree.var(), and tree.Tree.vector().
tree.Tree.vars |
Definition at line 8 of file tree.py.
Referenced by tree.Tree.fill(), tree.Tree.reset(), 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.reset(), tree.Tree.vector(), and tree.Tree.vfill().