diff --git a/core/data/tof/CbmTofTracklet.h b/core/data/tof/CbmTofTracklet.h
index f2cad23c2eabc67557865b0d4bd205280aaeff90..8e7c3e65449f2f7ebd09baad976e9b9ec1aaa75d 100644
--- a/core/data/tof/CbmTofTracklet.h
+++ b/core/data/tof/CbmTofTracklet.h
@@ -69,6 +69,7 @@ public:
   }
 
   Int_t GetTofHitIndex(Int_t ind) const { return fTofHit[ind]; }
+  inline void  SetTofHitIndex(Int_t ind, Int_t i) { fTofHit[ind]=i; }
   CbmTofHit* GetTofHitPointer(Int_t ind) { return &fhit[ind]; }
   Int_t GetTofDetIndex(Int_t ind) const { return fTofDet[ind]; }