DQMOffline
PFTau
plugins
PFCandidateBenchmarkAnalyzer.cc
Go to the documentation of this file.
1
#include "
DQMOffline/PFTau/plugins/PFCandidateBenchmarkAnalyzer.h
"
2
3
#include "
DataFormats/Common/interface/Handle.h
"
4
#include "
FWCore/Framework/interface/Event.h
"
5
#include "
FWCore/ParameterSet/interface/ParameterSet.h
"
6
#include "
FWCore/Utilities/interface/InputTag.h
"
7
8
#include "
DataFormats/ParticleFlowCandidate/interface/PFCandidate.h
"
9
#include "
DataFormats/ParticleFlowCandidate/interface/PFCandidateFwd.h
"
10
11
#include "
DQMServices/Core/interface/DQMStore.h
"
12
#include "
FWCore/ServiceRegistry/interface/Service.h
"
13
14
using namespace
reco
;
15
using namespace
edm
;
16
using namespace
std
;
17
18
PFCandidateBenchmarkAnalyzer::PFCandidateBenchmarkAnalyzer
(
const
edm::ParameterSet
&
parameterSet
)
19
:
BenchmarkAnalyzer
(
parameterSet
),
PFCandidateBenchmark
((
Benchmark
::
Mode
)
parameterSet
.getParameter<
int
>(
"mode"
)) {
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
30
void
PFCandidateBenchmarkAnalyzer::bookHistograms
(
DQMStore::IBooker
&ibooker,
31
edm::Run
const
&iRun,
32
edm::EventSetup
const
&iSetup) {
33
BenchmarkAnalyzer::bookHistograms
(ibooker, iRun, iSetup);
34
setup
(ibooker);
35
}
36
37
void
PFCandidateBenchmarkAnalyzer::analyze
(
const
edm::Event
&
iEvent
,
const
edm::EventSetup
&iSetup) {
38
Handle<PFCandidateCollection>
collection
;
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 ¶meterSet)
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
Generated for CMSSW Reference Manual by
1.8.16