Skip to content
Snippets Groups Projects

Further refactoring and cleanup of TrkGlobalChi2Fitter

Merged Stephen Nicholas Swatman requested to merge sswatman/athena:refactor/gx2fitter_new into master
All threads resolved!

In this merge request, we do some further refactoring and cleaning up of the TrkGlobalChi2Fitter class. In short, we make the following changes:

  1. We migrate several instances of std::vector<double> and even std::vector<std::vector<double>> to Amg::VectorX and Amg::MatrixX, respectively. The point of that is to improve readability, performance, and interoperability with Eigen classes and methods.
  2. Replacement of some naively implemented matrix-matrix methods to use Eigen, which is possible now do the previous point.
  3. Deduplication of the calculateDerivative method, as well as the track making code, to reduce its code volume and improve clarity.
  4. Removal of some mysterious and unused method declarations.

I've done my best to validate this change, and the results seem to be unchanged on a q431 test.

Merge request reports

Pipeline #1826633 passed

Pipeline passed for 4e0db628 on sswatman:refactor/gx2fitter_new

Approval is optional

Merged by Vakhtang TsulaiaVakhtang Tsulaia 4 years ago (Jul 28, 2020 5:34pm UTC)

Merge details

  • Changes merged into master with 4ccfcc8f.
  • Did not delete the source branch.

Activity

Filter activity
  • Approvals
  • Assignees & reviewers
  • Comments (from bots)
  • Comments (from users)
  • Commits & branches
  • Edits
  • Labels
  • Lock status
  • Mentions
  • Merge request status
  • Tracking
  • mentioned in merge request !35247 (merged)

  • Rafal Bielski resolved all threads

    resolved all threads

  • Please register or sign in to reply
    Loading