CMS 3D CMS Logo

 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros Groups Pages
List of all members | Public Member Functions
SimpleTreeAnalyzer.ZJetsTreeAnalyzer Class Reference
Inheritance diagram for SimpleTreeAnalyzer.ZJetsTreeAnalyzer:

Public Member Functions

def beginLoop
 
def process
 

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 
8  def beginLoop(self, setup):
9  super(ZJetsTreeAnalyzer, self).beginLoop(setup)
10  ntuple.bookJet('jet1')
11  ntuple.bookJet('jet2')
12  ntuple.bookZ('dimuon')
13 
def bookJet
Definition: ntuple.py:99
def SimpleTreeAnalyzer.ZJetsTreeAnalyzer.process (   self,
  event 
)

Definition at line 14 of file SimpleTreeAnalyzer.py.

References ntuple.fillJet().

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