Public Member Functions | |
def | __init__ |
def | beginLoop |
def | declareCoreVariables |
def | declareHandles |
def | declareVariables |
cross section More... | |
def | fillCoreVariables |
def | fillTree |
def | getPythonWrapper |
def | process |
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 8 of file AutoFillTreeProducer.py.
def core.AutoFillTreeProducer.AutoFillTreeProducer.__init__ | ( | self, | |
cfg_ana, | |||
cfg_comp, | |||
looperName | |||
) |
Definition at line 13 of file AutoFillTreeProducer.py.
def core.AutoFillTreeProducer.AutoFillTreeProducer.beginLoop | ( | self, | |
setup | |||
) |
Definition at line 34 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 45 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 37 of file AutoFillTreeProducer.py.
References core.AutoHandle.AutoHandle.handles, 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 83 of file AutoFillTreeProducer.py.
References analyzer.Analyzer.cfg_ana, core.AutoFillTreeProducer.AutoFillTreeProducer.declareCoreVariables(), core.AutoFillTreeProducer.AutoFillTreeProducer.globalVariables, core.AutoFillTreeProducer.AutoFillTreeProducer.scalar, DQMNet::Object.scalar, tree.Tree.tree, SimpleTreeProducer.SimpleTreeProducer.tree, eventstfile.Events.tree, CSCTFanalyzer.tree, RootChamberWriter.tree(), CSCTFAnalyzer.tree, core.TreeAnalyzerNumpy.TreeAnalyzerNumpy.tree, HcalTestHistoManager.tree, TreeWriterForEcalCorrection.tree, TkOfflineVariables.tree, AlignmentIORootBase.tree, edm::DuplicateTreeSentry.tree(), IsolatedParticlesGeneratedJets.tree, KVFTest.tree, EcalPerEvtMatacqAnalyzer.tree, CheckSecondary.tree, ShallowTree.tree, FWFileEntry.tree(), EcalDeadChannelRecoveryNN< DetIdT >::MultiLayerPerceptronContext.tree, edm::RootOutputTree.tree(), TreeSaver.tree, EcalMatacqAnalyzer.tree, PhysicsTools::TreeReader.tree, edm::FileBlock.tree(), HcalIsoTrkAnalyzer.tree, python.cmstools.EventTree.tree(), KinematicVertex.tree, IsoTrackCalibration.tree, IsoTrackCalib.tree, KinematicParticle.tree, edm::RootTree.tree(), IsolatedGenParticles.tree, IsolatedTracksHcalScale.tree, IsolatedTracksNxN.tree, and svgfig.SVG.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 108 of file AutoFillTreeProducer.py.
References analyzer.Analyzer.cfg_comp, looper.Looper.cfg_comp, core.Analyzer.Analyzer.mchandles, DTTTrigCorrFirst.run, core.AutoFillTreeProducer.AutoFillTreeProducer.scalar, and DQMNet::Object.scalar.
Referenced by core.AutoFillTreeProducer.AutoFillTreeProducer.fillTree().
Definition at line 152 of file AutoFillTreeProducer.py.
References core.AutoFillTreeProducer.AutoFillTreeProducer.fillCoreVariables(), core.AutoFillTreeProducer.AutoFillTreeProducer.globalVariables, core.AutoHandle.AutoHandle.handles, core.Analyzer.Analyzer.handles, HTTP.RequestManager.handles, core.AutoFillTreeProducer.AutoFillTreeProducer.scalar, DQMNet::Object.scalar, tree.Tree.tree, SimpleTreeProducer.SimpleTreeProducer.tree, eventstfile.Events.tree, CSCTFanalyzer.tree, RootChamberWriter.tree(), CSCTFAnalyzer.tree, core.TreeAnalyzerNumpy.TreeAnalyzerNumpy.tree, HcalTestHistoManager.tree, TreeWriterForEcalCorrection.tree, TkOfflineVariables.tree, AlignmentIORootBase.tree, edm::DuplicateTreeSentry.tree(), IsolatedParticlesGeneratedJets.tree, KVFTest.tree, EcalPerEvtMatacqAnalyzer.tree, CheckSecondary.tree, ShallowTree.tree, FWFileEntry.tree(), EcalDeadChannelRecoveryNN< DetIdT >::MultiLayerPerceptronContext.tree, edm::RootOutputTree.tree(), TreeSaver.tree, EcalMatacqAnalyzer.tree, PhysicsTools::TreeReader.tree, edm::FileBlock.tree(), HcalIsoTrkAnalyzer.tree, python.cmstools.EventTree.tree(), KinematicVertex.tree, IsoTrackCalibration.tree, IsoTrackCalib.tree, KinematicParticle.tree, edm::RootTree.tree(), IsolatedGenParticles.tree, IsolatedTracksHcalScale.tree, IsolatedTracksNxN.tree, and svgfig.SVG.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 180 of file AutoFillTreeProducer.py.
def core.AutoFillTreeProducer.AutoFillTreeProducer.process | ( | self, | |
event | |||
) |
Definition at line 145 of file AutoFillTreeProducer.py.
References analyzer.Analyzer.cfg_ana, MuonGeometryArrange.fillTree(), edm::RootOutputTree.fillTree(), TrackerGeometryCompare.fillTree(), TrackerOfflineValidationSummary.fillTree(), core.AutoFillTreeProducer.AutoFillTreeProducer.fillTree(), TrackerOfflineValidation.fillTree(), and core.Analyzer.Analyzer.readCollections().
Referenced by ConfigBuilder.ConfigBuilder.addExtraStream(), ConfigBuilder.ConfigBuilder.completeInputCommand(), ConfigBuilder.ConfigBuilder.doNotInlineEventContent(), ConfigBuilder.ConfigBuilder.PrintAllModules.leave(), ConfigBuilder.ConfigBuilder.prepare_HLT(), ConfigBuilder.ConfigBuilder.prepare_LHE(), ConfigBuilder.ConfigBuilder.prepare_PATFILTER(), ConfigBuilder.ConfigBuilder.prepare_VALIDATION(), ConfigBuilder.ConfigBuilder.renameHLTprocessInSequence(), ConfigBuilder.ConfigBuilder.renameInputTagsInSequence(), and ConfigBuilder.ConfigBuilder.scheduleSequence().
core.AutoFillTreeProducer.AutoFillTreeProducer.collections |
Read whether we want 4-vectors.
Definition at line 24 of file AutoFillTreeProducer.py.
core.AutoFillTreeProducer.AutoFillTreeProducer.globalObjects |
Definition at line 25 of file AutoFillTreeProducer.py.
core.AutoFillTreeProducer.AutoFillTreeProducer.globalVariables |
Definition at line 26 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 17 of file AutoFillTreeProducer.py.
Referenced by core.AutoFillTreeProducer.AutoFillTreeProducer.declareCoreVariables(), core.AutoFillTreeProducer.AutoFillTreeProducer.declareVariables(), core.AutoFillTreeProducer.AutoFillTreeProducer.fillCoreVariables(), and core.AutoFillTreeProducer.AutoFillTreeProducer.fillTree().