Skip to content

Commit

Permalink
fix: no unit conversion needed from MCParticle to TrackParameter
Browse files Browse the repository at this point in the history
  • Loading branch information
wdconinc authored Jan 12, 2024
1 parent cb4d891 commit 7fbc9c4
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/algorithms/tracking/TrackParamTruthInit.cc
Original file line number Diff line number Diff line change
Expand Up @@ -91,7 +91,7 @@ eicrecon::TrackParamTruthInit::produce(const edm4hep::MCParticleCollection* mcpa
// Insert into edm4eic::TrackParameters, which uses numerical values in its specified units
auto track_parameter = track_parameters->create();
track_parameter.setType(-1); // type --> seed(-1)
track_parameter.setLoc({static_cast<float>(std::hypot(v.x, v.y) / dd4hep::mm), static_cast<float>(v.z / dd4hep::mm)}); // 2d location on surface [mm]
track_parameter.setLoc({static_cast<float>(std::hypot(v.x, v.y)), static_cast<float>(v.z)}); // 2d location on surface [mm]
track_parameter.setLocError({1.0, 1.0}); // sqrt(variance) of location [mm]
track_parameter.setTheta(theta); // theta [rad]
track_parameter.setPhi(phi); // phi [rad]
Expand Down

0 comments on commit 7fbc9c4

Please sign in to comment.