CMS 3D CMS Logo

 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros Pages
CandidateBenchmarkAnalyzer.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  CandidateBenchmark( (Benchmark::Mode) parameterSet.getParameter<int>("mode") )
21 {
22 
23  setRange( parameterSet.getParameter<double>("ptMin"),
24  parameterSet.getParameter<double>("ptMax"),
25  parameterSet.getParameter<double>("etaMin"),
26  parameterSet.getParameter<double>("etaMax"),
27  parameterSet.getParameter<double>("phiMin"),
28  parameterSet.getParameter<double>("phiMax") );
29 }
30 
31 
32 void
34 {
35 
37  setup();
38 }
39 
40 void
42  const edm::EventSetup& iSetup) {
43 
44 
45 
47  iEvent.getByLabel( inputLabel_, collection);
48 
49  fill( *collection );
50 }
51 
52 
54 }
T getParameter(std::string const &) const
virtual void beginJob()=0
To plot Candidate quantities.
void setup()
book histograms
abstract base class
Definition: Benchmark.h:20
void fill(const C &candidates)
edm::InputTag inputLabel_
input collection
int iEvent
Definition: GenABIO.cc:243
bool getByLabel(InputTag const &tag, Handle< PROD > &result) const
Definition: Event.h:361
void setRange(float ptMin, float ptMax, float etaMin, float etaMax, float phiMin, float phiMax)
Definition: Benchmark.h:51
CandidateBenchmarkAnalyzer(const edm::ParameterSet &parameterSet)
abtract base class for benchmark analyzers
void analyze(const edm::Event &, const edm::EventSetup &)