152 if (!meBTLTrackEffEtaTot || !meBTLTrackEffPhiTot || !meBTLTrackEffPtTot || !meBTLTrackEffEtaMtd ||
153 !meBTLTrackEffPhiMtd || !meBTLTrackEffPtMtd || !meETLTrackEffEtaTotZneg || !meETLTrackEffPhiTotZneg ||
154 !meETLTrackEffPtTotZneg || !meETLTrackEffEtaMtdZneg || !meETLTrackEffPhiMtdZneg || !meETLTrackEffPtMtdZneg ||
155 !meETLTrackEffEta2MtdZneg || !meETLTrackEffPhi2MtdZneg || !meETLTrackEffPt2MtdZneg || !meETLTrackEffEtaTotZpos ||
156 !meETLTrackEffPhiTotZpos || !meETLTrackEffPtTotZpos || !meETLTrackEffEtaMtdZpos || !meETLTrackEffPhiMtdZpos ||
157 !meETLTrackEffPtMtdZpos || !meETLTrackEffEta2MtdZpos || !meETLTrackEffPhi2MtdZpos || !meETLTrackEffPt2MtdZpos ||
158 !meMVATrackEffPtTot || !meMVATrackMatchedEffPtTot || !meMVATrackMatchedEffPtMtd || !meMVATrackEffEtaTot ||
159 !meMVATrackMatchedEffEtaTot || !meMVATrackMatchedEffEtaMtd || !meTrackMatchedTPEffPtTot ||
160 !meTrackMatchedTPEffPtMtd || !meTrackMatchedTPEffPtEtl2Mtd || !meTrackMatchedTPmtdEffPtTot ||
161 !meTrackMatchedTPmtdEffPtMtd || !meTrackMatchedTPEffEtaTot || !meTrackMatchedTPEffEtaMtd ||
162 !meTrackMatchedTPEffEtaEtl2Mtd || !meTrackMatchedTPmtdEffEtaTot || !meTrackMatchedTPmtdEffEtaMtd ||
163 !meTrackNumHits || !meTrackNumHitsNT || !meTrackPtTot || !meTrackEtaTot) {
164 edm::LogError(
"MtdTracksHarvester") <<
"Monitoring histograms not found!" << std::endl;
171 " Track Efficiency VS Eta;#eta;Efficiency",
173 meBTLTrackEffEtaTot->
getTH1()->GetXaxis()->GetXmin(),
174 meBTLTrackEffEtaTot->
getTH1()->GetXaxis()->GetXmax());
179 "Track Efficiency VS Phi;#phi [rad];Efficiency",
181 meBTLTrackEffPhiTot->
getTH1()->GetXaxis()->GetXmin(),
182 meBTLTrackEffPhiTot->
getTH1()->GetXaxis()->GetXmax());
187 "Track Efficiency VS Pt;Pt [GeV];Efficiency",
189 meBTLTrackEffPtTot->
getTH1()->GetXaxis()->GetXmin(),
190 meBTLTrackEffPtTot->
getTH1()->GetXaxis()->GetXmax());
195 " Track Efficiency VS Eta (-Z);#eta;Efficiency",
197 meETLTrackEffEtaTotZneg->
getTH1()->GetXaxis()->GetXmin(),
198 meETLTrackEffEtaTotZneg->
getTH1()->GetXaxis()->GetXmax());
203 "Track Efficiency VS Phi (-Z);#phi [rad];Efficiency",
205 meETLTrackEffPhiTotZneg->
getTH1()->GetXaxis()->GetXmin(),
206 meETLTrackEffPhiTotZneg->
getTH1()->GetXaxis()->GetXmax());
211 "Track Efficiency VS Pt (-Z);Pt [GeV];Efficiency",
213 meETLTrackEffPtTotZneg->
getTH1()->GetXaxis()->GetXmin(),
214 meETLTrackEffPtTotZneg->
getTH1()->GetXaxis()->GetXmax());
219 " Track Efficiency VS Eta (+Z);#eta;Efficiency",
221 meETLTrackEffEtaTotZpos->
getTH1()->GetXaxis()->GetXmin(),
222 meETLTrackEffEtaTotZpos->
getTH1()->GetXaxis()->GetXmax());
227 "Track Efficiency VS Phi (+Z);#phi [rad];Efficiency",
229 meETLTrackEffPhiTotZpos->
getTH1()->GetXaxis()->GetXmin(),
230 meETLTrackEffPhiTotZpos->
getTH1()->GetXaxis()->GetXmax());
235 "Track Efficiency VS Pt (+Z);Pt [GeV];Efficiency",
237 meETLTrackEffPtTotZpos->
getTH1()->GetXaxis()->GetXmin(),
238 meETLTrackEffPtTotZpos->
getTH1()->GetXaxis()->GetXmax());
243 " Track Efficiency VS Eta (-Z, 2 hit);#eta;Efficiency",
245 meETLTrackEffEtaTotZneg->
getTH1()->GetXaxis()->GetXmin(),
246 meETLTrackEffEtaTotZneg->
getTH1()->GetXaxis()->GetXmax());
251 "Track Efficiency VS Phi (-Z, 2 hit);#phi [rad];Efficiency",
253 meETLTrackEffPhiTotZneg->
getTH1()->GetXaxis()->GetXmin(),
254 meETLTrackEffPhiTotZneg->
getTH1()->GetXaxis()->GetXmax());
259 "Track Efficiency VS Pt (-Z, 2 hit);Pt [GeV];Efficiency",
261 meETLTrackEffPtTotZneg->
getTH1()->GetXaxis()->GetXmin(),
262 meETLTrackEffPtTotZneg->
getTH1()->GetXaxis()->GetXmax());
267 "Track Efficiency VS Eta (+Z, 2 hit);#eta;Efficiency",
269 meETLTrackEffEtaTotZpos->
getTH1()->GetXaxis()->GetXmin(),
270 meETLTrackEffEtaTotZpos->
getTH1()->GetXaxis()->GetXmax());
275 "Track Efficiency VS Phi (+Z, 2 hit);#phi [rad];Efficiency",
277 meETLTrackEffPhiTotZpos->
getTH1()->GetXaxis()->GetXmin(),
278 meETLTrackEffPhiTotZpos->
getTH1()->GetXaxis()->GetXmax());
283 "Track Efficiency VS Pt (+Z, 2 hit);Pt [GeV];Efficiency",
285 meETLTrackEffPtTotZpos->
getTH1()->GetXaxis()->GetXmin(),
286 meETLTrackEffPtTotZpos->
getTH1()->GetXaxis()->GetXmax());
290 if (meExtraPtMtd && meExtraPtEtl2Mtd && meExtraEtaMtd && meExtraEtaEtl2Mtd) {
292 "MTD matching efficiency wrt extrapolated track VS Pt;Pt [GeV];Efficiency",
294 meMVATrackEffPtTot->
getTH1()->GetXaxis()->GetXmin(),
295 meMVATrackEffPtTot->
getTH1()->GetXaxis()->GetXmax());
300 "MTD matching efficiency (2 ETL) wrt extrapolated track VS Pt;Pt [GeV];Efficiency",
302 meMVATrackEffPtTot->
getTH1()->GetXaxis()->GetXmin(),
303 meMVATrackEffPtTot->
getTH1()->GetXaxis()->GetXmax());
308 "MTD matching efficiency wrt extrapolated track VS Eta;Eta;Efficiency",
310 meMVATrackEffEtaTot->
getTH1()->GetXaxis()->GetXmin(),
311 meMVATrackEffEtaTot->
getTH1()->GetXaxis()->GetXmax());
316 "MTD matching efficiency (2 ETL) wrt extrapolated track VS Eta;Eta;Efficiency",
318 meMVATrackEffEtaTot->
getTH1()->GetXaxis()->GetXmin(),
319 meMVATrackEffEtaTot->
getTH1()->GetXaxis()->GetXmax());
325 "Track selected efficiency VS Pt;Pt [GeV];Efficiency",
327 meMVATrackEffPtTot->
getTH1()->GetXaxis()->GetXmin(),
328 meMVATrackEffPtTot->
getTH1()->GetXaxis()->GetXmax());
333 "Track selected efficiency VS Eta;Eta;Efficiency",
335 meMVATrackEffEtaTot->
getTH1()->GetXaxis()->GetXmin(),
336 meMVATrackEffEtaTot->
getTH1()->GetXaxis()->GetXmax());
341 "Track matched to GEN efficiency VS Pt;Pt [GeV];Efficiency",
343 meMVATrackMatchedEffPtTot->
getTH1()->GetXaxis()->GetXmin(),
344 meMVATrackMatchedEffPtTot->
getTH1()->GetXaxis()->GetXmax());
349 "Track matched to GEN efficiency VS Eta;Eta;Efficiency",
351 meMVATrackMatchedEffEtaTot->
getTH1()->GetXaxis()->GetXmin(),
352 meMVATrackMatchedEffEtaTot->
getTH1()->GetXaxis()->GetXmax());
357 "Track selected efficiency TP VS Pt;Pt [GeV];Efficiency",
359 meMVATrackEffPtTot->
getTH1()->GetXaxis()->GetXmin(),
360 meMVATrackEffPtTot->
getTH1()->GetXaxis()->GetXmax());
365 "Track selected efficiency TP VS Eta;Eta;Efficiency",
367 meMVATrackEffEtaTot->
getTH1()->GetXaxis()->GetXmin(),
368 meMVATrackEffEtaTot->
getTH1()->GetXaxis()->GetXmax());
373 "Track matched to TP efficiency VS Pt;Pt [GeV];Efficiency",
375 meTrackMatchedTPEffPtTot->
getTH1()->GetXaxis()->GetXmin(),
376 meTrackMatchedTPEffPtTot->
getTH1()->GetXaxis()->GetXmax());
381 "Track matched to TP efficiency VS Eta;Eta;Efficiency",
383 meTrackMatchedTPEffEtaTot->
getTH1()->GetXaxis()->GetXmin(),
384 meTrackMatchedTPEffEtaTot->
getTH1()->GetXaxis()->GetXmax());
389 "Track matched to TP efficiency VS Pt, 2 ETL hits;Pt [GeV];Efficiency",
391 meTrackMatchedTPEffPtTot->
getTH1()->GetXaxis()->GetXmin(),
392 meTrackMatchedTPEffPtTot->
getTH1()->GetXaxis()->GetXmax());
397 "Track matched to TP efficiency VS Eta, 2 ETL hits;Eta;Efficiency",
399 meTrackMatchedTPEffEtaTot->
getTH1()->GetXaxis()->GetXmin(),
400 meTrackMatchedTPEffEtaTot->
getTH1()->GetXaxis()->GetXmax());
405 "Track selected efficiency TP-mtd hit VS Pt;Pt [GeV];Efficiency",
407 meMVATrackEffPtTot->
getTH1()->GetXaxis()->GetXmin(),
408 meMVATrackEffPtTot->
getTH1()->GetXaxis()->GetXmax());
413 "Track selected efficiency TPmtd hit VS Eta;Eta;Efficiency",
415 meMVATrackEffEtaTot->
getTH1()->GetXaxis()->GetXmin(),
416 meMVATrackEffEtaTot->
getTH1()->GetXaxis()->GetXmax());
421 "Track matched to TP-mtd hit efficiency VS Pt;Pt [GeV];Efficiency",
422 meTrackMatchedTPmtdEffPtTot->
getNbinsX(),
423 meTrackMatchedTPmtdEffPtTot->
getTH1()->GetXaxis()->GetXmin(),
424 meTrackMatchedTPmtdEffPtTot->
getTH1()->GetXaxis()->GetXmax());
429 "Track matched to TP-mtd hit efficiency VS Eta;Eta;Efficiency",
430 meTrackMatchedTPmtdEffEtaTot->
getNbinsX(),
431 meTrackMatchedTPmtdEffEtaTot->
getTH1()->GetXaxis()->GetXmin(),
432 meTrackMatchedTPmtdEffEtaTot->
getTH1()->GetXaxis()->GetXmax());
437 "Fraction of tracks with MTD hits and no time associated; Num. of hits",
439 meTrackNumHits->
getTH1()->GetXaxis()->GetXmin(),
440 meTrackNumHits->
getTH1()->GetXaxis()->GetXmax());
447 for (
int i = 0;
i < 2;
i++) {
460 if (meExtraPtMtd && meExtraPtEtl2Mtd && meExtraEtaMtd && meExtraEtaEtl2Mtd) {
462 "MTD matching efficiency wrt extrapolated track VS Pt;Pt [GeV];Efficiency",
464 meMVATrackEffPtTot->
getTH1()->GetXaxis()->GetXmin(),
465 meMVATrackEffPtTot->
getTH1()->GetXaxis()->GetXmax());
470 "MTD matching efficiency (2 ETL) wrt extrapolated track VS Pt;Pt [GeV];Efficiency",
472 meMVATrackEffPtTot->
getTH1()->GetXaxis()->GetXmin(),
473 meMVATrackEffPtTot->
getTH1()->GetXaxis()->GetXmax());
478 "MTD matching efficiency wrt extrapolated track VS Eta;Eta;Efficiency",
480 meMVATrackEffEtaTot->
getTH1()->GetXaxis()->GetXmin(),
481 meMVATrackEffEtaTot->
getTH1()->GetXaxis()->GetXmax());
486 "MTD matching efficiency (2 ETL) wrt extrapolated track VS Eta;Eta;Efficiency",
488 meMVATrackEffEtaTot->
getTH1()->GetXaxis()->GetXmin(),
489 meMVATrackEffEtaTot->
getTH1()->GetXaxis()->GetXmax());
494 if (meExtraPhiAtBTL && meExtraPhiAtBTLmatched && meExtraBTLeneInCone && meExtraBTLfailExtenderEta &&
495 meExtraBTLfailExtenderPt) {
497 "Efficiency to match hits at BTL surface",
499 meExtraPhiAtBTL->
getTH1()->GetXaxis()->GetXmin(),
500 meExtraPhiAtBTL->
getTH1()->GetXaxis()->GetXmax());
507 ibook.
book1D(
"ExtraBTLfailExtenderEtaEff",
508 "Track extrapolated at BTL surface no extender efficiency VS Eta;Eta;Efficiency",
510 meTrackMatchedTPEffEtaTot->
getTH1()->GetXaxis()->GetXmin(),
511 meTrackMatchedTPEffEtaTot->
getTH1()->GetXaxis()->GetXmax());
516 ibook.
book1D(
"ExtraBTLfailExtenderPtEff",
517 "Track extrapolated at BTL surface no extender efficiency VS Pt;Pt [GeV];Efficiency",
519 meTrackMatchedTPEffPtTot->
getTH1()->GetXaxis()->GetXmin(),
520 meTrackMatchedTPEffPtTot->
getTH1()->GetXaxis()->GetXmax());
MonitorElement * meExtraPtEff_
MonitorElement * meTPEtaMatchEtl2Eff_
MonitorElement * meTPEtaSelEff_
MonitorElement * meExtraBTLfailExtenderEtaEff_
MonitorElement * meEtlEtaEff2_[2]
MonitorElement * meTPEtaMatchEff_
MonitorElement * meExtraEtaEtl2Eff_
MonitorElement * meMVAEtaMatchEff_
MonitorElement * meExtraPhiAtBTLEff_
Log< level::Error, false > LogError
MonitorElement * meTPmtdEtaMatchEff_
MonitorElement * meTPPtSelEff_
MonitorElement * meEtlPhiEff2_[2]
void computeEfficiency1D(MonitorElement *num, MonitorElement *den, MonitorElement *result)
MonitorElement * meMVAPtSelEff_
MonitorElement * meEtlPhiEff_[2]
MonitorElement * meTPPtMatchEtl2Eff_
MonitorElement * meMVAPtMatchEff_
MonitorElement * meExtraBTLfailExtenderPtEff_
MonitorElement * meEtlPtEff_[2]
const std::string folder_
MonitorElement * meBtlPtEff_
MonitorElement * meTPmtdEtaSelEff_
void normalize(MonitorElement *h, double scale)
MonitorElement * meTPPtMatchEff_
MonitorElement * meEtlPtEff2_[2]
MonitorElement * meExtraPtEtl2Eff_
MonitorElement * meExtraEtaEff_
MonitorElement * meBtlEtaEff_
virtual MonitorElement * get(std::string const &fullpath) const
virtual TH1 * getTH1() const
MonitorElement * meBtlPhiEff_
virtual int getNbinsX() const
get # of bins in X-axis
MonitorElement * meNoTimeFraction_
MonitorElement * book1D(TString const &name, TString const &title, int const nchX, double const lowX, double const highX, FUNC onbooking=NOOP())
MonitorElement * meMVAEtaSelEff_
MonitorElement * meEtlEtaEff_[2]
MonitorElement * meTPmtdPtSelEff_
MonitorElement * meTPmtdPtMatchEff_