CMS 3D CMS Logo

 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros Pages
METBenchmarkAnalyzer.cc
Go to the documentation of this file.
2 
7 
10 
11 
12 using namespace reco;
13 using namespace edm;
14 using namespace std;
15 
16 
17 
19  BenchmarkAnalyzer(parameterSet),
20  METBenchmark( (Benchmark::Mode) parameterSet.getParameter<int>("mode") )
21 {
22 
23  setRange( parameterSet.getParameter<double>("ptMin"),
24  parameterSet.getParameter<double>("ptMax"),
25  -0.1, 0.1, // range in eta for MET.
26  parameterSet.getParameter<double>("phiMin"),
27  parameterSet.getParameter<double>("phiMax") );
28 }
29 
30 
31 void
33 {
34 
36  setup();
37 }
38 
39 void
41  const edm::EventSetup& iSetup) {
42 
43 
44 
46  iEvent.getByLabel( inputLabel_, collection);
47 
48  fill( *collection );
49 }
50 
51 
53 }
T getParameter(std::string const &) const
virtual void beginJob()=0
METBenchmarkAnalyzer(const edm::ParameterSet &parameterSet)
abstract base class
Definition: Benchmark.h:20
void setup()
book histograms
Definition: METBenchmark.cc:22
void fill(const C &candidates)
fill a collection
Definition: METBenchmark.h:36
edm::InputTag inputLabel_
input collection
void analyze(const edm::Event &, const edm::EventSetup &)
To plot MET quantities.
Definition: METBenchmark.h:9
int iEvent
Definition: GenABIO.cc:243
bool getByLabel(InputTag const &tag, Handle< PROD > &result) const
Definition: Event.h:356
void setRange(float ptMin, float ptMax, float etaMin, float etaMax, float phiMin, float phiMax)
Definition: Benchmark.h:51
abtract base class for benchmark analyzers