18 matchCandBench_(mode),
20 matchCharge_(matchCharge) {
22 setRange( 0.0, 10e10, -10.0, 10.0, -3.14, 3.14);
67 float ptmin,
float ptmax,
float etamin,
float etamax,
74 setRange( ptmin, ptmax, etamin, etamax, phimin, phimax );
102 if (etaPS.getParameter<
bool>(
"switchOn")) {
103 eta_ref_ =
book1D(
"eta_ref_",
"#eta_ref;#eta", etaPS.getParameter<int32_t>(
"nBin"),
104 etaPS.getParameter<
double>(
"xMin"),
105 etaPS.getParameter<
double>(
"xMax"));
107 etaPS.getParameter<
double>(
"xMin"),
108 etaPS.getParameter<
double>(
"xMax") ) ;
110 if (phiPS.getParameter<
bool>(
"switchOn")) {
111 phi_ref_ =
book1D(
"phi_ref_",
"#phi_ref;#phi", phiPS.getParameter<int32_t>(
"nBin"),
112 phiPS.getParameter<
double>(
"xMin"),
113 phiPS.getParameter<
double>(
"xMax"));
115 phiPS.getParameter<
double>(
"xMin"),
116 phiPS.getParameter<
double>(
"xMax") ) ;
120 dR.getParameter<int32_t>(
"nBin"),
121 dR.getParameter<
double>(
"xMin"),
122 dR.getParameter<
double>(
"xMax"));
139 pt_ref_ =
book1D(
"pt_ref_",
"p_{T}_ref;p_{T} (GeV)", ptPS.
n, ptPS.
m, ptPS.
M);
T getParameter(std::string const &) const
void setup()
book histograms
bool createReferenceHistos_
virtual float eta() const =0
momentum pseudorapidity
void setup()
book histograms
void setup()
book histograms
virtual float phi() const =0
momentum azimuthal angle
virtual void setDirectory(TDirectory *dir)
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
virtual float pt() const =0
transverse momentum
void setDirectory(TDirectory *dir)
set directory (to use in ROOT)
virtual ~PFCandidateMonitor()
void setParameters(Mode mode)
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_
ParameterSet const & parameterSet(Provenance const &provenance)
TH1F * book1D(const char *histname, const char *title, int nbins, float xmin, float xmax)
book a 1D histogram, either with DQM or plain root.
PFCandidateMonitor(float dRMax=0.3, bool matchCharge=true, Benchmark::Mode mode=Benchmark::DEFAULT)