CMS 3D CMS Logo

 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros Pages
MatchMETBenchmarkAnalyzer.cc
Go to the documentation of this file.
2 
7 
10 
11 using namespace reco;
12 using namespace edm;
13 using namespace std;
14 
16  BenchmarkAnalyzer(parameterSet),
17  MatchMETBenchmark( (Benchmark::Mode) parameterSet.getParameter<int>("mode") )
18 {
19  matchedinputLabel_=parameterSet.getParameter<edm::InputTag>("MatchCollection");
20 // setRange( parameterSet.getParameter<double>("ptMin"),
21 // parameterSet.getParameter<double>("ptMax"),
22 // -0.1, 0.1, // range in eta for MET.
23 // parameterSet.getParameter<double>("phiMin"),
24 // parameterSet.getParameter<double>("phiMax") );
25 }
26 
27 void
29 {
30 
32  setup();
33 }
34 
35 void
37  const edm::EventSetup& iSetup) {
38 
39 
41  iEvent.getByLabel( inputLabel_, collection);
42 
43  Handle< View<MET> > matchedcollection;
44  iEvent.getByLabel( matchedinputLabel_, matchedcollection);
45 
46  fillOne( (*collection)[0] , (*matchedcollection)[0]);
47 }
48 
50 }
T getParameter(std::string const &) const
void analyze(const edm::Event &, const edm::EventSetup &)
virtual void beginJob()=0
void setup()
book histograms
abstract base class
Definition: Benchmark.h:20
void fillOne(const reco::MET &candidate, const reco::MET &matchedCandidate)
fill histograms with a given particle
edm::InputTag inputLabel_
input collection
int iEvent
Definition: GenABIO.cc:243
MatchMETBenchmarkAnalyzer(const edm::ParameterSet &parameterSet)
bool getByLabel(InputTag const &tag, Handle< PROD > &result) const
Definition: Event.h:356
abtract base class for benchmark analyzers