Skip to content

Commit

Permalink
refactor: Accumulated minor changes and for track finding (#3103)
Browse files Browse the repository at this point in the history
  • Loading branch information
andiwand authored Apr 30, 2024
1 parent 16ac510 commit acdf38f
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 12 deletions.
9 changes: 2 additions & 7 deletions Core/include/Acts/EventData/TrackStateProxy.hpp
Original file line number Diff line number Diff line change
Expand Up @@ -808,13 +808,8 @@ class TrackStateProxy {
allocateCalibrated(kMeasurementSize);
assert(hasCalibrated());

calibrated<kMeasurementSize>().setZero();
calibrated<kMeasurementSize>().template head<kMeasurementSize>() =
meas.parameters();
calibratedCovariance<kMeasurementSize>().setZero();
calibratedCovariance<kMeasurementSize>()
.template topLeftCorner<kMeasurementSize, kMeasurementSize>() =
meas.covariance();
calibrated<kMeasurementSize>() = meas.parameters();
calibratedCovariance<kMeasurementSize>() = meas.covariance();
setProjector(meas.projector());
}

Expand Down
7 changes: 2 additions & 5 deletions Examples/Framework/src/EventData/MeasurementCalibration.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -31,11 +31,8 @@ void ActsExamples::PassThroughCalibrator::calibrate(
"Source link index is outside the container bounds");

std::visit(
[&trackState](const auto& meas) {
trackState.allocateCalibrated(meas.size());
trackState.setCalibrated(meas);
},
(measurements)[idxSourceLink.index()]);
[&trackState](const auto& meas) { trackState.setCalibrated(meas); },
measurements[idxSourceLink.index()]);
}

ActsExamples::MeasurementCalibratorAdapter::MeasurementCalibratorAdapter(
Expand Down

0 comments on commit acdf38f

Please sign in to comment.