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

EcalBarrelScFiRawHits: revert back to unitless definitions #583

Merged
merged 2 commits into from
Apr 6, 2023

Conversation

veprbl
Copy link
Member

@veprbl veprbl commented Apr 5, 2023

The current value was introduced in 13b9c92. There should have been three values, and using units for those doesn't make sense from the dimensional analysis point (terms are divided by sqrt(E), 1 and E respectively). Each element of the array would need to have its own unit, but the commonly accepted convention is to use fractions and assume GeV. The actual behavior in reconstruction is not changed by this PR, because the values stay the same.

See also #573

Briefly, what does this PR introduce?

What kind of change does this PR introduce?

  • Bug fix (issue #__)
  • New feature (issue #__)
  • Documentation update
  • Other: __

Please check if this PR fulfills the following:

  • Tests for the changes have been added
  • Documentation has been added / updated
  • Changes have been communicated to collaborators

Does this PR introduce breaking changes? What changes might users need to make to their code?

Does this PR change default behavior?

The current value was introduced in 13b9c92. There should have been three values, and using units for those doesn't make sense from the dimensional analysis point (terms are divided by sqrt(E), 1 and E respectively). Each element of the array would need to have its own unit, but the commonly accepted convention is to use fractions and assume GeV. The actual behavior in reconstruction is not changed by this PR, because the values stay the same.
@veprbl veprbl requested review from Chao1009 and mariakzurek April 5, 2023 00:09
Copy link
Contributor

@wdconinc wdconinc left a comment

Choose a reason for hiding this comment

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

Looks good to me here, but even with zero I think there's a benefit to being explicit with the (correct) units.

@veprbl veprbl merged commit 48f58d1 into main Apr 6, 2023
@veprbl veprbl deleted the pr/EcalBarrelScFiRawHits_eRes_unitless branch April 6, 2023 09:00
@mariakzurek
Copy link
Contributor

I agree, and sorry for the late reply as it is already merged.

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.

4 participants