From 9766d60cba614e17b3cb97385c763ff9c1930749 Mon Sep 17 00:00:00 2001
From: scott snyder <snyder@bnl.gov>
Date: Thu, 20 Jun 2024 16:48:38 +0200
Subject: [PATCH] MuonPRDTestR4: HepMC2 compatibility.

Fix compilation with HepMC2.
---
 .../MuonValidation/MuonPRDTestR4/Root/SimHitTester.cxx        | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)

diff --git a/MuonSpectrometer/MuonPhaseII/MuonValidation/MuonPRDTestR4/Root/SimHitTester.cxx b/MuonSpectrometer/MuonPhaseII/MuonValidation/MuonPRDTestR4/Root/SimHitTester.cxx
index 5e61b2f0e79a..7369a7b0f27d 100644
--- a/MuonSpectrometer/MuonPhaseII/MuonValidation/MuonPRDTestR4/Root/SimHitTester.cxx
+++ b/MuonSpectrometer/MuonPhaseII/MuonValidation/MuonPRDTestR4/Root/SimHitTester.cxx
@@ -60,7 +60,7 @@ namespace MuonValR4{
 
             const Amg::Transform3D& locToGlobal{re->localToGlobalTrans(gctx, trfHash)};
             m_globPos.push_back(locToGlobal*locPos);
-            m_globDir.push_back(locToGlobal.linear()* locDir);
+            m_globDir.push_back(Amg::Vector3D(locToGlobal.linear()* locDir));
             m_locPos.push_back(locPos);
             m_locDir.push_back(locDir);
             m_globTime.push_back(simHit->globalTime());
@@ -74,4 +74,4 @@ namespace MuonValR4{
         return true;
     } 
 
-}
\ No newline at end of file
+}
-- 
GitLab