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 5 of file SimpleTreeAnalyzer.py.

Member Function Documentation

def SimpleTreeAnalyzer.ZJetsTreeAnalyzer.beginLoop (   self,
  setup 
)

Definition at line 7 of file SimpleTreeAnalyzer.py.

References ntuple.bookJet().

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

Definition at line 14 of file SimpleTreeAnalyzer.py.

References ntuple.fillJet().

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