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

Public Member Functions

def declareHandles
 
def process
 

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.AutoHandle.AutoHandle.handles, core.Analyzer.Analyzer.handles, and HTTP.RequestManager.handles.

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

Definition at line 13 of file SimpleMuonAnalyzer.py.

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

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  super(SimpleMuonAnalyzer, self).readCollections(event.input)
16  event.muons = map(Muon, self.handles['muons'].product())
17