CMS 3D CMS Logo

PFCandidateBenchmarkAnalyzer.cc
Go to the documentation of this file.
2 
7 
10 
13 
14 using namespace reco;
15 using namespace edm;
16 using namespace std;
17 
18 
20  BenchmarkAnalyzer(parameterSet),
21  PFCandidateBenchmark( (Benchmark::Mode) parameterSet.getParameter<int>("mode") )
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  myColl_ = consumes< PFCandidateCollection >(inputLabel_);
31 
32 }
33 
34 
36  edm::Run const & iRun,
37  edm::EventSetup const & iSetup )
38 {
39  BenchmarkAnalyzer::bookHistograms(ibooker, iRun, iSetup);
40  setup(ibooker);
41 }
42 
44  const edm::EventSetup& iSetup) {
45 
47  iEvent.getByToken(myColl_, collection);
48 
49  fill( *collection );
50 }
51 
T getParameter(std::string const &) const
void fill(const reco::PFCandidateCollection &pfCands)
bool getByToken(EDGetToken token, Handle< PROD > &result) const
Definition: Event.h:508
void bookHistograms(DQMStore::IBooker &, edm::Run const &, edm::EventSetup const &) override
abstract base class
Definition: Benchmark.h:22
void bookHistograms(DQMStore::IBooker &, edm::Run const &, edm::EventSetup const &) override
edm::InputTag inputLabel_
input collection
int iEvent
Definition: GenABIO.cc:230
PFCandidateBenchmarkAnalyzer(const edm::ParameterSet &parameterSet)
edm::EDGetTokenT< reco::PFCandidateCollection > myColl_
void setRange(float ptMin, float ptMax, float etaMin, float etaMax, float phiMin, float phiMax)
Definition: Benchmark.h:51
void setup(DQMStore::IBooker &b)
book histograms
fixed size matrix
HLT enums.
abtract base class for benchmark analyzers
ParameterSet const & parameterSet(Provenance const &provenance)
Definition: Provenance.cc:11
void analyze(const edm::Event &, const edm::EventSetup &) override
Definition: Run.h:43