CMS 3D CMS Logo

List of all members | Public Member Functions
MetTreeProducer.MetTreeProducer Class Reference
Inheritance diagram for MetTreeProducer.MetTreeProducer:

Public Member Functions

def declareVariables (self)
 
def process (self, iEvent, event)
 

Detailed Description

Definition at line 10 of file MetTreeProducer.py.

Member Function Documentation

◆ declareVariables()

def MetTreeProducer.MetTreeProducer.declareVariables (   self)

◆ process()

def MetTreeProducer.MetTreeProducer.process (   self,
  iEvent,
  event 
)

Definition at line 21 of file MetTreeProducer.py.

References MetTreeProducer.fill(), tree.Tree.tree, HIPMonitorVariables.tree, SimpleTreeProducer.SimpleTreeProducer.tree, eventstfile.Events.tree, RootChamberWriter.tree(), CSCTFAnalyzer.tree, CSCTFanalyzer.tree, core.TreeAnalyzerNumpy.TreeAnalyzerNumpy.tree, AlignmentIORootBase.tree, EcalPerEvtMatacqAnalyzer.tree, HcalIsoTrackAnalyzer.tree, HIPTwoBodyDecayAnalyzer.tree, edm::DuplicateTreeSentry.tree(), CheckSecondary.tree, FWFileEntry.tree(), KVFTest.tree, TkOfflineVariables.tree, SiStripHitEfficiencyHarvester.tree, edm::RootOutputTree.tree(), EcalMatacqAnalyzer.tree, BPHHistoSpecificDecay.tree, ParticleNetFeatureEvaluator.tree, PhysicsTools::TreeReader.tree, output.OutputTree.tree(), KinematicVertex.tree, IsoTrackCalibration.tree, python.cmstools.EventTree.tree(), edm::FileBlock.tree(), IsoTrackCalib.tree, KinematicParticle.tree, edm::root::TFWLiteSelectorMembers.tree(), edm::RootTree.tree(), TkAlMap.TkAlMap.tree, HcalIsoTrkSimAnalyzer.tree, HcalIsoTrkAnalyzer.tree, svgfig.SVG.tree(), and ntupleDataFormat.TrackingNtuple.tree().

21  def process(self, iEvent, event):
22 
23  tr = self.tree
24  tr.reset()
25  fill( tr, 'u1', event.u1)
26  fill( tr, 'u2', event.u2)
27  fill( tr, 'met', event.met.pt())
28  fill( tr, 'sumet', event.met.sumEt())
29  fill( tr, 'zpt', event.diLepton.pt())
30  fill( tr, 'zeta', event.diLepton.eta())
31  fill( tr, 'weight', event.vertexWeight)
32  self.tree.tree.Fill()
33 
34 
def fill(tree, varName, value)