CMS 3D CMS Logo

 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros Pages
PFCandidateBenchmarkAnalyzer.cc
Go to the documentation of this file.
2 
7 
10 
13 
14 // #include "DQMServices/Core/interface/MonitorElement.h"
15 // #include <TH1F.h>
16 
17 using namespace reco;
18 using namespace edm;
19 using namespace std;
20 
21 
22 
24  BenchmarkAnalyzer(parameterSet),
25  PFCandidateBenchmark( (Benchmark::Mode) parameterSet.getParameter<int>("mode") )
26 {
27  setRange( parameterSet.getParameter<double>("ptMin"),
28  parameterSet.getParameter<double>("ptMax"),
29  parameterSet.getParameter<double>("etaMin"),
30  parameterSet.getParameter<double>("etaMax"),
31  parameterSet.getParameter<double>("phiMin"),
32  parameterSet.getParameter<double>("phiMax") );
33 
34 }
35 
36 
37 void
39 {
41  setup();
42 }
43 
44 
45 void
47  const edm::EventSetup& iSetup) {
48 
49 
50 
52  iEvent.getByLabel( inputLabel_, collection);
53 
54  fill( *collection );
55 }
56 
57 
59 }
T getParameter(std::string const &) const
void fill(const reco::PFCandidateCollection &pfCands)
virtual void beginJob()=0
abstract base class
Definition: Benchmark.h:20
edm::InputTag inputLabel_
input collection
int iEvent
Definition: GenABIO.cc:243
PFCandidateBenchmarkAnalyzer(const edm::ParameterSet &parameterSet)
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
void analyze(const edm::Event &, const edm::EventSetup &)
abtract base class for benchmark analyzers
void setup()
book histograms