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 error propagation in helixToZ #353

Merged
merged 1 commit into from
Sep 7, 2021
Merged

fix error propagation in helixToZ #353

merged 1 commit into from
Sep 7, 2021

Conversation

cerati
Copy link
Collaborator

@cerati cerati commented Sep 7, 2021

This PR fixes an issue in error propagation in helixToZ.

The effect is to recover the number of strip layers in the high pT 10 mu sample:
http://uaf-10.t2.ucsd.edu/~cerati/plots_Sep05_10mu_testzfix_gcc/plots_building_initialStep/hitsLayers.pdf

This does not have much effect on ttbar.

More plots for both 10mu and ttbar at:
http://uaf-10.t2.ucsd.edu/~cerati/plots_Sep05_10mu_testzfix_gcc/
http://uaf-10.t2.ucsd.edu/~cerati/plots_Sep05_ttbar_testzfix_gcc/

A document with the math I used to derive the jacobian can be found at this link: https://www.overleaf.com/9112147731xmvddqxtwgxq

errorProp(n,1,5) = deltaZ*cosa*( cosP*cosP*sCosPsina + sinP )/(cosT*cosT);
const float pxcaMpysa = pxin*cosa - pyin*sina;
errorProp(n,0,2) = -tanT * ipt * pxcaMpysa;;
errorProp(n,0,3) = 2*k*pt*pt*sinah*(sinP*sinah - cosP*cosah) + deltaZ*tanT*pxcaMpysa;
Copy link
Collaborator

Choose a reason for hiding this comment

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

based on our discussion on skype, this and (1,3) term may need to be refactored to group the large terms (using deltaZ*tanTheta = k*pt*alpha)
here - 2*k*pt*pt*sinah*cosP*cosah = - k*pt*pt*cosP*sina in the first large term is supposed to [almost] cancel out with the right hand side deltaZ*tanT*pxin*cosa = k*pt*pt*alpha*cosP*cosa because - sina + alpha*cosa goes to zero; so, it would be best to have this subtraction explicit instead of shuffled with other terms to avoid loss in numerical precision.

Copy link
Collaborator

Choose a reason for hiding this comment

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

... that's for the follow up PR

@slava77 slava77 merged commit e3256f9 into devel Sep 7, 2021
@osschar osschar deleted the fix-helixtoz-errprop branch December 14, 2021 23:40
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.

2 participants