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
MetAnalyzer.MetAnalyzer Class Reference
Inheritance diagram for MetAnalyzer.MetAnalyzer:

Public Member Functions

def beginLoop
 
def declareHandles
 
def process
 

Detailed Description

Analyze MET in Z+jet events.
Need a to provide a module creating event.diLepton
earlier in the sequence.

Definition at line 12 of file MetAnalyzer.py.

Member Function Documentation

def MetAnalyzer.MetAnalyzer.beginLoop (   self,
  setup 
)

Definition at line 26 of file MetAnalyzer.py.

26 
27  def beginLoop(self, setup):
28  super(MetAnalyzer,self).beginLoop(setup)
29 
def MetAnalyzer.MetAnalyzer.declareHandles (   self)

Definition at line 18 of file MetAnalyzer.py.

References core.AutoHandle.AutoHandle.handles, core.Analyzer.Analyzer.handles, and HTTP.RequestManager.handles.

18 
19  def declareHandles(self):
20  super(MetAnalyzer, self).declareHandles()
21  self.handles['met'] = AutoHandle(
22  self.cfg_ana.metCol,
23  self.cfg_ana.metType
24  )
25 
def MetAnalyzer.MetAnalyzer.process (   self,
  iEvent,
  event 
)

Definition at line 30 of file MetAnalyzer.py.

References core.AutoHandle.AutoHandle.handles, core.Analyzer.Analyzer.handles, HTTP.RequestManager.handles, and core.Analyzer.Analyzer.readCollections().

30 
31  def process(self, iEvent, event):
32  self.readCollections( iEvent )
33  event.met = self.handles['met'].product()[0]
34  met = event.met
35  # here, do pure met stuff
36 
37  if not hasattr(event, 'diLepton'):
38  return False
39 
40  diL = event.diLepton