-
Notifications
You must be signed in to change notification settings - Fork 4.6k
Delete obsolete TTTrack::stubPtConsistency function #49565
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
base: master
Are you sure you want to change the base?
Conversation
|
cms-bot internal usage |
|
+code-checks Logs: https://cmssdt.cern.ch/SDT/code-checks/cms-sw-PR-49565/47091
|
|
Pull request #49565 was updated. |
|
@cmsbuild please test |
|
A new Pull Request was created by @tomalin for master. It involves the following packages:
@BenjaminRS, @ctarricone, @gabrielmscampos, @nothingface0, @quinnanm, @rseidita can you please review it and eventually sign? Thanks. cms-bot commands are listed here |
|
+1 Size: This PR adds an extra 16KB to repository DAS Queries: The DAS query tests failed, see the summary page for details. Comparison SummarySummary:
|
|
+dqm |
|
Milestone for this pull request has been moved to CMSSW_16_1_X. Please open a backport if it should also go in to CMSSW_16_0_X. |
| float chi2BendRed = | ||
| StubPtConsistency::getConsistency(aTrack, theTrackerGeom, tTopo, settings_.bfield(), settings_.nHelixPar()); | ||
| aTrack.setChi2BendRed(chi2BendRed); |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I don't believe we need to create a new variable chi2BendRed but instead can just use:
| float chi2BendRed = | |
| StubPtConsistency::getConsistency(aTrack, theTrackerGeom, tTopo, settings_.bfield(), settings_.nHelixPar()); | |
| aTrack.setChi2BendRed(chi2BendRed); | |
| aTrack.setChi2BendRed(StubPtConsistency::getConsistency(aTrack, theTrackerGeom, tTopo, settings_.bfield(), settings_.nHelixPar())); |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
True, but it's a matter of taste. I found two shorter lines more comprehensible than one long line. I can change it if you like.
| return; | ||
| } | ||
|
|
||
| /// StubPtConsistency |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Do we need to have a templated method for the proper way the variable should be accessed?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Do you mean, should function chi2BendRed() be templated? Why would it be? Which template argument do you want?
P.S. All data members of TTTrack are double, which seems a waste of space to me. Sometime we should replace them by float, but that would break backwards compatibility ...
PR description:
Some years ago, In the TTTrack class, which represents L1 tracks, the function stubPtConsistency() was renamed chi2BendRed(). The new name gave a clearer idea what this function did, which is to return a chi2/dof (also known as reduced chi2) that was formed from the stub bend information.
However, at that time a duplicate function with the original name was retained in TTTrack, to avoid breaking anyone's code.
This PR finally finally deletes function stubPtConsistency(), and updates the few classes that had not yet migrated to the new function name.
This has no effect on L1 tracking performance, since it is only a name change,