From 418d36a2af461d46a8a6ee46417f6856fab72493 Mon Sep 17 00:00:00 2001
From: John Derek Chapman <chapman@hep.phy.cam.ac.uk>
Date: Fri, 22 Mar 2024 14:20:18 +0100
Subject: [PATCH] TRTProcessingOf(Barrel/Endcap)Hits clean-up of error message

TRTProcessingOf(Barrel/Endcap)Hits clean-up of error message
---
 .../InDetG4/TRT_G4_SD/src/TRTProcessingOfBarrelHits.cxx       | 4 ++--
 .../InDetG4/TRT_G4_SD/src/TRTProcessingOfEndCapHits.cxx       | 4 ++--
 2 files changed, 4 insertions(+), 4 deletions(-)

diff --git a/InnerDetector/InDetG4/TRT_G4_SD/src/TRTProcessingOfBarrelHits.cxx b/InnerDetector/InDetG4/TRT_G4_SD/src/TRTProcessingOfBarrelHits.cxx
index daaf7ed8e147..1b21638c2dd8 100644
--- a/InnerDetector/InDetG4/TRT_G4_SD/src/TRTProcessingOfBarrelHits.cxx
+++ b/InnerDetector/InDetG4/TRT_G4_SD/src/TRTProcessingOfBarrelHits.cxx
@@ -1,5 +1,5 @@
 /*
-  Copyright (C) 2002-2020 CERN for the benefit of the ATLAS collaboration
+  Copyright (C) 2002-2024 CERN for the benefit of the ATLAS collaboration
 */
 
 // Class header
@@ -177,7 +177,7 @@ bool TRTProcessingOfBarrelHits::ProcessHit(G4Step* pStep)
           std::cout << "!!!!! Barrel. Error in local coordinates of hits!" << std::endl;
           std::cout << "  barrelID=" << hitID << "  ringID=" << ringID
                     << "  moduleID=" << moduleID << "  strawID=" << strawID
-                    << "  trackID=" << trHelp.GetBarcode() << std::endl;
+                    << "  trackID=" << trHelp.GetUniqueID() << std::endl;
           std::cout << "  particleEncoding=" << particleEncoding;
 
           if (kineticEnergy < 0.0001)
diff --git a/InnerDetector/InDetG4/TRT_G4_SD/src/TRTProcessingOfEndCapHits.cxx b/InnerDetector/InDetG4/TRT_G4_SD/src/TRTProcessingOfEndCapHits.cxx
index d127c85a5a38..5114626f4a46 100644
--- a/InnerDetector/InDetG4/TRT_G4_SD/src/TRTProcessingOfEndCapHits.cxx
+++ b/InnerDetector/InDetG4/TRT_G4_SD/src/TRTProcessingOfEndCapHits.cxx
@@ -1,5 +1,5 @@
 /*
-  Copyright (C) 2002-2020 CERN for the benefit of the ATLAS collaboration
+  Copyright (C) 2002-2024 CERN for the benefit of the ATLAS collaboration
 */
 
 // Class header
@@ -166,7 +166,7 @@ bool TRTProcessingOfEndCapHits::ProcessHit(G4Step* pStep)
           std::cout << "!!!!! End-caps. Error in local coordinates of hits!" << std::endl;
           std::cout << "  endCapID=" << endCapID << "  wheelID=" << wheelID
                     << "  planeID=" << planeID << "  strawID=" << strawID
-                    << "  trackID=" << trHelp.GetBarcode() << std::endl;
+                    << "  trackID=" << trHelp.GetUniqueID() << std::endl;
           std::cout << "  particleEncoding=" << particleEncoding;
 
           if (kineticEnergy < 0.0001)
-- 
GitLab