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

◆ beginLoop()

def SimpleTreeAnalyzer.ZJetsTreeAnalyzer.beginLoop (   self,
  setup 
)

Definition at line 7 of file SimpleTreeAnalyzer.py.

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 

References ntuple.bookJet().

◆ process()

def SimpleTreeAnalyzer.ZJetsTreeAnalyzer.process (   self,
  event 
)

Definition at line 14 of file SimpleTreeAnalyzer.py.

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 

References ntuple.fillJet().

ntuple.fillJet
def fillJet(tree, pName, jet)
Definition: ntuple.py:105
ntuple.bookJet
def bookJet(tree, pName)
Definition: ntuple.py:99
LaserDQM_cfg.process
process
Definition: LaserDQM_cfg.py:3