From a182a361a7e678cf7919434b768605d0180ccb4d Mon Sep 17 00:00:00 2001
From: "se.gorbunov" <se.gorbunov@gsi.de>
Date: Sun, 22 Oct 2023 16:28:38 +0000
Subject: [PATCH] bugfix in the StsSetup

---
 core/detectors/sts/CbmStsSetup.cxx | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/core/detectors/sts/CbmStsSetup.cxx b/core/detectors/sts/CbmStsSetup.cxx
index 83d5a4a981..b075e74585 100644
--- a/core/detectors/sts/CbmStsSetup.cxx
+++ b/core/detectors/sts/CbmStsSetup.cxx
@@ -381,7 +381,7 @@ Bool_t CbmStsSetup::ReadGeometry(TGeoManager* geo)
 
 void CbmStsSetup::RecomputePhysicalAssmbBbox(TGeoManager* geo)
 {
-  TIter nextv(gGeoManager->GetListOfVolumes());
+  TIter nextv(geo->GetListOfVolumes());
   TGeoVolume* vol;
   while ((vol = dynamic_cast<TGeoVolume*>(nextv()))) {
     if (vol->IsAssembly()) vol->GetShape()->ComputeBBox();
-- 
GitLab