18 setRange(0.0, 10e10, -10.0, 10.0, -3.14, 3.14);
103 if (setPS.getParameter<
bool>(
"switchOn")) {
107 setPS.getParameter<int32_t>(
"nBin"),
108 setPS.getParameter<
double>(
"xMin"),
109 setPS.getParameter<
double>(
"xMax"));
111 if (dpxPS.getParameter<
bool>(
"switchOn")) {
115 dpxPS.getParameter<int32_t>(
"nBin"),
116 dpxPS.getParameter<
double>(
"xMin"),
117 dpxPS.getParameter<
double>(
"xMax"));
120 if (dpxPS.getParameter<
bool>(
"switchOn")) {
123 ";SE_{T, true} (GeV);#DeltaE_{X}",
124 setPS.getParameter<int32_t>(
"nBin"),
125 setPS.getParameter<
double>(
"xMin"),
126 setPS.getParameter<
double>(
"xMax"),
127 dptPS.getParameter<int32_t>(
"nBin"),
128 dptPS.getParameter<
double>(
"xMin"),
129 dptPS.getParameter<
double>(
"xMax"));
131 if (dsetPS.getParameter<
bool>(
"switchOn")) {
134 ";SE_{T, true} (GeV);#DeltaSE_{T}",
135 setPS.getParameter<int32_t>(
"nBin"),
136 setPS.getParameter<
double>(
"xMin"),
137 setPS.getParameter<
double>(
"xMax"),
138 dsetPS.getParameter<int32_t>(
"nBin"),
139 dsetPS.getParameter<
double>(
"xMin"),
140 dsetPS.getParameter<
double>(
"xMax"));
142 if (setOvsetPS.getParameter<
bool>(
"switchOn")) {
144 "delta_set_Over_set_VS_set_",
145 ";SE_{T, true} (GeV);#DeltaSE_{T}/SE_{T}",
146 setPS.getParameter<int32_t>(
"nBin"),
147 setPS.getParameter<
double>(
"xMin"),
148 setPS.getParameter<
double>(
"xMax"),
149 setOvsetPS.getParameter<int32_t>(
"nBin"),
150 setOvsetPS.getParameter<
double>(
"xMin"),
151 setOvsetPS.getParameter<
double>(
"xMax"));
155 if (dpxPS.getParameter<
bool>(
"switchOn")) {
157 "profile_delta_ex_VS_set_",
158 ";SE_{T, true} (GeV);#DeltaE_{X}",
159 setPS.getParameter<int32_t>(
"nBin"),
160 setPS.getParameter<
double>(
"xMin"),
161 setPS.getParameter<
double>(
"xMax"),
162 dptPS.getParameter<
double>(
"xMin"),
163 dptPS.getParameter<
double>(
"xMax"),
166 "profileRMS_delta_ex_VS_set_",
167 ";SE_{T, true} (GeV);#DeltaE_{X}",
168 setPS.getParameter<int32_t>(
"nBin"),
169 setPS.getParameter<
double>(
"xMin"),
170 setPS.getParameter<
double>(
"xMax"),
171 dptPS.getParameter<
double>(
"xMin"),
172 dptPS.getParameter<
double>(
"xMax"),
175 if (dsetPS.getParameter<
bool>(
"switchOn")) {
177 "profile_delta_set_VS_set_",
178 ";SE_{T, true} (GeV);#DeltaSE_{T}",
179 setPS.getParameter<int32_t>(
"nBin"),
180 setPS.getParameter<
double>(
"xMin"),
181 setPS.getParameter<
double>(
"xMax"),
182 dsetPS.getParameter<
double>(
"xMin"),
183 dsetPS.getParameter<
double>(
"xMax"),
186 "profileRMS_delta_set_VS_set_",
187 ";SE_{T, true} (GeV);#DeltaSE_{T}",
188 setPS.getParameter<int32_t>(
"nBin"),
189 setPS.getParameter<
double>(
"xMin"),
190 setPS.getParameter<
double>(
"xMax"),
191 dsetPS.getParameter<
double>(
"xMin"),
192 dsetPS.getParameter<
double>(
"xMax"),
195 if (setOvsetPS.getParameter<
bool>(
"switchOn")) {
197 "profile_delta_set_Over_set_VS_set_",
198 ";SE_{T, true} (GeV);#DeltaSE_{T}/SE_{T}",
199 setPS.getParameter<int32_t>(
"nBin"),
200 setPS.getParameter<
double>(
"xMin"),
201 setPS.getParameter<
double>(
"xMax"),
202 setOvsetPS.getParameter<
double>(
"xMin"),
203 setOvsetPS.getParameter<
double>(
"xMax"),
206 "profileRMS_delta_set_Over_set_VS_set_",
207 ";SE_{T, true} (GeV);#DeltaSE_{T}/SE_{T}",
208 setPS.getParameter<int32_t>(
"nBin"),
209 setPS.getParameter<
double>(
"xMin"),
210 setPS.getParameter<
double>(
"xMax"),
211 setOvsetPS.getParameter<
double>(
"xMin"),
212 setOvsetPS.getParameter<
double>(
"xMax"),
233 px_ =
book1D(
b,
"px_",
"px_;p_{X} (GeV)", pxPS.
n, pxPS.
m, pxPS.
M);
234 sumEt_ =
book1D(
b,
"sumEt_",
"sumEt_;#sumE_{T}", setPS.
n, setPS.
m, setPS.
M);
237 b,
"delta_ex_VS_set_",
";SE_{T, true} (GeV);#DeltaE_{X}", setPS.
n, setPS.
m, setPS.
M, dpxPS.
n, dpxPS.
m, dpxPS.
M);
240 ";SE_{T, true} (GeV);#DeltaSE_{T}",
249 "delta_set_Over_set_VS_set_",
250 ";SE_{T, true} (GeV);#DeltaSE_{T}/SE_{T}",
260 "profile_delta_ex_VS_set_",
261 ";SE_{T, true} (GeV);#DeltaE_{X}",
270 "profile_delta_set_VS_set_",
271 ";SE_{T, true} (GeV);#DeltaSE_{T}",
280 "profile_delta_set_Over_set_VS_set_",
281 ";SE_{T, true} (GeV);#DeltaSE_{T}/SE_{T}",
291 "profileRMS_delta_ex_VS_set_",
292 ";SE_{T, true} (GeV);#DeltaE_{X}",
301 "profileRMS_delta_set_VS_set_",
302 ";SE_{T, true} (GeV);#DeltaSE_{T}",
311 "profileRMS_delta_set_Over_set_VS_set_",
312 ";SE_{T, true} (GeV);#DeltaSE_{T}/SE_{T}",
362 float setRes = (
met.sumEt() - matchedMet.
sumEt()) / matchedMet.
sumEt();
TProfile * profile_delta_ex_VS_set_
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 ...
TProfile * profileRMS_delta_set_VS_set_
T getParameter(std::string const &) const
TProfile * profile_delta_set_VS_set_
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(DQMStore::IBooker &b)
book histograms
virtual void setDirectory(TDirectory *dir)
TProfile * profileRMS_delta_set_Over_set_VS_set_
ParameterSet const & parameterSet(StableProvenance const &provenance, ProcessHistory const &history)
TProfile * profileRMS_delta_ex_VS_set_
void setDirectory(TDirectory *dir) override
set directory (to use in ROOT)
double px() const final
x coordinate of momentum vector
PFMETMonitor(Benchmark::Mode mode=Benchmark::DEFAULT)
void setParameters(Mode mode)
bool isInRange(float pt, float eta, float phi) const
double py() const final
y coordinate of momentum vector
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_
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
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 ...