Skip to content

Commit 942bd10

Browse files
ercolessiakavumpa
authored andcommitted
[TOF] Fix bin range in Luminometer (AliceO2Group#2613)
1 parent 6e50f7f commit 942bd10

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

Modules/TOF/src/PostProcessingLuminometer.cxx

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -102,8 +102,8 @@ void PostProcessingLuminometer::update(Trigger t, framework::ServiceRegistryRef)
102102
TH1D* hproj = (TH1D*)htemp->ProjectionY();
103103
hproj->SetName("decodErr_pro");
104104
if (hproj->GetBinContent(1) > 0) {
105-
hproj->Scale(0.1 / hproj->GetBinContent(1)); // normalize to the first bin content and divide by 10 (TRMs)
106-
for (int ibin = 3; ibin < hproj->GetNbinsX() - 1; ibin++) { // count on TRM errors (skip last bin = DRM errors)
105+
hproj->Scale(0.1 / hproj->GetBinContent(1)); // normalize to the first bin content and divide by 10 (TRMs)
106+
for (int ibin = 3; ibin < hproj->GetNbinsX(); ibin++) { // count on TRM errors (skip last bin = DRM errors)
107107
decodingEff -= hproj->GetBinContent(ibin);
108108
}
109109
if (decodingEff < 1E-2) {

0 commit comments

Comments
 (0)