CMS 3D CMS Logo

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

Public Member Functions

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

Detailed Description

Definition at line 4 of file SimpleTreeAnalyzer.py.

Member Function Documentation

def SimpleTreeAnalyzer.ZJetsTreeAnalyzer.beginLoop (   self,
  setup 
)

Definition at line 6 of file SimpleTreeAnalyzer.py.

References ntuple.bookJet().

6  def beginLoop(self, setup):
7  super(ZJetsTreeAnalyzer, self).beginLoop(setup)
8  ntuple.bookJet('jet1')
9  ntuple.bookJet('jet2')
10  ntuple.bookZ('dimuon')
11 
12 
def bookJet(tree, pName)
Definition: ntuple.py:100
def SimpleTreeAnalyzer.ZJetsTreeAnalyzer.process (   self,
  event 
)

Definition at line 13 of file SimpleTreeAnalyzer.py.

References ntuple.fillJet().

13  def process(self, event):
14  if len(event.jets)>0:
15  ntuple.fillJet('jet1', event.jets[0])
16  if len(event.jets)>1:
17  ntuple.fillJet('jet2', event.jets[1])
18  if len(event.dimuons>1):
19  ntuple.fillZ('dimuon', event.dimuons[0])
20  ntuple.tree.tree.Fill()
21 
22 
23 
def fillJet(tree, pName, jet)
Definition: ntuple.py:106