Skip to content

Commit

Permalink
fix: only read raw hit associations for EDM4eic >= 7
Browse files Browse the repository at this point in the history
  • Loading branch information
wdconinc committed Aug 9, 2024
1 parent 8383825 commit f604db5
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions src/algorithms/tracking/ActsToTracks.cc
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,7 @@
#include <Acts/EventData/TrackStateType.hpp>
#include <ActsExamples/EventData/IndexSourceLink.hpp>
#include <edm4eic/Cov6f.h>
#include <edm4eic/EDM4eicVersion.h>
#include <edm4hep/MCParticleCollection.h>
#include <edm4hep/Vector2f.h>
#include <edm4hep/Vector3f.h>
Expand Down Expand Up @@ -180,6 +181,7 @@ void ActsToTracks::process(const Input& input, const Output& output) const {
// Determine track associations if hit associations provided
// FIXME: not able to check whether optional inputs were provided
//if (raw_hit_assocs->has_value()) {
#if EDM4EIC_VERSION_MAJOR >= 7
for (auto& hit : meas2D.getHits()) {
auto raw_hit = hit.getRawHit();
for (const auto raw_hit_assoc : *raw_hit_assocs) {
Expand All @@ -190,6 +192,7 @@ void ActsToTracks::process(const Input& input, const Output& output) const {
}
}
}
#endif
//}

}
Expand Down

0 comments on commit f604db5

Please sign in to comment.