16 :
Benchmark(mode), candBench_(mode), matchCandBench_(mode), dRMax_(dRMax), matchCharge_(matchCharge) {
17 setRange(0.0, 10e10, -10.0, 10.0, -3.14, 3.14);
77 setRange(ptmin, ptmax, etamin, etamax, phimin, phimax);
100 "p_{T}_ref;p_{T} (GeV)",
107 "p_{T}_gen;p_{T} (GeV)",
114 if (etaPS.getParameter<
bool>(
"switchOn")) {
118 etaPS.getParameter<int32_t>(
"nBin"),
119 etaPS.getParameter<
double>(
"xMin"),
120 etaPS.getParameter<
double>(
"xMax"));
125 etaPS.getParameter<int32_t>(
"nBin"),
126 etaPS.getParameter<
double>(
"xMin"),
127 etaPS.getParameter<
double>(
"xMax"));
131 if (phiPS.getParameter<
bool>(
"switchOn")) {
135 phiPS.getParameter<int32_t>(
"nBin"),
136 phiPS.getParameter<
double>(
"xMin"),
137 phiPS.getParameter<
double>(
"xMax"));
142 phiPS.getParameter<int32_t>(
"nBin"),
143 phiPS.getParameter<
double>(
"xMin"),
144 phiPS.getParameter<
double>(
"xMax"));
152 dR.getParameter<int32_t>(
"nBin"),
153 dR.getParameter<
double>(
"xMin"),
154 dR.getParameter<
double>(
"xMax"));
173 pt_ref_ =
book1D(b,
"pt_ref_",
"p_{T}_ref;p_{T} (GeV)", ptPS.
n, ptPS.
m, ptPS.
M);
175 pt_gen_ =
book1D(b,
"pt_gen_",
"p_{T}_gen;p_{T} (GeV)", ptPS.
n, ptPS.
m, ptPS.
M);
T getParameter(std::string const &) const
TH1F * book1D(DQMStore::IBooker &b, const char *histname, const char *title, int nbins, float xmin, float xmax)
book a 1D histogram, either through IBooker or plain root
bool createReferenceHistos_
void setDirectory(TDirectory *dir) override
set directory (to use in ROOT)
void setup(DQMStore::IBooker &b)
book histograms
virtual void setDirectory(TDirectory *dir)
void setup(DQMStore::IBooker &b)
book histograms
void setParameters(float dRMax, bool matchCharge, Benchmark::Mode mode, float ptmin, float ptmax, float etamin, float etamax, float phimin, float phimax, bool refHistoFlag)
set the parameters locally
void setParameters(Mode mode)
~PFCandidateMonitor() override
virtual double eta() const =0
momentum pseudorapidity
virtual double pt() const =0
transverse momentum
CandidateBenchmark candBench_
bool createEfficiencyHistos_
void setRange(float ptMin, float ptMax, float etaMin, float etaMax, float phiMin, float phiMax)
void fillOne(const reco::Candidate &cand)
MatchCandidateBenchmark matchCandBench_
void setup(DQMStore::IBooker &b)
book histograms
virtual double phi() const =0
momentum azimuthal angle
ParameterSet const & parameterSet(Provenance const &provenance)
PFCandidateMonitor(float dRMax=0.3, bool matchCharge=true, Benchmark::Mode mode=Benchmark::DEFAULT)