From 72df35bcd299c9681bccc144880129e1d962f183 Mon Sep 17 00:00:00 2001 From: Ho-Fung Tsoi Date: Fri, 25 Aug 2023 01:15:30 +0200 Subject: [PATCH] remove duplicate monitoring of FB at layer1 --- DQM/L1TMonitor/src/L1TdeStage2CaloLayer1.cc | 9 ++++++--- 1 file changed, 6 insertions(+), 3 deletions(-) diff --git a/DQM/L1TMonitor/src/L1TdeStage2CaloLayer1.cc b/DQM/L1TMonitor/src/L1TdeStage2CaloLayer1.cc index 3eabbf9a19452..dd2ec1f39ce84 100644 --- a/DQM/L1TMonitor/src/L1TdeStage2CaloLayer1.cc +++ b/DQM/L1TMonitor/src/L1TdeStage2CaloLayer1.cc @@ -4,6 +4,7 @@ * N. Smith */ //Modified by Bhawna Gomber +//Modified by Ho-Fung Tsoi #include "DQM/L1TMonitor/interface/L1TdeStage2CaloLayer1.h" @@ -115,10 +116,12 @@ void L1TdeStage2CaloLayer1::analyze(const edm::Event& event, const edm::EventSet etCorrelation_->Fill(dataTower.et(), emulTower.et()); + const uint32_t data_fb = dataTower.fb() & 0b1011; + const uint32_t emul_fb = emulTower.fb() & 0b1011; if (abs(dataTower.ieta_) >= 30) { - fbCorrelationHF_->Fill(dataTower.fb(), emulTower.fb()); + fbCorrelationHF_->Fill(data_fb, emul_fb); } else { - fbCorrelation_->Fill(dataTower.fb(), emulTower.fb()); + fbCorrelation_->Fill(data_fb, emul_fb); } if (dataTower.data_ == emulTower.data_) { @@ -149,7 +152,7 @@ void L1TdeStage2CaloLayer1::analyze(const edm::Event& event, const edm::EventSet erMsmThisEvent = true; updateMismatch(event, 1); } - if (dataTower.fb() != emulTower.fb()) { + if (data_fb != emul_fb) { failureOccFbMismatch_->Fill(dataTower.ieta_, dataTower.iphi_); fbMismatchByLumi_->Fill(event.id().luminosityBlock()); fbMismatchesPerBx_->Fill(event.bunchCrossing());