CMS 3D CMS Logo

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

Public Member Functions

def beginLoop (self, setup)
 
def process (self, event)
 

Detailed Description

Definition at line 5 of file ZJetsTreeAnalyzer.py.

Member Function Documentation

def ZJetsTreeAnalyzer.ZJetsTreeAnalyzer.beginLoop (   self,
  setup 
)

Definition at line 7 of file ZJetsTreeAnalyzer.py.

References ntuple.bookParticle(), 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, edm::RootTree.tree(), svgfig.SVG.tree(), and ntupleDataFormat.TrackingNtuple.tree().

7  def beginLoop(self, setup):
8  super(ZJetsTreeAnalyzer, self).beginLoop(setup)
9  ntuple.bookParticle(self.tree, 'jet1')
10  ntuple.bookParticle(self.tree, 'jet1_gen')
11  ntuple.bookParticle(self.tree, 'jet2')
12  ntuple.bookParticle(self.tree, 'jet2_gen')
13  ntuple.bookParticle(self.tree, 'dimuon')
14  ntuple.bookParticle(self.tree, 'dimuon_leg1')
15  ntuple.bookParticle(self.tree, 'dimuon_leg2')
16 
17 
def bookParticle(tree, pName)
Definition: ntuple.py:26
def ZJetsTreeAnalyzer.ZJetsTreeAnalyzer.process (   self,
  event 
)

Definition at line 18 of file ZJetsTreeAnalyzer.py.

References ntuple.fillParticle(), 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, edm::RootTree.tree(), svgfig.SVG.tree(), and ntupleDataFormat.TrackingNtuple.tree().

18  def process(self, event):
19  self.tree.reset()
20  if len(event.jets)>0:
21  ntuple.fillParticle(self.tree, 'jet1', event.jets[0])
22  if event.jets[0].gen:
23  ntuple.fillParticle(self.tree, 'jet1_gen', event.jets[0].gen)
24  if len(event.jets)>1:
25  ntuple.fillParticle(self.tree, 'jet2', event.jets[1])
26  if event.jets[1].gen:
27  ntuple.fillParticle(self.tree, 'jet2_gen', event.jets[1].gen)
28  if len(event.dimuons)>1:
29  ntuple.fillParticle(self.tree, 'dimuon', event.dimuons[0])
30  ntuple.fillParticle(self.tree, 'dimuon_leg1', event.dimuons[0].leg1)
31  ntuple.fillParticle(self.tree, 'dimuon_leg2', event.dimuons[0].leg2)
32  self.tree.tree.Fill()
33 
34 
35 
def fillParticle(tree, pName, particle)
Definition: ntuple.py:35