Skip to content

Commit

Permalink
Merge pull request #41448 from dinyar/fix-loose_shower_in_dqm
Browse files Browse the repository at this point in the history
Add loose showers to uGMT shower bit vs. BX DQM plot
  • Loading branch information
cmsbuild authored Apr 28, 2023
2 parents 5e93c33 + 146f4c6 commit caeae41
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -52,6 +52,7 @@ class L1TStage2uGMTInputBxDistributions : public DQMEDAnalyzer {
MonitorElement* ugmtEMTFBXvsProcessor;
MonitorElement* ugmtBXvsLink;

static constexpr unsigned IDX_LOOSE_SHOWER{3};
static constexpr unsigned IDX_TIGHT_SHOWER{2};
static constexpr unsigned IDX_NOMINAL_SHOWER{1};
};
Expand Down
8 changes: 7 additions & 1 deletion DQM/L1TMonitor/src/L1TStage2uGMTInputBxDistributions.cc
Original file line number Diff line number Diff line change
Expand Up @@ -63,9 +63,10 @@ void L1TStage2uGMTInputBxDistributions::bookHistograms(DQMStore::IBooker& ibooke
ibooker.setCurrentFolder(monitorDir_ + "/EMTFInput/Muon showers");

ugmtEMTFShowerTypeOccupancyPerBx =
ibooker.book2D("ugmtEMTFShowerTypeOccupancyPerBx", "Shower type occupancy per BX", 7, -3.5, 3.5, 2, 1, 3);
ibooker.book2D("ugmtEMTFShowerTypeOccupancyPerBx", "Shower type occupancy per BX", 7, -3.5, 3.5, 3, 1, 4);
ugmtEMTFShowerTypeOccupancyPerBx->setAxisTitle("BX", 1);
ugmtEMTFShowerTypeOccupancyPerBx->setAxisTitle("Shower type", 2);
ugmtEMTFShowerTypeOccupancyPerBx->setBinLabel(IDX_LOOSE_SHOWER, "Loose", 2);
ugmtEMTFShowerTypeOccupancyPerBx->setBinLabel(IDX_TIGHT_SHOWER, "Tight", 2);
ugmtEMTFShowerTypeOccupancyPerBx->setBinLabel(IDX_NOMINAL_SHOWER, "Nominal", 2);

Expand Down Expand Up @@ -215,6 +216,11 @@ void L1TStage2uGMTInputBxDistributions::analyze(const edm::Event& e, const edm::
itBX, shower->processor() + 1 + (shower->trackFinderType() == l1t::tftype::emtf_pos ? 6 : 0));
ugmtEMTFShowerTypeOccupancyPerBx->Fill(itBX, IDX_TIGHT_SHOWER);
}
if (shower->isOneLooseInTime()) {
ugmtEMTFShowerSectorOccupancyPerBx->Fill(
itBX, shower->processor() + 1 + (shower->trackFinderType() == l1t::tftype::emtf_pos ? 6 : 0));
ugmtEMTFShowerTypeOccupancyPerBx->Fill(itBX, IDX_LOOSE_SHOWER);
}
}
}
}
Expand Down

0 comments on commit caeae41

Please sign in to comment.