5 #include <unordered_map> 39 #include "TLorentzVector.h" 44 std::pair<MonitorElement*, bool>
nME;
45 std::pair<MonitorElement*, bool>
etaME;
46 std::pair<MonitorElement*, bool>
phiME;
47 std::pair<MonitorElement*, bool>
ptME;
48 std::pair<MonitorElement*, bool>
massME;
50 std::pair<MonitorElement*, bool>
csvME;
54 std::pair<MonitorElement*, bool>
mrME;
55 std::pair<MonitorElement*, bool>
rsqME;
56 std::pair<MonitorElement*, bool>
dxyME;
57 std::pair<MonitorElement*, bool>
dzME;
59 std::pair<MonitorElement*, bool>
dRME;
61 std::pair<MonitorElement*, bool>
q1q2ME;
95 using std::unordered_map;
111 bool isHEP17(
double eta,
double phi);
112 bool isHEM17(
double eta,
double phi);
149 const double MASS_MU = .105658;
157 double MAX_PHI = 3.2;
172 double MAX_PHI_HEP17 = -0.52;
173 double MIN_PHI_HEP17 = -0.87;
175 const MEbinning phi_binning_hep17_{N_PHI_HEP17, MIN_PHI_HEP17, MAX_PHI_HEP17};
176 double MAX_ETA_HEP17 = 3.0;
177 double MIN_ETA_HEP17 = 1.3;
179 const MEbinning eta_binning_hep17_{N_ETA_HEP17, MIN_ETA_HEP17, MAX_ETA_HEP17};
181 const MEbinning eta_binning_hem17_{N_ETA_HEP17, -MAX_ETA_HEP17, MIN_ETA_HEP17};
192 return hltPlot{std::make_pair<MonitorElement*, bool>(
nullptr,
false),
193 std::make_pair<MonitorElement*, bool>(
nullptr, pset.
getParameter<
bool>(
"displayInPrimary_eta")),
194 std::make_pair<MonitorElement*, bool>(
nullptr, pset.
getParameter<
bool>(
"displayInPrimary_phi")),
195 std::make_pair<MonitorElement*, bool>(
nullptr, pset.
getParameter<
bool>(
"displayInPrimary_pt")),
196 std::make_pair<MonitorElement*, bool>(
nullptr, pset.
getParameter<
bool>(
"displayInPrimary_mass")),
197 std::make_pair<MonitorElement*, bool>(
nullptr, pset.
getParameter<
bool>(
"displayInPrimary_energy")),
198 std::make_pair<MonitorElement*, bool>(
nullptr, pset.
getParameter<
bool>(
"displayInPrimary_csv")),
199 std::make_pair<MonitorElement*, bool>(
nullptr, pset.
getParameter<
bool>(
"displayInPrimary_etaVSphi")),
200 std::make_pair<MonitorElement*, bool>(
nullptr, pset.
getParameter<
bool>(
"displayInPrimary_pt_HEP17")),
201 std::make_pair<MonitorElement*, bool>(
nullptr, pset.
getParameter<
bool>(
"displayInPrimary_pt_HEM17")),
202 std::make_pair<MonitorElement*, bool>(
nullptr, pset.
getParameter<
bool>(
"displayInPrimary_MR")),
203 std::make_pair<MonitorElement*, bool>(
nullptr, pset.
getParameter<
bool>(
"displayInPrimary_RSQ")),
204 std::make_pair<MonitorElement*, bool>(
nullptr, pset.
getParameter<
bool>(
"displayInPrimary_dxy")),
205 std::make_pair<MonitorElement*, bool>(
nullptr, pset.
getParameter<
bool>(
"displayInPrimary_dz")),
206 std::make_pair<MonitorElement*, bool>(
nullptr, pset.
getParameter<
bool>(
"displayInPrimary_dimass")),
207 std::make_pair<MonitorElement*, bool>(
nullptr,
false),
208 std::make_pair<MonitorElement*, bool>(
nullptr,
false),
209 std::make_pair<MonitorElement*, bool>(
nullptr,
false),
221 pset.
getParameter<std::vector<double>>(
"dimassBINNING"),
237 for (
const auto&
pset : plotPSETS_)
238 hltPlots_.push_back(getPlotPSet(
pset));
242 if ((eta >= MIN_ETA_HEP17 && eta <= MAX_ETA_HEP17) && (phi >= MIN_PHI_HEP17 && phi <= MAX_PHI_HEP17))
248 if ((eta >= -MAX_ETA_HEP17 && eta <= -MIN_ETA_HEP17) && (phi >= MIN_PHI_HEP17 && phi <= MAX_PHI_HEP17))
257 : TopFolder_(iConfig.getParameter<
std::
string>(
"TopFolder")),
258 label_(iConfig.getParameter<
std::
string>(
"label")),
259 processName_(iConfig.getParameter<
std::
string>(
"processName")),
261 debug_(iConfig.getUntrackedParameter<
bool>(
"debug",
false)),
264 beamSpot_(iConfig.getParameter<
edm::
InputTag>(
"beamspot")),
268 muCandidates_(iConfig.getParameter<
edm::
InputTag>(
"muCandidates")),
269 muCandidatesToken_(consumes<
std::vector<
reco::RecoChargedCandidate>>(muCandidates_)),
270 eleCandidates_(iConfig.getParameter<
edm::
InputTag>(
"eleCandidates")),
271 eleCandidatesToken_(consumes<
std::vector<
reco::RecoChargedCandidate>>(eleCandidates_)) {
325 if (
plot.pathIDX <= 0)
331 if (not plottedPathIndices[
index]) {
332 plottedPathIndices[
index] =
true;
334 std::cout <<
plot.pathNAME <<
" --> bin: " << ibin << std::endl;
340 std::cout <<
"objects: " << objects.size() << std::endl;
342 bool moduleFOUND =
false;
344 for (
const auto&
module : moduleNames) {
349 std::cout <<
plot.moduleNAME << (moduleFOUND ?
"" :
"NOT") <<
" found in the list of modules" << std::endl;
352 for (
const auto&
module : moduleNames) {
355 if (idx < triggerEvent->sizeFilters())
362 unsigned int moduleIDX = triggerEvent->
filterIndex(moduleName);
364 std::cout <<
"moduleNAME: " <<
plot.moduleNAME <<
" --> " << moduleIDX << std::endl;
368 <<
plot.pathNAME <<
" " <<
plot.moduleNAME
369 <<
" is not available ! please, fix update DQM/HLTEvF/python/HLTObjectsMonitor_cfi.py";
375 std::cout <<
"keys: " << keys.size() << std::endl;
377 plot.nME.first->Fill(keys.size());
381 for (
const auto&
key : keys) {
382 double pt = objects[
key].pt();
383 double eta = objects[
key].eta();
384 double phi = objects[
key].phi();
385 double mass = objects[
key].mass();
387 int id = objects[
key].id();
389 std::cout <<
"object ID " <<
id <<
" mass: " << mass << std::endl;
392 plot.ptME.first->Fill(pt);
394 plot.etaME.first->Fill(eta);
395 plot.phiME.first->Fill(phi);
397 if (
plot.doPlotCSV) {
400 plot.csvME.first->Fill(-10.);
402 for (
auto it = caloJetBTags->
begin(); it != caloJetBTags->
end(); ++it) {
403 double dR =
deltaR(eta, phi, it->first->eta(), it->first->phi());
405 std::cout <<
"[HLTObjectsMonitor::analyze] deltaR: " << dR <<
" matched ? " 406 << (dR <= 0.4 ?
"YEAP" :
"NOPE") << std::endl;
407 plot.csvME.first->Fill(it->second);
411 }
else if (
plot.doPF) {
413 plot.csvME.first->Fill(-10.);
415 for (
auto it = pfJetBTags->
begin(); it != pfJetBTags->
end(); ++it) {
416 double dR =
deltaR(eta, phi, it->first->eta(), it->first->phi());
418 std::cout <<
"[HLTObjectsMonitor::analyze] deltaR: " << dR <<
" matched ? " 419 << (dR <= 0.4 ?
"YEAP" :
"NOPE") << std::endl;
420 plot.csvME.first->Fill(it->second);
426 plot.massME.first->Fill(mass);
427 if (
plot.doPlotENERGY)
428 plot.energyME.first->Fill(energy);
430 plot.etaVSphiME.first->Fill(eta, phi);
431 if (
plot.doPlotHEP17) {
433 plot.ptMEhep17.first->Fill(pt);
435 plot.ptMEhem17.first->Fill(pt);
439 MR = objects[
key].px();
440 RSQ = objects[
key].py();
443 if (
plot.doPlotDXY) {
446 dxy =
dxyFinder(eta, phi, muCandidates, beamspot, 0.1);
448 dxy =
dxyFinder(eta, phi, eleCandidates, beamspot, 0.1);
449 plot.dxyME.first->Fill(dxy);
452 if (
plot.doPlotRazor) {
453 plot.mrME.first->Fill(MR);
454 plot.rsqME.first->Fill(RSQ);
457 if (keys.size() < 2) {
458 if (
plot.doPlotDiMass ||
plot.doPlotDZ)
459 LogDebug(
"HLTObjectsMonitor") <<
plot.pathNAME <<
" " <<
plot.moduleNAME <<
" # objects is (" << keys.size()
460 <<
") less than 2 ! you probably want to either change the moduleNAME or " 461 "switch off di-object system plots (doPlotDZ: " 462 <<
plot.doPlotDZ <<
" doPlotDiMass: " <<
plot.doPlotDiMass
463 <<
") in DQM/HLTEvF/python/HLTObjectsMonitor_cfi.py)";
465 for (
const auto&
key : keys) {
466 double pt = objects[
key].pt();
467 double eta = objects[
key].eta();
468 double phi = objects[
key].phi();
469 int id = objects[
key].id();
471 unsigned int kCnt0 = 0;
475 v1.SetPtEtaPhiM(pt, eta, phi,
MASS_MU);
477 v1.SetPtEtaPhiM(pt, eta, phi, 0);
479 unsigned int kCnt1 = 0;
480 for (
const auto& key1 : keys) {
484 double pt2 = objects[key1].phi();
485 double eta2 = objects[key1].eta();
486 double phi2 = objects[key1].phi();
487 int id2 = objects[key1].id();
489 double dR =
deltaR(eta, phi, eta2, phi2);
490 plot.dRME.first->Fill(dR);
491 plot.dRetaVSphiME.first->Fill(eta, phi, dR);
493 int q1 = (
id == 0 ? 0 :
id /
abs(
id));
494 int q2 = (id2 == 0 ? 0 : id2 /
abs(id2));
496 plot.q1q2ME.first->Fill(q1q2);
500 <<
plot.pathNAME <<
" " <<
plot.moduleNAME <<
" objects have different ID !?!" <<
abs(
id)
501 <<
" and " <<
abs(id2);
503 if ((
id + id2) == 0) {
507 v2.SetPtEtaPhiM(pt2, eta2, phi2,
MASS_MU);
509 v2.SetPtEtaPhiM(pt2, eta2, phi2, 0);
511 if (
plot.doPlotDiMass) {
512 TLorentzVector
v = v1 + v2;
513 plot.dimassME.first->Fill(v.M());
519 dz =
dzFinder(eta, phi, eta2, phi2, muCandidates, 0.1);
521 dz =
dzFinder(eta, phi, eta2, phi2, eleCandidates, 0.1);
522 plot.dzME.first->Fill(dz);
541 std::cout <<
"[HLTObjectsMonitor::dqmBeginRun] extracting HLTconfig" << std::endl;
548 std::cout <<
"[HLTObjectsMonitor::dqmBeginRun] triggerPaths: " << triggerPaths.size() <<
" <--> " 551 for (
const auto&
pathName : triggerPaths) {
558 if (
plot.pathNAME == pathName_noVersion) {
561 if (
plot.pathIDX <= 0 ||
plot.pathIDX ==
int(triggerPaths.size()))
569 std::cout <<
"plot: " <<
plot.pathNAME <<
" --> pathIDX: " <<
plot.pathIDX << std::endl;
570 std::cout <<
"[HLTObjectsMonitor::dqmBeginRun] DONE" << std::endl;
578 std::cout <<
"[HLTObjectsMonitor::bookHistograms]" << std::endl;
587 std::unordered_map<std::string, int> uniqueNames;
596 for (
auto const&
p : hltPlots_) {
602 std::cout <<
p.pathNAME <<
" --> bin: " << i << std::endl;
609 std::cout <<
"booking plots for " <<
plot.label << std::endl;
611 if (
plot.pathIDX <= 0) {
613 <<
" is not available in the HLT menu ! no plots are going to be booked for it " 614 "(update DQM/HLTEvF/python/HLTObjectsMonitor_cfi.py)";
618 std::cout <<
"booking histograms for " <<
plot.pathNAME << std::endl;
626 name =
plot.label +
"_nobjects";
627 title =
plot.pathNAME +
" # objects";
628 plot.nME.first = ibooker.
book1D(name, title, 20, -0.5, 19.5);
629 plot.nME.first->setAxisTitle(
plot.xTITLE +
" # objects");
632 if (
plot.ptME.second)
637 name =
plot.label +
"_pt";
638 title =
plot.pathNAME +
" p_T";
640 std::vector<float> fbinning((
plot.ptBINNING).begin(), (
plot.ptBINNING).
end());
641 float* arr = &fbinning[0];
642 plot.ptME.first = ibooker.
book1D(name, title, nbins, arr);
643 plot.ptME.first->setAxisTitle(
plot.xTITLE +
" p_{T} [GeV]");
646 if (
plot.phiME.second)
651 name =
plot.label +
"_phi";
652 title =
plot.pathNAME +
" #phi";
653 int nbins = (
plot.phiBINNING).
size() - 1;
654 std::vector<float> fbinning((
plot.phiBINNING).begin(), (
plot.phiBINNING).
end());
655 float* arr = &fbinning[0];
656 plot.phiME.first = ibooker.
book1D(name, title, nbins, arr);
657 plot.phiME.first->setAxisTitle(
plot.xTITLE +
" #phi [rad]");
660 if (
plot.doPlotETA) {
661 if (
plot.etaME.second)
666 name =
plot.label +
"_eta";
667 title =
plot.pathNAME +
" #eta";
668 int nbins = (
plot.etaBINNING).
size() - 1;
669 std::vector<float> fbinning((
plot.etaBINNING).begin(), (
plot.etaBINNING).
end());
670 float* arr = &fbinning[0];
672 plot.etaME.first = ibooker.
book1D(name, title, nbins, arr);
673 plot.etaME.first->setAxisTitle(
plot.xTITLE +
" #eta");
676 if (
plot.doPlotMASS) {
677 if (
plot.massME.second)
682 name =
plot.label +
"_mass";
683 title =
plot.pathNAME +
" mass";
684 int nbins = (
plot.massBINNING).
size() - 1;
685 std::vector<float> fbinning((
plot.massBINNING).begin(), (
plot.massBINNING).
end());
686 float* arr = &fbinning[0];
688 plot.massME.first = ibooker.
book1D(name, title, nbins, arr);
689 plot.massME.first->setAxisTitle(
plot.xTITLE +
" mass [GeV]");
692 if (
plot.doPlotENERGY) {
693 if (
plot.energyME.second)
698 name =
plot.label +
"_energy";
699 title =
plot.pathNAME +
" energy";
700 int nbins = (
plot.ptBINNING).
size() - 1;
701 std::vector<float> fbinning((
plot.ptBINNING).begin(), (
plot.ptBINNING).
end());
702 float* arr = &fbinning[0];
704 plot.energyME.first = ibooker.
book1D(name, title, nbins, arr);
705 plot.energyME.first->setAxisTitle(
plot.xTITLE +
" energy [GeV]");
708 if (
plot.doPlotCSV) {
709 if (
plot.csvME.second)
714 name =
plot.label +
"_csv";
715 title =
plot.pathNAME +
" CSV";
718 plot.csvME.first->setAxisTitle(
plot.xTITLE +
" CSV discriminator");
722 if (
plot.etaVSphiME.second)
727 name =
plot.label +
"_etaVSphi";
728 title =
plot.pathNAME +
" #eta vs #phi";
730 std::vector<float> fbinningX((
plot.etaBINNING).begin(), (
plot.etaBINNING).
end());
731 float* arrX = &fbinningX[0];
734 std::vector<float> fbinningY((
plot.phiBINNING).begin(), (
plot.phiBINNING).
end());
735 float* arrY = &fbinningY[0];
736 plot.etaVSphiME.first = ibooker.
book2D(name, title, nbinsX, arrX, nbinsY, arrY);
737 plot.etaVSphiME.first->setAxisTitle(
plot.xTITLE +
" #eta", 1);
738 plot.etaVSphiME.first->setAxisTitle(
plot.xTITLE +
" #phi", 2);
741 if (
plot.doPlotHEP17) {
742 if (
plot.ptMEhep17.second)
747 int nbins = (
plot.ptBINNING).
size() - 1;
748 std::vector<float> fbinning((
plot.ptBINNING).begin(), (
plot.ptBINNING).
end());
749 float* arr = &fbinning[0];
751 name =
plot.label +
"_pt_HEP17";
752 title =
plot.pathNAME +
" p_{T} HEP17";
753 plot.ptMEhep17.first = ibooker.
book1D(name, title, nbins, arr);
754 plot.ptMEhep17.first->setAxisTitle(
plot.xTITLE +
" p_{T} [GeV]", 1);
756 if (
plot.ptMEhem17.second)
761 name =
plot.label +
"_pt_HEM17";
762 title =
plot.pathNAME +
" p_{T} HEM17";
763 plot.ptMEhem17.first = ibooker.
book1D(name, title, nbins, arr);
764 plot.ptMEhem17.first->setAxisTitle(
plot.xTITLE +
" p_{T} [GeV]", 1);
767 if (
plot.doPlotRazor) {
768 if (
plot.mrME.second)
773 name =
plot.label +
"_mr";
774 title =
plot.pathNAME +
" M_{R}";
775 plot.mrME.first = ibooker.
book1D(name, title, 100, 0., 100.);
776 plot.mrME.first->setAxisTitle(
plot.xTITLE +
" M_{R} [GeV]", 1);
778 if (
plot.rsqME.second)
783 name =
plot.label +
"_rsq";
784 title =
plot.pathNAME +
" RSQ";
785 plot.rsqME.first = ibooker.
book1D(name, title, 100, 0., 100.);
786 plot.rsqME.first->setAxisTitle(
plot.xTITLE +
" RSQ [GeV]", 1);
789 if (
plot.doPlotDXY) {
790 if (
plot.dxyME.second)
795 name =
plot.label +
"_dxy";
796 title =
plot.pathNAME +
" d_{xy}";
797 int nbins = (
plot.dxyBINNING).
size() - 1;
798 std::vector<float> fbinning((
plot.dxyBINNING).begin(), (
plot.dxyBINNING).
end());
799 float* arr = &fbinning[0];
800 plot.dxyME.first = ibooker.
book1D(name, title, nbins, arr);
801 plot.dxyME.first->setAxisTitle(
plot.xTITLE +
" d_{xy} [cm]");
805 if (
plot.dzME.second)
810 name =
plot.label +
"_dz";
811 title =
plot.pathNAME +
" d_{z}";
812 int nbins = (
plot.dzBINNING).
size() - 1;
813 std::vector<float> fbinning((
plot.dzBINNING).begin(), (
plot.dzBINNING).
end());
814 float* arr = &fbinning[0];
815 plot.dzME.first = ibooker.
book1D(name, title, nbins, arr);
816 plot.dzME.first->setAxisTitle(
plot.xTITLE +
" d_{z} [cm]");
819 if (
plot.dRME.second)
824 name =
plot.label +
"_dR";
825 title =
plot.pathNAME +
" di-object dR";
826 plot.dRME.first = ibooker.
book1D(name, title, 50, 0., 5.);
827 plot.dRME.first->setAxisTitle(
plot.xTITLE +
" dR_{obj,obj}");
829 if (
plot.dRetaVSphiME.second)
834 name =
plot.label +
"_dR_etaVSphi";
835 title =
plot.pathNAME +
" di-object dR in the #eta-#phi plane (of 1st obj)";
836 plot.dRetaVSphiME.first = ibooker.
bookProfile2D(name, title, 60, -3., 3., 64, -3.2, 3.2, 0., 5.);
837 plot.dRetaVSphiME.first->setAxisTitle(
plot.xTITLE +
" #eta", 1);
838 plot.dRetaVSphiME.first->setAxisTitle(
plot.xTITLE +
" #phi", 2);
839 plot.dRetaVSphiME.first->setAxisTitle(
plot.xTITLE +
" dR_{obj,obj}", 3);
841 if (
plot.q1q2ME.second)
846 name =
plot.label +
"_q1q2";
847 title =
plot.pathNAME +
" di-object q1xq2";
848 plot.q1q2ME.first = ibooker.
book1D(name, title, 3, -1., 1.);
849 plot.q1q2ME.first->setAxisTitle(
plot.xTITLE +
" q_{obj1} x q_{obj2}");
851 if (
plot.doPlotDiMass) {
852 if (
plot.dimassME.second)
857 name =
plot.label +
"_dimass";
858 title =
plot.pathNAME +
" di-object mass";
859 int nbins = (
plot.dimassBINNING).
size() - 1;
860 std::vector<float> fbinning((
plot.dimassBINNING).begin(), (
plot.dimassBINNING).
end());
861 float* arr = &fbinning[0];
862 plot.dimassME.first = ibooker.
book1D(name, title, nbins, arr);
863 plot.dimassME.first->setAxisTitle(
plot.xTITLE +
" m_{obj,obj} [GeV]");
868 std::cout <<
"[HLTObjectsMonitor::bookHistograms] DONE" << std::endl;
875 double dRcut = 0.1) {
879 <<
" is not valid ! please, update DQM/HLTEvF/python/HLTObjectsMonitor_cfi.py" 880 <<
" by switching OFF doPlotDXY or updating the InputTag collection";
885 <<
" is not valid ! please, update DQM/HLTEvF/python/HLTObjectsMonitor_cfi.py" 886 <<
" by switching OFF doPlotDXY or updating the InputTag collection";
891 for (reco::RecoChargedCandidateCollection::const_iterator candidate = candidates->begin();
892 candidate != candidates->end();
894 if (
deltaR(eta, phi, candidate->eta(), candidate->phi()) < dRcut) {
896 dxy = (-(candidate->vx() - beamspot->
x0()) * candidate->py() +
897 (candidate->vy() - beamspot->
y0()) * candidate->px()) /
903 edm::LogWarning(
"HLTObjectsMonitor") <<
"trigger object does not match ( dR > " << dRcut
904 <<
") to any of the candidates in either " <<
muCandidates_ <<
" or " 915 double dRcut = 0.1) {
919 <<
" is not valid ! please, update DQM/HLTEvF/python/HLTObjectsMonitor_cfi.py" 920 <<
" by switching OFF doPlotDZ or updating the InputTag collection";
926 bool matched1 =
false;
927 bool matched2 =
false;
928 for (reco::RecoChargedCandidateCollection::const_iterator candidate = candidates->begin();
929 candidate != candidates->end();
931 if (
deltaR(eta1, phi1, candidate->eta(), candidate->phi()) < dRcut) {
935 std::cout <<
"cand1: " << cand1->
pt() <<
" " << cand1->
eta() <<
" " << cand1->
phi() << std::endl;
940 LogDebug(
"HLTObjectsMonitor") <<
"trigger object1 does not match ( dR > " << dRcut
941 <<
") to any of the candidates in either " <<
muCandidates_ <<
" or " 946 for (reco::RecoChargedCandidateCollection::const_iterator candidate = candidates->begin();
947 candidate != candidates->end();
950 std::cout <<
"candidate: " << candidate->pt() <<
" cand1: " << cand1->
pt() << std::endl;
951 std::cout <<
"candidate: " << candidate->eta() <<
" cand1: " << cand1->
eta() << std::endl;
952 std::cout <<
"candidate: " << candidate->phi() <<
" cand1: " << cand1->
phi() << std::endl;
954 if (&*candidate == cand1)
957 if (
deltaR(eta2, phi2, candidate->eta(), candidate->phi()) < dRcut) {
961 std::cout <<
"cand2: " << cand2->
pt() <<
" " << cand2->
eta() <<
" " << cand2->
phi() << std::endl;
966 LogDebug(
"HLTObjectsMonitor") <<
"trigger object2 does not match ( dR > " << dRcut
967 <<
") to any of the candidates in either " <<
muCandidates_ <<
" or " 972 dz = cand1->
vz() - cand2->
vz();
edm::EDGetTokenT< reco::JetTagCollection > pfJetBTagsToken_
MonitorElement * book1D(TString const &name, TString const &title, int const nchX, double const lowX, double const highX)
T getParameter(std::string const &) const
T getUntrackedParameter(std::string const &, T const &) const
std::vector< double > phiBINNING
bool saveTags(const std::string &module) const
Is module an L3 filter (ie, tracked saveTags=true)
std::vector< hltPlot > hltPlots_
std::string backupFolder_
double eta() const final
momentum pseudorapidity
edm::EDGetTokenT< edm::TriggerResults > triggerResultsToken_
std::pair< MonitorElement *, bool > energyME
std::unordered_map< std::string, int > plotNamesToBins_
trigger::size_type sizeFilters() const
const MEbinning csv_binning_
edm::InputTag muCandidates_
edm::EDGetTokenT< reco::JetTagCollection > caloJetBTagsToken_
std::vector< double > etaBINNING
bool getByToken(EDGetToken token, Handle< PROD > &result) const
std::vector< double > dimassBINNING
static hltPlot getPlotPSet(edm::ParameterSet pset)
void setCurrentFolder(std::string const &fullpath)
std::pair< MonitorElement *, bool > csvME
bool accept() const
Has at least one path accepted the event?
std::pair< MonitorElement *, bool > ptME
const std::vector< std::string > & triggerNames() const
names of trigger paths
const Keys & filterKeys(trigger::size_type index) const
trigger::size_type filterIndex(const edm::InputTag &filterTag) const
find index of filter in data-member vector from filter tag
edm::EDGetTokenT< reco::BeamSpot > beamSpotToken_
void dqmBeginRun(edm::Run const &, edm::EventSetup const &) override
std::pair< MonitorElement *, bool > etaVSphiME
const_iterator end() const
double pt() const final
transverse momentum
std::pair< MonitorElement *, bool > ptMEhem17
std::pair< MonitorElement *, bool > q1q2ME
std::pair< MonitorElement *, bool > phiME
JetFloatAssociation::Container JetTagCollection
dqm::reco::MonitorElement MonitorElement
example_stream void analyze(const edm::Event &, const edm::EventSetup &) override
static const std::string removeVersion(const std::string &trigger)
unsigned int triggerIndex(const std::string &triggerName) const
slot position of trigger path in trigger table (0 to size-1)
void bookHistograms(DQMStore::IBooker &i, edm::Run const &, edm::EventSetup const &) override
edm::EDGetTokenT< std::vector< reco::RecoChargedCandidate > > eleCandidatesToken_
bool isHEP17(double eta, double phi)
#define DEFINE_FWK_MODULE(type)
HLTObjectsMonitor(const edm::ParameterSet &)
edm::InputTag eleCandidates_
const TriggerObjectCollection & getObjects() const
double dxyFinder(double, double, edm::Handle< reco::RecoChargedCandidateCollection >, edm::Handle< reco::BeamSpot >, double)
std::pair< MonitorElement *, bool > etaME
Abs< T >::type abs(const T &t)
MonitorElement * bookProfile2D(TString const &name, TString const &title, int nchX, double lowX, double highX, int nchY, double lowY, double highY, double lowZ, double highZ, char const *option="s")
static std::string const triggerResults
virtual void setBinLabel(int bin, const std::string &label, int axis=1)
set bin label for x, y or z axis (axis=1, 2, 3 respectively)
std::vector< double > massBINNING
std::pair< MonitorElement *, bool > rsqME
double vz() const override
z coordinate of vertex position
std::vector< double > dzBINNING
const std::vector< std::string > & moduleLabels(unsigned int trigger) const
label(s) of module(s) on a trigger path
std::pair< MonitorElement *, bool > mrME
std::vector< TriggerObject > TriggerObjectCollection
collection of trigger physics objects (e.g., all isolated muons)
std::pair< MonitorElement *, bool > ptMEhep17
std::vector< size_type > Keys
bool init(const edm::Run &iRun, const edm::EventSetup &iSetup, const std::string &processName, bool &changed)
d'tor
HLTConfigProvider hltConfig_
example_stream void bookHistograms(DQMStore::IBooker &,@example_stream edm::Run const &,@example_stream edm::EventSetup const &) override
edm::EDGetTokenT< std::vector< reco::RecoChargedCandidate > > muCandidatesToken_
std::pair< MonitorElement *, bool > dzME
bool isHEM17(double eta, double phi)
std::pair< MonitorElement *, bool > dimassME
std::pair< MonitorElement *, bool > dxyME
std::pair< MonitorElement *, bool > nME
std::vector< double > phi_variable_binning_
MonitorElement * eventsPlot_
MonitorElement * book2D(TString const &name, TString const &title, int nchX, double lowX, double highX, int nchY, double lowY, double highY)
std::pair< MonitorElement *, bool > dRetaVSphiME
std::vector< edm::ParameterSet > plotPSETS_
void analyze(const edm::Event &, const edm::EventSetup &) override
double y0() const
y coordinate
double dzFinder(double, double, double, double, edm::Handle< reco::RecoChargedCandidateCollection >, double)
std::pair< MonitorElement *, bool > dRME
std::pair< MonitorElement *, bool > massME
static std::string const triggerPaths
double phi() const final
momentum azimuthal angle
const_iterator begin() const
std::vector< double > dxyBINNING
edm::EDGetTokenT< trigger::TriggerEvent > triggerEventToken_
std::vector< double > ptBINNING
double x0() const
x coordinate
virtual void setAxisTitle(const std::string &title, int axis=1)
set x-, y- or z-axis title (axis=1, 2, 3 respectively)