From 932eec2ae20e31e5960a8ea89a5ca547a6ffa9c7 Mon Sep 17 00:00:00 2001
From: P-A Loizeau <p.-a.loizeau@gsi.de>
Date: Mon, 15 Nov 2021 18:26:51 +0100
Subject: [PATCH] Make the getters of CbmTsEventHeader explicitely const

---
 core/data/CbmTsEventHeader.h | 16 ++++++++--------
 1 file changed, 8 insertions(+), 8 deletions(-)

diff --git a/core/data/CbmTsEventHeader.h b/core/data/CbmTsEventHeader.h
index 0f36e29e3f..343f95e136 100644
--- a/core/data/CbmTsEventHeader.h
+++ b/core/data/CbmTsEventHeader.h
@@ -35,22 +35,22 @@ public:
   void AddNDigisTrd2D(uint64_t value) { fNDigisTrd2D += value; }
 
   /** @brief Get the number of digis in this Ts */
-  uint64_t GetNDigisPsd() { return fNDigisPsd; }
+  uint64_t GetNDigisPsd() const { return fNDigisPsd; }
   /** @brief Get the number of digis in this Ts */
-  uint64_t GetNDigisRich() { return fNDigisRich; }
+  uint64_t GetNDigisRich() const { return fNDigisRich; }
   /** @brief Get the number of digis in this Ts */
-  uint64_t GetNDigisSts() { return fNDigisSts; }
+  uint64_t GetNDigisSts() const { return fNDigisSts; }
   /** @brief Get the number of digis in this Ts */
-  uint64_t GetNDigisTof() { return fNDigisTof; }
+  uint64_t GetNDigisTof() const { return fNDigisTof; }
   /** @brief Get the number of digis in this Ts */
-  uint64_t GetNDigisTrd1D() { return fNDigisTrd1D; }
+  uint64_t GetNDigisTrd1D() const { return fNDigisTrd1D; }
   /** @brief Get the number of digis in this Ts */
-  uint64_t GetNDigisTrd2D() { return fNDigisTrd2D; }
+  uint64_t GetNDigisTrd2D() const { return fNDigisTrd2D; }
 
   /** Get the Start time of the this Timeslice linked to this event header*/
-  uint64_t GetTsIndex() { return fTsIndex; }
+  uint64_t GetTsIndex() const { return fTsIndex; }
   /** Get the Start time of the this Timeslice linked to this event header*/
-  uint64_t GetTsStartTime() { return fTsStartTime; }
+  uint64_t GetTsStartTime() const { return fTsStartTime; }
 
   /** @brief Resets counters and variables for a new Timeslice, e.g. the NDigis counter are set back to 0*/
   void Reset();
-- 
GitLab