From 6275d678c942d1d584f0221d27930f691b488e82 Mon Sep 17 00:00:00 2001
From: P-A Loizeau <p.-a.loizeau@gsi.de>
Date: Thu, 12 Sep 2024 15:00:15 +0200
Subject: [PATCH] Apply new evt index in TS convention in legacy BuildRawEvents
 algo

---
 reco/eventbuilder/digis/CbmAlgoBuildRawEvents.cxx | 1 +
 1 file changed, 1 insertion(+)

diff --git a/reco/eventbuilder/digis/CbmAlgoBuildRawEvents.cxx b/reco/eventbuilder/digis/CbmAlgoBuildRawEvents.cxx
index f0cd55ebb1..38b304fa67 100644
--- a/reco/eventbuilder/digis/CbmAlgoBuildRawEvents.cxx
+++ b/reco/eventbuilder/digis/CbmAlgoBuildRawEvents.cxx
@@ -184,6 +184,7 @@ void CbmAlgoBuildRawEvents::ProcessTs()
 void CbmAlgoBuildRawEvents::InitTs()
 {
   /// Reset TS based variables (analysis per TS = no building over the border)
+  fuCurEv = 0;
 
   /// Reference detector
   if (fRefDet.detId != ECbmModuleId::kNotExist) {
-- 
GitLab