test
CMS 3D CMS Logo

 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros 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 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 
7  def beginLoop(self, setup):
8  super(ZJetsTreeAnalyzer, self).beginLoop(setup)
9  ntuple.bookJet('jet1')
10  ntuple.bookJet('jet2')
11  ntuple.bookZ('dimuon')
12 
def bookJet
Definition: ntuple.py:98
def SimpleTreeAnalyzer.ZJetsTreeAnalyzer.process (   self,
  event 
)

Definition at line 13 of file SimpleTreeAnalyzer.py.

References ntuple.fillJet().

Referenced by ConfigBuilder.ConfigBuilder.addExtraStream(), ConfigBuilder.ConfigBuilder.completeInputCommand(), ConfigBuilder.ConfigBuilder.doNotInlineEventContent(), ConfigBuilder.ConfigBuilder.PrintAllModules.leave(), ConfigBuilder.ConfigBuilder.prepare_HLT(), ConfigBuilder.ConfigBuilder.prepare_LHE(), ConfigBuilder.ConfigBuilder.prepare_PATFILTER(), ConfigBuilder.ConfigBuilder.prepare_VALIDATION(), ConfigBuilder.ConfigBuilder.renameHLTprocessInSequence(), ConfigBuilder.ConfigBuilder.renameInputTagsInSequence(), and ConfigBuilder.ConfigBuilder.scheduleSequence().

13 
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 
def fillJet
Definition: ntuple.py:104