Skip to content
Snippets Groups Projects
Commit 0e2bfa31 authored by lintao@ihep.ac.cn's avatar lintao@ihep.ac.cn
Browse files

update the code to use decltype(edm4hep::TrackState::covMatrix).

parent 415e435e
No related branches found
No related tags found
No related merge requests found
...@@ -27,9 +27,9 @@ inline edm4hep::TrackState getTrackStateAt(edm4hep::Track track, int location) { ...@@ -27,9 +27,9 @@ inline edm4hep::TrackState getTrackStateAt(edm4hep::Track track, int location) {
return edm4hep::TrackState(); 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; if(track.trackStates_size()>0) return track.getTrackStates(0).covMatrix;
std::array<float,15> dummy{}; decltype(edm4hep::TrackState::covMatrix) dummy{};
return dummy; return dummy;
} }
inline float getTanLambda(const edm4hep::Track &track) { inline float getTanLambda(const edm4hep::Track &track) {
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment