From 8b3c808c38cab9334adfb109aa05e4479c7db7b1 Mon Sep 17 00:00:00 2001
From: Stanislav Polacek <stanislav.polacek@cern.ch>
Date: Mon, 3 May 2021 20:59:43 +0200
Subject: [PATCH 1/2] fixed average dmu time calculation

---
 TileCalorimeter/TileRecUtils/src/TileTimeBCOffsetFilter.cxx | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)

diff --git a/TileCalorimeter/TileRecUtils/src/TileTimeBCOffsetFilter.cxx b/TileCalorimeter/TileRecUtils/src/TileTimeBCOffsetFilter.cxx
index d5577a644463..f1223e9b7876 100644
--- a/TileCalorimeter/TileRecUtils/src/TileTimeBCOffsetFilter.cxx
+++ b/TileCalorimeter/TileRecUtils/src/TileTimeBCOffsetFilter.cxx
@@ -266,7 +266,7 @@ TileTimeBCOffsetFilter::process (TileMutableRawChannelContainer& rchCont, const
             }
           }
         }
-        if (time_dmu_same) {
+        if (time_dmu_same && n_dmu_aver != 0) {
           time_dmu_aver /= n_dmu_aver;
           ATH_MSG_VERBOSE( "Average time "<< time_dmu_aver);
           
@@ -472,4 +472,4 @@ float TileTimeBCOffsetFilter::ref_digits_maxmindiff(int ros, int drawer, int ref
     }
   } // end of loop over drawers
   return max_min_diff;
-}
\ No newline at end of file
+}
-- 
GitLab


From 8865e2ba94ff1a2ef66585223df3bdda338f2186 Mon Sep 17 00:00:00 2001
From: Stanislav Polacek <stanislav.polacek@cern.ch>
Date: Tue, 4 May 2021 10:25:32 +0200
Subject: [PATCH 2/2] brackets in time condition

---
 TileCalorimeter/TileRecUtils/src/TileTimeBCOffsetFilter.cxx | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/TileCalorimeter/TileRecUtils/src/TileTimeBCOffsetFilter.cxx b/TileCalorimeter/TileRecUtils/src/TileTimeBCOffsetFilter.cxx
index f1223e9b7876..87f797c3e67f 100644
--- a/TileCalorimeter/TileRecUtils/src/TileTimeBCOffsetFilter.cxx
+++ b/TileCalorimeter/TileRecUtils/src/TileTimeBCOffsetFilter.cxx
@@ -266,7 +266,7 @@ TileTimeBCOffsetFilter::process (TileMutableRawChannelContainer& rchCont, const
             }
           }
         }
-        if (time_dmu_same && n_dmu_aver != 0) {
+        if (time_dmu_same && (n_dmu_aver != 0)) {
           time_dmu_aver /= n_dmu_aver;
           ATH_MSG_VERBOSE( "Average time "<< time_dmu_aver);
           
-- 
GitLab