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 
20  setRange(parameterSet.getParameter<double>("ptMin"),
21  parameterSet.getParameter<double>("ptMax"),
22  parameterSet.getParameter<double>("etaMin"),
23  parameterSet.getParameter<double>("etaMax"),
24  parameterSet.getParameter<double>("phiMin"),
25  parameterSet.getParameter<double>("phiMax"));
26 
27  myColl_ = consumes<PFCandidateCollection>(inputLabel_);
28 }
29 
31  edm::Run const &iRun,
32  edm::EventSetup const &iSetup) {
33  BenchmarkAnalyzer::bookHistograms(ibooker, iRun, iSetup);
34  setup(ibooker);
35 }
36 
39  iEvent.getByToken(myColl_, collection);
40 
41  fill(*collection);
42 }
PFCandidateBenchmark::fill
void fill(const reco::PFCandidateCollection &pfCands)
Definition: PFCandidateBenchmark.cc:39
PFCandidateBenchmark::setup
void setup(DQMStore::IBooker &b)
book histograms
Definition: PFCandidateBenchmark.cc:14
Handle.h
Benchmark
abstract base class
Definition: Benchmark.h:19
PFCandidate.h
edm::Run
Definition: Run.h:45
edm
HLT enums.
Definition: AlignableModifier.h:19
BenchmarkAnalyzer::bookHistograms
void bookHistograms(DQMStore::IBooker &, edm::Run const &, edm::EventSetup const &) override
Definition: BenchmarkAnalyzer.cc:28
PFCandidateBenchmark
Definition: PFCandidateBenchmark.h:11
DQMStore.h
PFCandidateBenchmarkAnalyzer.h
reco
fixed size matrix
Definition: AlignmentAlgorithmBase.h:45
BenchmarkAnalyzer::inputLabel_
edm::InputTag inputLabel_
input collection
Definition: BenchmarkAnalyzer.h:30
Benchmark::setRange
void setRange(float ptMin, float ptMax, float etaMin, float etaMax, float phiMin, float phiMax)
Definition: Benchmark.h:41
edm::Handle
Definition: AssociativeIterator.h:50
BenchmarkAnalyzer
abtract base class for benchmark analyzers
Definition: BenchmarkAnalyzer.h:14
PFCandidateBenchmarkAnalyzer::bookHistograms
void bookHistograms(DQMStore::IBooker &, edm::Run const &, edm::EventSetup const &) override
Definition: PFCandidateBenchmarkAnalyzer.cc:30
Service.h
PFCandidateBenchmarkAnalyzer::analyze
void analyze(const edm::Event &, const edm::EventSetup &) override
Definition: PFCandidateBenchmarkAnalyzer.cc:37
edm::ParameterSet
Definition: ParameterSet.h:36
Event.h
Benchmark::Mode
Mode
Definition: Benchmark.h:32
createfilelist.int
int
Definition: createfilelist.py:10
iEvent
int iEvent
Definition: GenABIO.cc:224
universalConfigTemplate.collection
collection
Definition: universalConfigTemplate.py:81
edm::EventSetup
Definition: EventSetup.h:57
InputTag.h
edm::ParameterSet::getParameter
T getParameter(std::string const &) const
std
Definition: JetResolutionObject.h:76
edm::parameterSet
ParameterSet const & parameterSet(Provenance const &provenance, ProcessHistory const &history)
Definition: Provenance.cc:11
dqm::implementation::IBooker
Definition: DQMStore.h:43
PFCandidateBenchmarkAnalyzer::PFCandidateBenchmarkAnalyzer
PFCandidateBenchmarkAnalyzer(const edm::ParameterSet &parameterSet)
Definition: PFCandidateBenchmarkAnalyzer.cc:18
PFCandidateBenchmarkAnalyzer::myColl_
edm::EDGetTokenT< reco::PFCandidateCollection > myColl_
Definition: PFCandidateBenchmarkAnalyzer.h:21
ParameterSet.h
edm::Event
Definition: Event.h:73
PFCandidateFwd.h