From 7e3e340fa88bd897f20340ee10abf4f7be9a035d Mon Sep 17 00:00:00 2001
From: Felix Weiglhofer <weiglhofer@fias.uni-frankfurt.de>
Date: Thu, 30 Nov 2023 17:14:07 +0000
Subject: [PATCH] sts::Hit: Remove z-error.

---
 algo/data/sts/Hit.h                          | 2 --
 algo/detectors/sts/Hitfinder.cxx             | 2 --
 services/archive_explorer/app/Histograms.cxx | 2 --
 services/archive_explorer/app/Histograms.h   | 1 -
 4 files changed, 7 deletions(-)

diff --git a/algo/data/sts/Hit.h b/algo/data/sts/Hit.h
index 091ba8db3c..961614f72a 100644
--- a/algo/data/sts/Hit.h
+++ b/algo/data/sts/Hit.h
@@ -17,7 +17,6 @@ namespace cbm::algo::sts
     real fZ;          ///< Z position of hit [cm]
     u32 fTime;        ///< Hit time [ns]
     real fDx, fDy;    ///< X, Y errors [cm]
-    real fDz;         ///< Z position error [cm]
     real fDxy;        ///< XY correlation
     real fTimeError;  ///< Error of hit time [ns]
     real fDu;         ///< Error of coordinate across front-side strips [cm]
@@ -48,7 +47,6 @@ namespace cbm::algo::sts
       ar& fTime;
       ar& fDx;
       ar& fDy;
-      ar& fDz;
       ar& fDxy;
       ar& fTimeError;
       ar& fDu;
diff --git a/algo/detectors/sts/Hitfinder.cxx b/algo/detectors/sts/Hitfinder.cxx
index 8edebeeed2..e3da2f0e65 100644
--- a/algo/detectors/sts/Hitfinder.cxx
+++ b/algo/detectors/sts/Hitfinder.cxx
@@ -776,7 +776,6 @@ XPU_D void sts::Hitfinder::CreateHit(int iModule, float xLocal, float yLocal, fl
   // global covariance matrix is the same as the local one.
   float errX = xpu::sqrt(varX);
   float errY = xpu::sqrt(varY);
-  float errZ = 0.f;
 
   // --- Calculate hit time (average of cluster times)
   float hitTime      = 0.5f * (float(idxF.fTime) + float(idxB.fTime));
@@ -791,7 +790,6 @@ XPU_D void sts::Hitfinder::CreateHit(int iModule, float xLocal, float yLocal, fl
     .fTime      = static_cast<u32>(hitTime),
     .fDx        = errX,
     .fDy        = errY,
-    .fDz        = errZ,
     .fDxy       = varXY,
     .fTimeError = hitTimeError,
     .fDu        = du,
diff --git a/services/archive_explorer/app/Histograms.cxx b/services/archive_explorer/app/Histograms.cxx
index df937e0518..01ef8413c2 100644
--- a/services/archive_explorer/app/Histograms.cxx
+++ b/services/archive_explorer/app/Histograms.cxx
@@ -28,7 +28,6 @@ Histograms::Histograms()
   CreateHisto(fHStsHitsTime, "/sts/hits", "hStsHitsTime", "Sts Hits Time", 1000, 0, 128000000);
   CreateHisto(fHStsHitsDx, "/sts/hits", "hStsHitsDx", "Sts Hits Dx", 100, 0, 0.1);
   CreateHisto(fHStsHitsDy, "/sts/hits", "hStsHitsDy", "Sts Hits Dy", 100, 0, 0.1);
-  CreateHisto(fHStsHitsDz, "/sts/hits", "hStsHitsDz", "Sts Hits Dz", 100, 0, 0.1);
   CreateHisto(fHStsHitsDxy, "/sts/hits", "hStsHitsDxy", "Sts Hits Dxy", 100, 0, 0.1);
   CreateHisto(fHStsHitsTimeError, "/sts/hits", "hStsHitsTimeError", "Sts Hits Time Error", 100, 0, 0.1);
   CreateHisto(fHStsHitsDu, "/sts/hits", "hStsHitsDu", "Sts Hits Du", 100, 0, 0.1);
@@ -71,7 +70,6 @@ void Histograms::FillHistos(HistoData fill)
       fHStsHitsTime->Fill(hit.Time());
       fHStsHitsDx->Fill(hit.Dx());
       fHStsHitsDy->Fill(hit.Dy());
-      fHStsHitsDz->Fill(hit.fDz);
       fHStsHitsDxy->Fill(hit.fDxy);
       fHStsHitsTimeError->Fill(hit.TimeError());
       fHStsHitsDu->Fill(hit.fDu);
diff --git a/services/archive_explorer/app/Histograms.h b/services/archive_explorer/app/Histograms.h
index 1a4561fbd8..e21e4185bb 100644
--- a/services/archive_explorer/app/Histograms.h
+++ b/services/archive_explorer/app/Histograms.h
@@ -34,7 +34,6 @@ namespace cbm::explore
     TH1I* fHStsHitsTime      = nullptr;
     TH1F* fHStsHitsDx        = nullptr;
     TH1F* fHStsHitsDy        = nullptr;
-    TH1F* fHStsHitsDz        = nullptr;
     TH1F* fHStsHitsDxy       = nullptr;
     TH1F* fHStsHitsTimeError = nullptr;
     TH1F* fHStsHitsDu        = nullptr;
-- 
GitLab