Skip to content
Snippets Groups Projects
Commit 91bc9024 authored by mingrui.zhao@mail.labz0.org's avatar mingrui.zhao@mail.labz0.org
Browse files

fix bug of function getTrackStateAt

parent 882a354d
No related branches found
No related tags found
No related merge requests found
......@@ -20,7 +20,7 @@ inline bool hasTrackStateAt(edm4hep::ConstTrack track, int location) {
inline edm4hep::TrackState getTrackStateAt(edm4hep::ConstTrack track, int location) {
for (auto it = track.trackStates_begin(); it != track.trackStates_end(); it++) {
if (it->location == location) {
*it;
return *it;
}
}
return edm4hep::TrackState();
......
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