19 matchCandBench_(mode),
21 matchCharge_(matchCharge) {
23 setRange( 0.0, 10e10, -10.0, 10.0, -3.14, 3.14);
73 float ptmin,
float ptmax,
float etamin,
float etamax,
80 setRange( ptmin, ptmax, etamin, etamax, phimin, phimax );
112 if (etaPS.getParameter<
bool>(
"switchOn")) {
113 eta_ref_ =
book1D(b,
"eta_ref_",
"#eta_ref;#eta", etaPS.getParameter<int32_t>(
"nBin"),
114 etaPS.getParameter<
double>(
"xMin"),
115 etaPS.getParameter<
double>(
"xMax"));
117 eta_gen_ =
book1D(b,
"eta_gen_",
"#eta_gen;#eta", etaPS.getParameter<int32_t>(
"nBin"),
118 etaPS.getParameter<
double>(
"xMin"),
119 etaPS.getParameter<
double>(
"xMax") ) ;
123 if (phiPS.getParameter<
bool>(
"switchOn")) {
124 phi_ref_ =
book1D(b,
"phi_ref_",
"#phi_ref;#phi", phiPS.getParameter<int32_t>(
"nBin"),
125 phiPS.getParameter<
double>(
"xMin"),
126 phiPS.getParameter<
double>(
"xMax"));
128 phi_gen_ =
book1D(b,
"phi_gen_",
"#phi_gen;#phi", phiPS.getParameter<int32_t>(
"nBin"),
129 phiPS.getParameter<
double>(
"xMin"),
130 phiPS.getParameter<
double>(
"xMax") ) ;
136 dR.getParameter<int32_t>(
"nBin"),
137 dR.getParameter<
double>(
"xMin"),
138 dR.getParameter<
double>(
"xMax"));
158 pt_ref_ =
book1D(b,
"pt_ref_",
"p_{T}_ref;p_{T} (GeV)", ptPS.
n, ptPS.
m, ptPS.
M);
160 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 with DQM or plain root depending if DQM_ has been initialized in a child ...
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)