#include <MatchMETBenchmarkAnalyzer.h>
Public Member Functions | |
void | analyze (const edm::Event &, const edm::EventSetup &) |
void | beginJob () |
void | endJob () |
MatchMETBenchmarkAnalyzer (const edm::ParameterSet ¶meterSet) | |
Protected Attributes | |
edm::InputTag | matchedinputLabel_ |
Definition at line 9 of file MatchMETBenchmarkAnalyzer.h.
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") ); }
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] |
Implements BenchmarkAnalyzer.
Definition at line 28 of file MatchMETBenchmarkAnalyzer.cc.
References MatchMETBenchmark::setup().
{ BenchmarkAnalyzer::beginJob(); setup(); }
void MatchMETBenchmarkAnalyzer::endJob | ( | void | ) | [virtual] |
Definition at line 19 of file MatchMETBenchmarkAnalyzer.h.
Referenced by analyze(), and MatchMETBenchmarkAnalyzer().