Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 2 additions & 2 deletions Modules/TOF/src/PostProcessingLuminometer.cxx
Original file line number Diff line number Diff line change
Expand Up @@ -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) {
Expand Down