18 matchCandBench_(mode) {
20 setRange( 0.0, 10e10, -10.0, 10.0, -3.14, 3.14);
59 float etamin,
float etamax,
float phimin,
60 float phimax,
bool metSpHistos) {
64 setRange( ptmin, ptmax, etamin, etamax, phimin, phimax);
91 if (setPS.getParameter<
bool>(
"switchOn")) {
93 setPS.getParameter<int32_t>(
"nBin"),
94 setPS.getParameter<
double>(
"xMin"),
95 setPS.getParameter<
double>(
"xMax"));
97 if (dpxPS.getParameter<
bool>(
"switchOn")) {
99 dpxPS.getParameter<int32_t>(
"nBin"),
100 dpxPS.getParameter<
double>(
"xMin"),
101 dpxPS.getParameter<
double>(
"xMax"));
104 if (dpxPS.getParameter<
bool>(
"switchOn")) {
106 ";SE_{T, true} (GeV);#DeltaE_{X}",
107 setPS.getParameter<int32_t>(
"nBin"),
108 setPS.getParameter<
double>(
"xMin"),
109 setPS.getParameter<
double>(
"xMax"),
110 dptPS.getParameter<int32_t>(
"nBin"),
111 dptPS.getParameter<
double>(
"xMin"),
112 dptPS.getParameter<
double>(
"xMax"));
114 if (dsetPS.getParameter<
bool>(
"switchOn")) {
116 ";SE_{T, true} (GeV);#DeltaSE_{T}",
117 setPS.getParameter<int32_t>(
"nBin"),
118 setPS.getParameter<
double>(
"xMin"),
119 setPS.getParameter<
double>(
"xMax"),
120 dsetPS.getParameter<int32_t>(
"nBin"),
121 dsetPS.getParameter<
double>(
"xMin"),
122 dsetPS.getParameter<
double>(
"xMax"));
124 if (setOvsetPS.getParameter<
bool>(
"switchOn")) {
126 ";SE_{T, true} (GeV);#DeltaSE_{T}/SE_{T}",
127 setPS.getParameter<int32_t>(
"nBin"),
128 setPS.getParameter<
double>(
"xMin"),
129 setPS.getParameter<
double>(
"xMax"),
130 setOvsetPS.getParameter<int32_t>(
"nBin"),
131 setOvsetPS.getParameter<
double>(
"xMin"),
132 setOvsetPS.getParameter<
double>(
"xMax"));
152 px_ =
book1D(
"px_",
"px_;p_{X} (GeV)", pxPS.
n, pxPS.
m, pxPS.
M);
154 sumEt_ =
book1D(
"sumEt_",
"sumEt_;#sumE_{T}", setPS.
n, setPS.
m, setPS.
M);
159 setPS.
n, setPS.
m, setPS.
M,
160 dpxPS.
n, dpxPS.
m, dpxPS.
M );
163 ";SE_{T, true} (GeV);#DeltaSE_{T}",
164 setPS.
n, setPS.
m, setPS.
M,
165 dsetPS.
n, dsetPS.
m, dsetPS.
M );
168 ";SE_{T, true} (GeV);#DeltaSE_{T}/SE_{T}",
169 setPS.
n, setPS.
m, setPS.
M,
170 setOvsetPS.
n, setOvsetPS.
m, setOvsetPS.
M );
183 const reco::MET& matchedMet,
float& minVal,
float& maxVal) {
203 if (setRes > maxVal) maxVal = setRes;
204 if (setRes < minVal) minVal = setRes;
T getParameter(std::string const &) const
void setParameters(Benchmark::Mode mode, float ptmin, float ptmax, float etamin, float etamax, float phimin, float phimax, bool metSpHistos)
set the parameters locally
void setDirectory(TDirectory *dir)
set directory (to use in ROOT)
void fillOne(const reco::Candidate &candidate, const reco::Candidate &matchedCandidate)
fill histograms with a given particle
void fillOne(const reco::Candidate &candidate)
fill histograms with a given particle
void setup()
book histograms
void setup()
book histograms
virtual void setDirectory(TDirectory *dir)
virtual double eta() const
momentum pseudorapidity
TH2F * book2D(const char *histname, const char *title, int nbinsx, float xmin, float xmax, int nbinsy, float ymin, float ymax)
book a 2D histogram, either with DQM or plain root.
PFMETMonitor(Benchmark::Mode mode=Benchmark::DEFAULT)
void setParameters(Mode mode)
CandidateBenchmark candBench_
void fillOne(const reco::MET &met, const reco::MET &matchedMet, float &minVal, float &maxVal)
TH2F * delta_set_Over_set_VS_set_
virtual double px() const
x coordinate of momentum vector
virtual double pt() const
transverse momentum
bool createMETSpecificHistos_
void setRange(float ptMin, float ptMax, float etaMin, float etaMax, float phiMin, float phiMax)
void setup()
book histograms
bool isInRange(float pt, float eta, float phi) const
MatchCandidateBenchmark matchCandBench_
virtual double phi() const
momentum azimuthal angle
virtual double py() const
y coordinate of momentum vector
TH1F * book1D(const char *histname, const char *title, int nbins, float xmin, float xmax)
book a 1D histogram, either with DQM or plain root.