From 7aedb6cce683bd2acc52406099fd4b7b0d5d2bc7 Mon Sep 17 00:00:00 2001
From: Norbert Herrmann <n.herrmann@physi.uni-heidelberg.de>
Date: Tue, 4 Aug 2020 08:20:35 +0200
Subject: [PATCH] replace 0x00005006 for diamond

---
 reco/detectors/tof/CbmTofCalibrator.cxx | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/reco/detectors/tof/CbmTofCalibrator.cxx b/reco/detectors/tof/CbmTofCalibrator.cxx
index c94b581016..0e775a26a5 100644
--- a/reco/detectors/tof/CbmTofCalibrator.cxx
+++ b/reco/detectors/tof/CbmTofCalibrator.cxx
@@ -228,7 +228,7 @@ Bool_t CbmTofCalibrator::CreateCalHist() {
 void CbmTofCalibrator::FillCalHist(CbmTofTracklet* pTrk) {
   // fill deviation histograms on walk level
   if (pTrk->GetTt() < 0) return;  // take tracks with positive velocity only
-  if (!pTrk->ContainsAddr(0x00005006))
+  if (!pTrk->ContainsAddr(CbmTofAddress::GetUniqueAddress(0, 0, 0, 0, 5)))
     return;  // request beam counter hit for calibration
   if (fdR0Lim
       > 0.)  // consider only tracks originating from nominal interaction point
-- 
GitLab