CMS 3D CMS Logo

List of all members | Public Member Functions
MetAnalyzer.MetAnalyzer Class Reference
Inheritance diagram for MetAnalyzer.MetAnalyzer:

Public Member Functions

def beginLoop (self, setup)
 
def declareHandles (self)
 
def process (self, iEvent, event)
 

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  def beginLoop(self, setup):
27  super(MetAnalyzer,self).beginLoop(setup)
28 
29 
def beginLoop(self, setup)
Definition: MetAnalyzer.py:26
def MetAnalyzer.MetAnalyzer.declareHandles (   self)

Definition at line 18 of file MetAnalyzer.py.

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

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

Definition at line 30 of file MetAnalyzer.py.

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

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