Public Member Functions | |
def | __init__ (self, cfg_ana, cfg_comp, looperName) |
def | beginLoop (self, setup) |
def | declareCoreVariables (self, tr, isMC) |
def | declareHandles (self) |
def | declareVariables (self, setup) |
cross section More... | |
def | fillCoreVariables (self, tr, event, isMC) |
def | fillTree (self, event, resetFirst=True) |
def | getPythonWrapper (self) |
def | process (self, event) |
Public Attributes | |
collections | |
Read whether we want 4-vectors. More... | |
globalObjects | |
globalVariables | |
scalar | |
Read whether we want vectors or flat trees. More... | |
Definition at line 10 of file AutoFillTreeProducer.py.
def core.AutoFillTreeProducer.AutoFillTreeProducer.__init__ | ( | self, | |
cfg_ana, | |||
cfg_comp, | |||
looperName | |||
) |
Definition at line 15 of file AutoFillTreeProducer.py.
def core.AutoFillTreeProducer.AutoFillTreeProducer.beginLoop | ( | self, | |
setup | |||
) |
Definition at line 36 of file AutoFillTreeProducer.py.
def core.AutoFillTreeProducer.AutoFillTreeProducer.declareCoreVariables | ( | self, | |
tr, | |||
isMC | |||
) |
Here we declare the variables that we always want and that are hard-coded
Definition at line 47 of file AutoFillTreeProducer.py.
References analyzer.Analyzer.cfg_ana, core.AutoFillTreeProducer.AutoFillTreeProducer.scalar, and DQMNet::Object.scalar.
Referenced by core.AutoFillTreeProducer.AutoFillTreeProducer.declareVariables().
def core.AutoFillTreeProducer.AutoFillTreeProducer.declareHandles | ( | self | ) |
Definition at line 39 of file AutoFillTreeProducer.py.
References core.AutoFillTreeProducer.AutoFillTreeProducer.collections, core.Analyzer.Analyzer.handles, HTTP.RequestManager.handles, and core.Analyzer.Analyzer.mchandles.
def core.AutoFillTreeProducer.AutoFillTreeProducer.declareVariables | ( | self, | |
setup | |||
) |
cross section
PU weights number of true interactions generator weight PDF weights
Definition at line 85 of file AutoFillTreeProducer.py.
References analyzer.Analyzer.cfg_ana, core.AutoFillTreeProducer.AutoFillTreeProducer.collections, core.AutoFillTreeProducer.AutoFillTreeProducer.declareCoreVariables(), core.AutoFillTreeProducer.AutoFillTreeProducer.globalObjects, core.AutoFillTreeProducer.AutoFillTreeProducer.globalVariables, core.AutoFillTreeProducer.AutoFillTreeProducer.scalar, DQMNet::Object.scalar, tree.Tree.tree, SimpleTreeProducer.SimpleTreeProducer.tree, eventstfile.Events.tree, HIPMonitorVariables.tree, RootChamberWriter.tree(), CSCTFanalyzer.tree, CSCTFAnalyzer.tree, core.TreeAnalyzerNumpy.TreeAnalyzerNumpy.tree, TreeWriterForEcalCorrection.tree, AlignmentIORootBase.tree, TkOfflineVariables.tree, edm::DuplicateTreeSentry.tree(), HIPTwoBodyDecayAnalyzer.tree, KVFTest.tree, EcalPerEvtMatacqAnalyzer.tree, CheckSecondary.tree, FWFileEntry.tree(), EcalDeadChannelRecoveryNN< DetIdT >::MultiLayerPerceptronContext.tree, edm::RootOutputTree.tree(), TreeSaver.tree, EcalMatacqAnalyzer.tree, PhysicsTools::TreeReader.tree, edm::FileBlock.tree(), IsoTrackCalibration.tree, python.cmstools.EventTree.tree(), KinematicVertex.tree, IsoTrackCalib.tree, KinematicParticle.tree, edm::root::TFWLiteSelectorMembers.tree(), HcalIsoTrkAnalyzer.tree, TkAlMap.TkAlMap.tree, edm::RootTree.tree(), svgfig.SVG.tree(), and ntupleDataFormat.TrackingNtuple.tree().
def core.AutoFillTreeProducer.AutoFillTreeProducer.fillCoreVariables | ( | self, | |
tr, | |||
event, | |||
isMC | |||
) |
Here we fill the variables that we always want and that are hard-coded
Definition at line 110 of file AutoFillTreeProducer.py.
References analyzer.Analyzer.cfg_comp, looper.Looper.cfg_comp, triggerObjects_cff.id, core.Analyzer.Analyzer.mchandles, writedatasetfile.run, core.AutoFillTreeProducer.AutoFillTreeProducer.scalar, and DQMNet::Object.scalar.
Referenced by core.AutoFillTreeProducer.AutoFillTreeProducer.fillTree().
Definition at line 154 of file AutoFillTreeProducer.py.
References core.AutoFillTreeProducer.AutoFillTreeProducer.collections, core.AutoFillTreeProducer.AutoFillTreeProducer.fillCoreVariables(), core.AutoFillTreeProducer.AutoFillTreeProducer.globalObjects, core.AutoFillTreeProducer.AutoFillTreeProducer.globalVariables, core.Analyzer.Analyzer.handles, HTTP.RequestManager.handles, core.AutoFillTreeProducer.AutoFillTreeProducer.scalar, DQMNet::Object.scalar, tree.Tree.tree, SimpleTreeProducer.SimpleTreeProducer.tree, eventstfile.Events.tree, HIPMonitorVariables.tree, RootChamberWriter.tree(), CSCTFanalyzer.tree, CSCTFAnalyzer.tree, core.TreeAnalyzerNumpy.TreeAnalyzerNumpy.tree, TreeWriterForEcalCorrection.tree, AlignmentIORootBase.tree, TkOfflineVariables.tree, edm::DuplicateTreeSentry.tree(), HIPTwoBodyDecayAnalyzer.tree, KVFTest.tree, EcalPerEvtMatacqAnalyzer.tree, CheckSecondary.tree, FWFileEntry.tree(), EcalDeadChannelRecoveryNN< DetIdT >::MultiLayerPerceptronContext.tree, edm::RootOutputTree.tree(), TreeSaver.tree, EcalMatacqAnalyzer.tree, PhysicsTools::TreeReader.tree, edm::FileBlock.tree(), IsoTrackCalibration.tree, KinematicVertex.tree, python.cmstools.EventTree.tree(), IsoTrackCalib.tree, KinematicParticle.tree, edm::root::TFWLiteSelectorMembers.tree(), HcalIsoTrkAnalyzer.tree, TkAlMap.TkAlMap.tree, edm::RootTree.tree(), svgfig.SVG.tree(), and ntupleDataFormat.TrackingNtuple.tree().
Referenced by core.AutoFillTreeProducer.AutoFillTreeProducer.process().
def core.AutoFillTreeProducer.AutoFillTreeProducer.getPythonWrapper | ( | self | ) |
This function produces a string that contains a Python wrapper for the event. The wrapper is automatically generated based on the collections and allows the full event contents to be accessed from subsequent Analyzers using e.g. leps = event.selLeptons #is of type selLeptons pt0 = leps[0].pt One just needs to add the EventAnalyzer to the sequence.
Definition at line 182 of file AutoFillTreeProducer.py.
def core.AutoFillTreeProducer.AutoFillTreeProducer.process | ( | self, | |
event | |||
) |
Definition at line 147 of file AutoFillTreeProducer.py.
References analyzer.Analyzer.cfg_ana, MuonGeometryArrange.fillTree(), edm::RootOutputTree.fillTree(), TrackerGeometryCompare.fillTree(), HcalIsoTrkAnalyzer.fillTree(), TrackerOfflineValidationSummary.fillTree(), core.AutoFillTreeProducer.AutoFillTreeProducer.fillTree(), TrackerOfflineValidation.fillTree(), and core.Analyzer.Analyzer.readCollections().
core.AutoFillTreeProducer.AutoFillTreeProducer.collections |
Read whether we want 4-vectors.
Definition at line 26 of file AutoFillTreeProducer.py.
Referenced by core.AutoFillTreeProducer.AutoFillTreeProducer.declareHandles(), core.AutoFillTreeProducer.AutoFillTreeProducer.declareVariables(), and core.AutoFillTreeProducer.AutoFillTreeProducer.fillTree().
core.AutoFillTreeProducer.AutoFillTreeProducer.globalObjects |
Definition at line 27 of file AutoFillTreeProducer.py.
Referenced by core.AutoFillTreeProducer.AutoFillTreeProducer.declareVariables(), and core.AutoFillTreeProducer.AutoFillTreeProducer.fillTree().
core.AutoFillTreeProducer.AutoFillTreeProducer.globalVariables |
Definition at line 28 of file AutoFillTreeProducer.py.
Referenced by core.AutoFillTreeProducer.AutoFillTreeProducer.declareVariables(), and core.AutoFillTreeProducer.AutoFillTreeProducer.fillTree().
core.AutoFillTreeProducer.AutoFillTreeProducer.scalar |
Read whether we want vectors or flat trees.
Definition at line 19 of file AutoFillTreeProducer.py.
Referenced by core.AutoFillTreeProducer.AutoFillTreeProducer.declareCoreVariables(), core.AutoFillTreeProducer.AutoFillTreeProducer.declareVariables(), core.AutoFillTreeProducer.AutoFillTreeProducer.fillCoreVariables(), and core.AutoFillTreeProducer.AutoFillTreeProducer.fillTree().