From 0e2bfa311b4208913ad56a63d2ff4d2cb2140c5a Mon Sep 17 00:00:00 2001
From: lintao <lintao51@gmail.com>
Date: Wed, 15 Jun 2022 21:28:24 +0800
Subject: [PATCH] update the code to use
 decltype(edm4hep::TrackState::covMatrix).

---
 Reconstruction/Tracking/include/Tracking/TrackingHelper.h | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)

diff --git a/Reconstruction/Tracking/include/Tracking/TrackingHelper.h b/Reconstruction/Tracking/include/Tracking/TrackingHelper.h
index beed38e6..4724fb02 100644
--- a/Reconstruction/Tracking/include/Tracking/TrackingHelper.h
+++ b/Reconstruction/Tracking/include/Tracking/TrackingHelper.h
@@ -27,9 +27,9 @@ inline edm4hep::TrackState getTrackStateAt(edm4hep::Track track, int location) {
     return edm4hep::TrackState();
 }
 
-inline std::array<float,15> getCovMatrix(const edm4hep::Track &track) {
+inline decltype(edm4hep::TrackState::covMatrix) getCovMatrix(const edm4hep::Track &track) {
   if(track.trackStates_size()>0) return track.getTrackStates(0).covMatrix;
-  std::array<float,15> dummy{};
+  decltype(edm4hep::TrackState::covMatrix) dummy{};
   return dummy;
 }
 inline float getTanLambda(const edm4hep::Track &track) {
-- 
GitLab