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);
TH1F * book1D(DQMStore::IBooker &b, const char *histname, const char *title, int nbins, float xmin, float xmax)
book a 1D histogram, either with DQM or plain root depending if DQM_ has been initialized in a child ...
bool createReferenceHistos_
virtual double pt() const =0
transverse momentum
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
ParameterSet const & parameterSet(StableProvenance const &provenance, ProcessHistory const &history)
void setParameters(Mode mode)
~PFCandidateMonitor() override
CandidateBenchmark candBench_
bool createEfficiencyHistos_
void setRange(float ptMin, float ptMax, float etaMin, float etaMax, float phiMin, float phiMax)
void fillOne(const reco::Candidate &cand)
T getParameter(std::string const &) const
MatchCandidateBenchmark matchCandBench_
void setup(DQMStore::IBooker &b)
book histograms
virtual double phi() const =0
momentum azimuthal angle
virtual double eta() const =0
momentum pseudorapidity
PFCandidateMonitor(float dRMax=0.3, bool matchCharge=true, Benchmark::Mode mode=Benchmark::DEFAULT)