21 matchCandBench_(mode) {
23 setRange( 0.0, 10e10, -10.0, 10.0, -3.14, 3.14);
74 float etamin,
float etamax,
float phimin,
75 float phimax,
bool metSpHistos) {
79 setRange( ptmin, ptmax, etamin, etamax, phimin, phimax);
103 px_ =
book1D(b,
"px_",
"px_;p_{X} (GeV)",
108 if (setPS.getParameter<
bool>(
"switchOn")) {
110 setPS.getParameter<int32_t>(
"nBin"),
111 setPS.getParameter<
double>(
"xMin"),
112 setPS.getParameter<
double>(
"xMax"));
114 if (dpxPS.getParameter<
bool>(
"switchOn")) {
116 dpxPS.getParameter<int32_t>(
"nBin"),
117 dpxPS.getParameter<
double>(
"xMin"),
118 dpxPS.getParameter<
double>(
"xMax"));
121 if (dpxPS.getParameter<
bool>(
"switchOn")) {
123 setPS.getParameter<int32_t>(
"nBin"),
124 setPS.getParameter<
double>(
"xMin"),
125 setPS.getParameter<
double>(
"xMax"),
126 dptPS.getParameter<int32_t>(
"nBin"),
127 dptPS.getParameter<
double>(
"xMin"),
128 dptPS.getParameter<
double>(
"xMax"));
130 if (dsetPS.getParameter<
bool>(
"switchOn")) {
132 setPS.getParameter<int32_t>(
"nBin"),
133 setPS.getParameter<
double>(
"xMin"),
134 setPS.getParameter<
double>(
"xMax"),
135 dsetPS.getParameter<int32_t>(
"nBin"),
136 dsetPS.getParameter<
double>(
"xMin"),
137 dsetPS.getParameter<
double>(
"xMax"));
139 if (setOvsetPS.getParameter<
bool>(
"switchOn")) {
141 setPS.getParameter<int32_t>(
"nBin"),
142 setPS.getParameter<
double>(
"xMin"),
143 setPS.getParameter<
double>(
"xMax"),
144 setOvsetPS.getParameter<int32_t>(
"nBin"),
145 setOvsetPS.getParameter<
double>(
"xMin"),
146 setOvsetPS.getParameter<
double>(
"xMax"));
150 if (dpxPS.getParameter<
bool>(
"switchOn")) {
152 setPS.getParameter<int32_t>(
"nBin"),
153 setPS.getParameter<
double>(
"xMin"),
154 setPS.getParameter<
double>(
"xMax"),
155 dptPS.getParameter<
double>(
"xMin"),
156 dptPS.getParameter<
double>(
"xMax"),
"" );
158 setPS.getParameter<int32_t>(
"nBin"),
159 setPS.getParameter<
double>(
"xMin"),
160 setPS.getParameter<
double>(
"xMax"),
161 dptPS.getParameter<
double>(
"xMin"),
162 dptPS.getParameter<
double>(
"xMax"),
"s" );
164 if (dsetPS.getParameter<
bool>(
"switchOn")) {
166 setPS.getParameter<int32_t>(
"nBin"),
167 setPS.getParameter<
double>(
"xMin"),
168 setPS.getParameter<
double>(
"xMax"),
169 dsetPS.getParameter<
double>(
"xMin"),
170 dsetPS.getParameter<
double>(
"xMax"),
"" );
172 setPS.getParameter<int32_t>(
"nBin"),
173 setPS.getParameter<
double>(
"xMin"),
174 setPS.getParameter<
double>(
"xMax"),
175 dsetPS.getParameter<
double>(
"xMin"),
176 dsetPS.getParameter<
double>(
"xMax"),
"s" );
178 if (setOvsetPS.getParameter<
bool>(
"switchOn")) {
180 setPS.getParameter<int32_t>(
"nBin"),
181 setPS.getParameter<
double>(
"xMin"),
182 setPS.getParameter<
double>(
"xMax"),
183 setOvsetPS.getParameter<
double>(
"xMin"),
184 setOvsetPS.getParameter<
double>(
"xMax"),
"" );
186 setPS.getParameter<int32_t>(
"nBin"),
187 setPS.getParameter<
double>(
"xMin"),
188 setPS.getParameter<
double>(
"xMax"),
189 setOvsetPS.getParameter<
double>(
"xMin"),
190 setOvsetPS.getParameter<
double>(
"xMax"),
"s" );
212 px_ =
book1D(b,
"px_",
"px_;p_{X} (GeV)", pxPS.
n, pxPS.
m, pxPS.
M);
213 sumEt_ =
book1D(b,
"sumEt_",
"sumEt_;#sumE_{T}", setPS.
n, setPS.
m, setPS.
M);
216 setPS.
n, setPS.
m, setPS.
M,
217 dpxPS.
n, dpxPS.
m, dpxPS.
M );
219 setPS.
n, setPS.
m, setPS.
M,
220 dsetPS.
n, dsetPS.
m, dsetPS.
M );
223 setPS.
n, setPS.
m, setPS.
M,
224 setOvsetPS.
n, setOvsetPS.
m, setOvsetPS.
M );
228 setPS.
n, setPS.
m, setPS.
M,
229 setOvsetPS.
m, setOvsetPS.
M,
"" );
232 setPS.
n, setPS.
m, setPS.
M,
233 setOvsetPS.
m, setOvsetPS.
M,
"" );
236 setPS.
n, setPS.
m, setPS.
M,
237 setOvsetPS.
m, setOvsetPS.
M,
"" );
241 setPS.
n, setPS.
m, setPS.
M,
242 setOvsetPS.
m, setOvsetPS.
M,
"s" );
245 setPS.
n, setPS.
m, setPS.
M,
246 setOvsetPS.
m, setOvsetPS.
M,
"s" );
250 setPS.
n, setPS.
m, setPS.
M,
251 setOvsetPS.
m, setOvsetPS.
M,
"s" );
266 const reco::MET& matchedMet,
float& minVal,
float& maxVal) {
295 float setRes = (met.
sumEt() - matchedMet.
sumEt()) / matchedMet.
sumEt();
296 if (setRes > maxVal) maxVal = setRes;
297 if (setRes < minVal) minVal = setRes;
TProfile * profile_delta_ex_VS_set_
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
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 ...
void setDirectory(TDirectory *dir)
set directory (to use in ROOT)
TProfile * profileRMS_delta_set_VS_set_
TProfile * profile_delta_set_VS_set_
void fillOne(const reco::Candidate &candidate, const reco::Candidate &matchedCandidate)
fill histograms with a given particle
virtual float pt() const
transverse momentum
void fillOne(const reco::Candidate &candidate)
fill histograms with a given particle
virtual float phi() const
momentum azimuthal angle
void setup(DQMStore::IBooker &b)
book histograms
virtual void setDirectory(TDirectory *dir)
TProfile * profileRMS_delta_set_Over_set_VS_set_
TProfile * profileRMS_delta_ex_VS_set_
virtual float eta() const
momentum pseudorapidity
PFMETMonitor(Benchmark::Mode mode=Benchmark::DEFAULT)
void setParameters(Mode mode)
TH2F * book2D(DQMStore::IBooker &b, 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 depending if DQM_ has been initialized in a child ...
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
bool createMETSpecificHistos_
void setRange(float ptMin, float ptMax, float etaMin, float etaMax, float phiMin, float phiMax)
TProfile * profile_delta_set_Over_set_VS_set_
void setup(DQMStore::IBooker &b)
book histograms
void setup(DQMStore::IBooker &b)
book histograms
bool isInRange(float pt, float eta, float phi) const
MatchCandidateBenchmark matchCandBench_
TProfile * bookProfile(DQMStore::IBooker &b, const char *histname, const char *title, int nbinsx, float xmin, float xmax, float ymin, float ymax, const char *option)
book a TProfile histogram, either with DQM or plain root depending if DQM_ has been initialized in a ...
virtual double py() const
y coordinate of momentum vector
ParameterSet const & parameterSet(Provenance const &provenance)