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

fix: Change theta and eta calls on only 3D Vectors #1706

Merged
merged 4 commits into from
Dec 8, 2022

Conversation

pbutti
Copy link
Contributor

@pbutti pbutti commented Dec 2, 2022

The theta and eta calls could be done on 4D vectors. While they are well defined on a LorentzVector, for example, this was not the intended behaviour of the function, which supposedly should run only on 3D vectors. In particular eta on a 4-momentum was returning the wrong results. Changed the checks on rows to be exactly 3. In the future the eta/theta could be properly defined on 4d vectors as well by choosing a convention for the indices of the 4D vector

The theta and eta calls could be done on 4D vectors. While they are well defined on a LorentzVector, for example, this was not the intended behaviour of the function, which supposedly should run only on 3D vectors. In particular eta on a 4-momentum was returning the wrong results.
Changed the checks on rows to be exactly 3. In the future the eta/theta could be properly defined on 4d vectors as well by choosing a convention for the indices of the 4D vector
Copy link
Member

@paulgessinger paulgessinger left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM!

@codecov
Copy link

codecov bot commented Dec 2, 2022

Codecov Report

Merging #1706 (79b7e20) into main (d5ec42e) will not change coverage.
The diff coverage is n/a.

@@           Coverage Diff           @@
##             main    #1706   +/-   ##
=======================================
  Coverage   49.28%   49.28%           
=======================================
  Files         398      398           
  Lines       21787    21787           
  Branches     9884     9884           
=======================================
  Hits        10737    10737           
  Misses       4201     4201           
  Partials     6849     6849           
Impacted Files Coverage Δ
Core/include/Acts/Utilities/Helpers.hpp 68.60% <ø> (ø)

📣 We’re building smart automated test selection to slash your CI/CD build times. Learn more

@github-actions
Copy link

github-actions bot commented Dec 2, 2022

📊 Physics performance monitoring for 79b7e20

Full report
Seeding: seeded, truth estimated, orthogonal
CKF: seeded, truth smeared, truth estimated, orthogonal
IVF: seeded, truth smeared, truth estimated, orthogonal
Ambiguity resolution: seeded, orthogonal
Truth tracking
Truth tracking (GSF)

Vertexing

Vertexing vs. mu
IVF seeded

IVF truth_smeared

IVF truth_estimated

IVF orthogonal

Seeding

Seeding seeded

Seeding truth_estimated

Seeding orthogonal

CKF

CKF seeded

CKF truth_smeared

CKF truth_estimated

CKF orthogonal

Ambiguity resolution

seeded

Truth tracking (Kalman Filter)

Truth tracking

Truth tracking (GSF)

Truth tracking

@benjaminhuth benjaminhuth added this to the next milestone Dec 3, 2022
@benjaminhuth
Copy link
Member

Ah you might need to add @pbutti to your CI-bridge-allow-list @paulgessinger ?

@kodiakhq kodiakhq bot merged commit e2ed9fb into acts-project:main Dec 8, 2022
@github-actions github-actions bot removed the automerge label Dec 8, 2022
pbutti added a commit to pbutti/acts that referenced this pull request Dec 13, 2022
The theta and eta calls could be done on 4D vectors. While they are well defined on a LorentzVector, for example, this was not the intended behaviour of the function, which supposedly should run only on 3D vectors. In particular eta on a 4-momentum was returning the wrong results. Changed the checks on rows to be exactly 3. In the future the eta/theta could be properly defined on 4d vectors as well by choosing a convention for the indices of the 4D vector
@paulgessinger paulgessinger modified the milestones: next, v22.0.0 Dec 21, 2022
CarloVarni pushed a commit to CarloVarni/acts that referenced this pull request Dec 22, 2022
The theta and eta calls could be done on 4D vectors. While they are well defined on a LorentzVector, for example, this was not the intended behaviour of the function, which supposedly should run only on 3D vectors. In particular eta on a 4-momentum was returning the wrong results. Changed the checks on rows to be exactly 3. In the future the eta/theta could be properly defined on 4d vectors as well by choosing a convention for the indices of the 4D vector
@pbutti pbutti deleted the pbutti-etatheta branch February 8, 2023 10:45
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

3 participants