From 07c38dac7f22b33143404920072f3b023947a907 Mon Sep 17 00:00:00 2001 From: Francesca Ercolessi Date: Mon, 20 Oct 2025 12:36:16 +0200 Subject: [PATCH] [TOF] Fix bin range in Luminometer --- Modules/TOF/src/PostProcessingLuminometer.cxx | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/Modules/TOF/src/PostProcessingLuminometer.cxx b/Modules/TOF/src/PostProcessingLuminometer.cxx index 7adafaf9f1..6df1268ada 100644 --- a/Modules/TOF/src/PostProcessingLuminometer.cxx +++ b/Modules/TOF/src/PostProcessingLuminometer.cxx @@ -102,8 +102,8 @@ void PostProcessingLuminometer::update(Trigger t, framework::ServiceRegistryRef) TH1D* hproj = (TH1D*)htemp->ProjectionY(); hproj->SetName("decodErr_pro"); if (hproj->GetBinContent(1) > 0) { - hproj->Scale(0.1 / hproj->GetBinContent(1)); // normalize to the first bin content and divide by 10 (TRMs) - for (int ibin = 3; ibin < hproj->GetNbinsX() - 1; ibin++) { // count on TRM errors (skip last bin = DRM errors) + hproj->Scale(0.1 / hproj->GetBinContent(1)); // normalize to the first bin content and divide by 10 (TRMs) + for (int ibin = 3; ibin < hproj->GetNbinsX(); ibin++) { // count on TRM errors (skip last bin = DRM errors) decodingEff -= hproj->GetBinContent(ibin); } if (decodingEff < 1E-2) {