Skip to content

Commit

Permalink
Fixed omega parameter in track
Browse files Browse the repository at this point in the history
  • Loading branch information
pandreetto committed May 13, 2024
1 parent dd91728 commit 662e347
Showing 1 changed file with 9 additions and 1 deletion.
10 changes: 9 additions & 1 deletion src/Helpers.cxx
Original file line number Diff line number Diff line change
Expand Up @@ -266,9 +266,17 @@ EVENT::Track* ACTS2Marlin_track(
curr_hit->getPosition()[1],
curr_hit->getPosition()[2]);

Acts::Result<Acts::Vector3> fieldRes =
magneticField->getField(hitPos, magCache);
if (!fieldRes.ok()) {
throw std::runtime_error("Field lookup error: " +
fieldRes.error().value());
}
Acts::Vector3 field = *fieldRes;

EVENT::TrackState* trackState = ACTSTracking::ACTS2Marlin_trackState(
EVENT::TrackState::AtOther, trk_state.smoothed(),
trk_state.smoothedCovariance(), hitPos[2] / Acts::UnitConstants::T);
trk_state.smoothedCovariance(), field[2] / Acts::UnitConstants::T);
statesOnTrack.push_back(trackState);
}

Expand Down

0 comments on commit 662e347

Please sign in to comment.