From d763e7e386782f3c4057bcabd6fc5f0ddaad535c Mon Sep 17 00:00:00 2001
From: abarton <Adam.Edward.Barton@cern.ch>
Date: Tue, 20 Jul 2021 10:38:49 +0100
Subject: [PATCH] Ensure set number is defined and reset

---
 .../SCT_ConditionsTools/src/SCT_ByteStreamErrorsTool.h         | 3 ++-
 1 file changed, 2 insertions(+), 1 deletion(-)

diff --git a/InnerDetector/InDetConditions/SCT_ConditionsTools/src/SCT_ByteStreamErrorsTool.h b/InnerDetector/InDetConditions/SCT_ConditionsTools/src/SCT_ByteStreamErrorsTool.h
index 474ecfa766ef..5d4ae6496775 100644
--- a/InnerDetector/InDetConditions/SCT_ConditionsTools/src/SCT_ByteStreamErrorsTool.h
+++ b/InnerDetector/InDetConditions/SCT_ConditionsTools/src/SCT_ByteStreamErrorsTool.h
@@ -115,11 +115,12 @@ private:
 
   
     //Record the set number of the idcErrContainer, if the set numbers are the same, skip the fillData process to save time.
-    unsigned int m_set_number;
+    unsigned int m_set_number = 0;
     
     void reset(EventContext::ContextEvt_t evtId, const IDCInDetBSErrContainer_Cache* cache) {
       eventId = evtId;
       IDCCache = cache;
+      m_set_number = 0;
       tempMaskedChips.clear();
       abcdErrorChips.clear();
     }
-- 
GitLab