Skip to content

Commit

Permalink
Merge pull request #38436 from AndreaBellora/12_3_5_patch1_pps_pixels…
Browse files Browse the repository at this point in the history
…_dqmonline_backport

Added plots for 2/3 aligned ROCs per BX, backport of PR #38435
  • Loading branch information
cmsbuild committed Jun 22, 2022
2 parents f46bc66 + cea61d7 commit 34ae41c
Showing 1 changed file with 10 additions and 0 deletions.
10 changes: 10 additions & 0 deletions DQM/CTPPS/plugins/CTPPSPixelDQMSource.cc
Original file line number Diff line number Diff line change
Expand Up @@ -89,6 +89,8 @@ class CTPPSPixelDQMSource : public DQMEDAnalyzer {
MonitorElement *hRPotActivPlanes[RPotsTotalNumber];
MonitorElement *hRPotActivBX[RPotsTotalNumber];
MonitorElement *hRPotActivBXroc[RPotsTotalNumber];
MonitorElement *hRPotActivBXroc_3[RPotsTotalNumber];
MonitorElement *hRPotActivBXroc_2[RPotsTotalNumber];
MonitorElement *h2HitsMultROC[RPotsTotalNumber];
MonitorElement *hp2HitsMultROC_LS[RPotsTotalNumber];
MonitorElement *hHitsMult[RPotsTotalNumber][NplaneMAX];
Expand Down Expand Up @@ -419,6 +421,10 @@ void CTPPSPixelDQMSource::bookHistograms(DQMStore::IBooker &ibooker, edm::Run co

hRPotActivBXroc[indexP] =
ibooker.book1D("4 fired ROCs per BX", rpTitle + ";Event.BX", 4002, -1.5, 4000. + 0.5);
hRPotActivBXroc_3[indexP] =
ibooker.book1D("3 fired ROCs per BX", rpTitle + ";Event.BX", 4002, -1.5, 4000. + 0.5);
hRPotActivBXroc_2[indexP] =
ibooker.book1D("2 fired ROCs per BX", rpTitle + ";Event.BX", 4002, -1.5, 4000. + 0.5);

hRPotActivBXall[indexP] = ibooker.book1D("hits per BX", rpTitle + ";Event.BX", 4002, -1.5, 4000. + 0.5);
}
Expand Down Expand Up @@ -753,6 +759,10 @@ void CTPPSPixelDQMSource::analyze(edm::Event const &event, edm::EventSetup const
max = planesFiredAtROC[r];
if (max >= 4 && onlinePlots) // fill only if there are at least 4 aligned ROCs firing
hRPotActivBXroc[index]->Fill(event.bunchCrossing());
if (max >= 3 && onlinePlots) // fill only if there are at least 3 aligned ROCs firing
hRPotActivBXroc_3[index]->Fill(event.bunchCrossing());
if (max >= 2 && onlinePlots) // fill only if there are at least 2 aligned ROCs firing
hRPotActivBXroc_2[index]->Fill(event.bunchCrossing());
} // end for(int rp=0; rp<NRPotsMAX; rp++) {
}
} // end for(int arm=0; arm<2; arm++) {
Expand Down

0 comments on commit 34ae41c

Please sign in to comment.