CMS 3D CMS Logo

Public Member Functions | Protected Attributes

MatchMETBenchmarkAnalyzer Class Reference

#include <MatchMETBenchmarkAnalyzer.h>

Inheritance diagram for MatchMETBenchmarkAnalyzer:
BenchmarkAnalyzer MatchMETBenchmark edm::EDAnalyzer Benchmark edm::EDConsumerBase

List of all members.

Public Member Functions

void analyze (const edm::Event &, const edm::EventSetup &)
void beginJob ()
void endJob ()
 MatchMETBenchmarkAnalyzer (const edm::ParameterSet &parameterSet)

Protected Attributes

edm::InputTag matchedinputLabel_

Detailed Description

Definition at line 9 of file MatchMETBenchmarkAnalyzer.h.


Constructor & Destructor Documentation

MatchMETBenchmarkAnalyzer::MatchMETBenchmarkAnalyzer ( const edm::ParameterSet parameterSet)

Definition at line 15 of file MatchMETBenchmarkAnalyzer.cc.

References edm::ParameterSet::getParameter(), and matchedinputLabel_.

                                                                                        : 
  BenchmarkAnalyzer(parameterSet),
  MatchMETBenchmark( (Benchmark::Mode) parameterSet.getParameter<int>("mode") )
{
  matchedinputLabel_=parameterSet.getParameter<edm::InputTag>("MatchCollection");
//  setRange( parameterSet.getParameter<double>("ptMin"),
//          parameterSet.getParameter<double>("ptMax"),
//          -0.1, 0.1, // range in eta for MET. 
//          parameterSet.getParameter<double>("phiMin"),
//          parameterSet.getParameter<double>("phiMax") );
}

Member Function Documentation

void MatchMETBenchmarkAnalyzer::analyze ( const edm::Event iEvent,
const edm::EventSetup iSetup 
) [virtual]

Implements edm::EDAnalyzer.

Definition at line 36 of file MatchMETBenchmarkAnalyzer.cc.

References runEdmFileComparison::collection, MatchMETBenchmark::fillOne(), edm::Event::getByLabel(), BenchmarkAnalyzer::inputLabel_, and matchedinputLabel_.

                                                                   {
  
  
  Handle< View<MET> > collection; 
  iEvent.getByLabel( inputLabel_, collection); 

  Handle< View<MET> > matchedcollection; 
  iEvent.getByLabel( matchedinputLabel_, matchedcollection); 

  fillOne( (*collection)[0] , (*matchedcollection)[0]);
}
void MatchMETBenchmarkAnalyzer::beginJob ( void  ) [virtual]
void MatchMETBenchmarkAnalyzer::endJob ( void  ) [virtual]

Reimplemented from edm::EDAnalyzer.

Definition at line 49 of file MatchMETBenchmarkAnalyzer.cc.

                                       {
}

Member Data Documentation

Definition at line 19 of file MatchMETBenchmarkAnalyzer.h.

Referenced by analyze(), and MatchMETBenchmarkAnalyzer().