From 3dfafed0220305f787110c2cc75f9b8531c0b4c9 Mon Sep 17 00:00:00 2001
From: Dominik Smith <smith@th.physik.uni-frankfurt.de>
Date: Thu, 26 Oct 2023 14:47:16 +0200
Subject: [PATCH] Performance improvement for
 cbm::algo::tof::Hitfind::CalibRawDigis().

---
 algo/detectors/tof/Hitfind.cxx | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)

diff --git a/algo/detectors/tof/Hitfind.cxx b/algo/detectors/tof/Hitfind.cxx
index d02d56cbae..2d74178106 100644
--- a/algo/detectors/tof/Hitfind.cxx
+++ b/algo/detectors/tof/Hitfind.cxx
@@ -184,8 +184,8 @@ namespace cbm::algo::tof
         continue;
       }
 
-      HitfindSetup::Rpc rpcPar      = fTofConfig.rpcs.at(SmType).at(Sm * NbRpc + Rpc);
-      HitfindSetup::Channel chanPar = rpcPar.chanPar[Chan];
+      HitfindSetup::Rpc& rpcPar      = fTofConfig.rpcs.at(SmType).at(Sm * NbRpc + Rpc);
+      HitfindSetup::Channel& chanPar = rpcPar.chanPar[Chan];
 
       if (rpcPar.swapChannelSides && 5 != SmType && 8 != SmType) {
         pDigi.SetAddress(Sm, Rpc, Chan, (0 == Side) ? 1 : 0, SmType);
-- 
GitLab