CMS 3D CMS Logo

 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros 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 11 of file MetAnalyzer.py.

Member Function Documentation

def MetAnalyzer.MetAnalyzer.beginLoop (   self,
  setup 
)

Definition at line 25 of file MetAnalyzer.py.

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

Definition at line 17 of file MetAnalyzer.py.

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

17 
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 
def MetAnalyzer.MetAnalyzer.process (   self,
  iEvent,
  event 
)

Definition at line 29 of file MetAnalyzer.py.

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

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_VALIDATION(), ConfigBuilder.ConfigBuilder.renameHLTprocessInSequence(), ConfigBuilder.ConfigBuilder.renameInputTagsInSequence(), and ConfigBuilder.ConfigBuilder.scheduleSequence().

29 
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