Skip to content

Commit

Permalink
feat: Add measurement emplace functions (#3627) @36.0.0:
Browse files Browse the repository at this point in the history
  • Loading branch information
wdconinc committed Jan 17, 2025
1 parent 5cf3505 commit 51b3262
Showing 1 changed file with 2 additions and 8 deletions.
10 changes: 2 additions & 8 deletions src/algorithms/tracking/CKFTracking.cc
Original file line number Diff line number Diff line change
Expand Up @@ -163,14 +163,8 @@ namespace eicrecon {
#if Acts_VERSION_MAJOR >= 37
std::array<Acts::BoundIndices, 2> indices = {Acts::eBoundLoc0, Acts::eBoundLoc1};
Acts::visit_measurement(
indices.size(), [&](auto dim) -> ActsExamples::VariableBoundMeasurementProxy {
ActsExamples::FixedBoundMeasurementProxy<dim> measurement =
measurements->makeMeasurement<dim>();
measurement.setSourceLink(sourceLink);
measurement.setSubspaceIndices(indices);
measurement.parameters() = loc;
measurement.covariance() = cov;
return measurement;
indices.size(), [&](auto dim) -> ActsExamples::FixedBoundMeasurementProxy<6> {
return measurements->emplaceMeasurement<dim>(sourceLink, indices, loc, cov);
}
);
#elif Acts_VERSION_MAJOR == 36 && Acts_VERSION_MINOR >= 1
Expand Down

0 comments on commit 51b3262

Please sign in to comment.