Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

feat: GX2F: use magnetic field to fit q/p #2574

Merged
merged 16 commits into from
Nov 5, 2023

Conversation

AJPfleger
Copy link
Contributor

@AJPfleger AJPfleger commented Oct 24, 2023

The Global Chi Square Fitter now runs with magnetic fields.

We need the concept of different const size_t reducedMatrixSize, since we have a matrix inversion during the fit process. In the case of $|B| = 0$, there would be no information for q/p, resulting in zero-entries in the matrix. Therefore, we previously removed those parts from the system. Still, we remove all time rows and columns, since we don't want to fit it yet.

This now also fixes the loc1-pulls in Generic Detector (truth_tracking_gx2f.py). (Other pulls are not great yet.)

pull_eLOC0
pull_eLOC1

@github-actions github-actions bot added Component - Core Affects the Core module Track Fitting labels Oct 24, 2023
@codecov
Copy link

codecov bot commented Oct 24, 2023

Codecov Report

Merging #2574 (5b4b1a8) into main (f185bad) will increase coverage by 0.01%.
The diff coverage is 42.42%.

@@            Coverage Diff             @@
##             main    #2574      +/-   ##
==========================================
+ Coverage   49.57%   49.59%   +0.01%     
==========================================
  Files         473      473              
  Lines       26803    26819      +16     
  Branches    12349    12356       +7     
==========================================
+ Hits        13288    13300      +12     
  Misses       4752     4752              
- Partials     8763     8767       +4     
Files Coverage Δ
...re/src/TrackFitting/GlobalChiSquareFitterError.cpp 0.00% <0.00%> (ø)
...nclude/Acts/TrackFitting/GlobalChiSquareFitter.hpp 43.37% <45.16%> (+2.49%) ⬆️

📣 Codecov offers a browser extension for seamless coverage viewing on GitHub. Try it in Chrome or Firefox today!

@AJPfleger AJPfleger marked this pull request as ready for review October 24, 2023 14:33
@AJPfleger AJPfleger changed the title feat: use magnetic field in GX2F to fit QoP feat: GX2F: use magnetic field to fit QoP Oct 25, 2023
@paulgessinger paulgessinger changed the title feat: GX2F: use magnetic field to fit QoP feat: GX2F: use magnetic field to fit q.p Oct 26, 2023
@paulgessinger paulgessinger changed the title feat: GX2F: use magnetic field to fit q.p feat: GX2F: use magnetic field to fit q/p Oct 26, 2023
@kodiakhq kodiakhq bot merged commit 4d4987d into acts-project:main Nov 5, 2023
53 checks passed
@github-actions github-actions bot removed the automerge label Nov 5, 2023
@AJPfleger AJPfleger deleted the gx2f-bfield branch November 5, 2023 16:05
@paulgessinger paulgessinger modified the milestones: next, v31.0.0 Nov 6, 2023
kodiakhq bot pushed a commit that referenced this pull request Nov 10, 2023
A new abort condition for the Global Chi Square Fitter: `relChi2changeCutOff`.
Before we could only steer with `nUpdateMax` when to stop to iterate.
This relative cut-off checks if the `chi2sum` already converged.

TODO: detect in the unitTest, that the system stopped before reaching `nUpdateMax`.

blocked by:
 - #2574
kodiakhq bot pushed a commit that referenced this pull request Nov 21, 2023
Adds more parameters to the python bindings of the Global Chi Square Filter:
```
  /// Max number of iterations during the fit (abort condition)
  size_t nUpdateMax = 5;

  /// Disables the QoP fit in case of missing B-field
  bool zeroField = false;

  /// Check for convergence (abort condition). Set to 0 to skip.
  double relChi2changeCutOff = 1e-7;
```

blocked by:
 - #2574
 - #2586
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Component - Core Affects the Core module Track Fitting
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants