CMS 3D CMS Logo

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

Public Member Functions

def declareHandles (self)
 
def process (self, event)
 

Detailed Description

Just a simple jet analyzer, to be used in tutorials.

Definition at line 6 of file SimpleMuonAnalyzer.py.

Member Function Documentation

def SimpleMuonAnalyzer.SimpleMuonAnalyzer.declareHandles (   self)

Definition at line 9 of file SimpleMuonAnalyzer.py.

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

9  def declareHandles(self):
10  super(SimpleMuonAnalyzer, self).declareHandles()
11  self.handles['muons'] = AutoHandle( 'slimmedMuons',
12  'std::vector<pat::Muon>' )
def SimpleMuonAnalyzer.SimpleMuonAnalyzer.process (   self,
  event 
)

Definition at line 13 of file SimpleMuonAnalyzer.py.

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

13  def process(self, event):
14  super(SimpleMuonAnalyzer, self).readCollections(event.input)
15  event.muons = map(Muon, self.handles['muons'].product())
16