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

PackedCandidate::dzError should be dszError #45598

Open
slava77 opened this issue Jul 30, 2024 · 9 comments
Open

PackedCandidate::dzError should be dszError #45598

slava77 opened this issue Jul 30, 2024 · 9 comments

Comments

@slava77
Copy link
Contributor

slava77 commented Jul 30, 2024

In TrackBase.h

  inline double TrackBase::dzError() const { return error(i_dsz) * sqrt(p2() / pt2()); }

In PackedCandidate.h

float dzError() const override {
      maybeUnpackCovariance();
      return sqrt((*m_.load())(4, 4));

and that's saved directly from track as

  packedCovariance_.dzdz = packCovarianceElement(m, 4, 4);

@arizzi @cms-sw/tracking-pog-l2 @jordan-martins

We can just simply rename PackedCandidate::dzError to dszError. This will be more visible to users (the old code will not compile). Simply changing the implementation of PackedCandidate::dzError can become confusing.

TBD.

@cmsbuild
Copy link
Contributor

cmsbuild commented Jul 30, 2024

cms-bot internal usage

@cmsbuild
Copy link
Contributor

A new Issue was created by @slava77.

@Dr15Jones, @antoniovilela, @makortel, @mandrenguyen, @rappoccio, @sextonkennedy, @smuzaffar can you please review it and eventually sign/assign? Thanks.

cms-bot commands are listed here

@arizzi
Copy link
Contributor

arizzi commented Jul 30, 2024

I'd say that's just a bug and we should fix it...

@arizzi
Copy link
Contributor

arizzi commented Jul 30, 2024

PS: is the "bestTrack" correctly built? i.e. do I get the correct answer if I ask the bestTrack to the packedCandidate and then take dzError from there?

@makortel
Copy link
Contributor

assign xpog

@cmsbuild
Copy link
Contributor

New categories assigned: xpog

@vlimant,@hqucms,@ftorrresd you have been requested to review this Pull request/Issue and eventually sign? Thanks

@slava77
Copy link
Contributor Author

slava77 commented Jul 30, 2024

PS: is the "bestTrack" correctly built? i.e. do I get the correct answer if I ask the bestTrack to the packedCandidate and then take dzError from there?

yes, bestTrack is OK.
It came up while comparing bestTrack variables with the equivalents available directly from the PackedCandidate

@slava77
Copy link
Contributor Author

slava77 commented Jul 30, 2024

type tracking

@vlimant
Copy link
Contributor

vlimant commented Jul 31, 2024

type pf

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

5 participants