From 263170816fee720bd2782977a3ce643af70b6c4b Mon Sep 17 00:00:00 2001
From: Alexandru Bercuci <abercuci@niham.nipne.ro>
Date: Fri, 24 Feb 2023 12:49:22 +0200
Subject: [PATCH] add phys geo node init to Calib tracker QA

---
 core/detectors/trd/CbmTrdParModGeo.cxx       | 4 ++--
 reco/detectors/trd/qa/CbmTrdCalibTracker.cxx | 3 +++
 2 files changed, 5 insertions(+), 2 deletions(-)

diff --git a/core/detectors/trd/CbmTrdParModGeo.cxx b/core/detectors/trd/CbmTrdParModGeo.cxx
index f91d4611ef..5560ab17ae 100644
--- a/core/detectors/trd/CbmTrdParModGeo.cxx
+++ b/core/detectors/trd/CbmTrdParModGeo.cxx
@@ -57,8 +57,8 @@ bool CbmTrdParModGeo::SetNode()
   fNode = new TGeoPhysicalNode(GetTitle());
   if (!fNode) return false;
 
-  LOG(info) << GetName() << " : " << GetTitle();
-  fNode->GetMatrix()->Print();
+  LOG(debug) << GetName() << " : " << GetTitle();
+  // fNode->GetMatrix()->Print();
 
   return true;
 }
diff --git a/reco/detectors/trd/qa/CbmTrdCalibTracker.cxx b/reco/detectors/trd/qa/CbmTrdCalibTracker.cxx
index 57a14d0c9e..29e016768a 100644
--- a/reco/detectors/trd/qa/CbmTrdCalibTracker.cxx
+++ b/reco/detectors/trd/qa/CbmTrdCalibTracker.cxx
@@ -397,6 +397,9 @@ InitStatus CbmTrdCalibTracker::GeometryQa()
   // check geometry of the TRD modules
 
   double lastZ = -1;
+
+  // load alignment matrices
+  fTrdGeoPar->LoadAlignVolumes();
   for (int iStation = 0; iStation < fNtrackingStations; iStation++) {
 
     int ModuleId = fTrdDigiPar->GetModuleId(iStation);
-- 
GitLab