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

how to create two TMS_Kalman objects for the same track without having the creation of the first object affect the creation of the second one #179

Open
xiaoyan1997 opened this issue Nov 10, 2024 · 0 comments
Assignees
Labels
bug Something isn't working

Comments

@xiaoyan1997
Copy link
Member

xiaoyan1997 commented Nov 10, 2024

KalmanFilter = TMS_Kalman(trk.Hits, 0.1); //will make the muon chi square smaller

here two TMS_Kalman objects are created for one track. First TMS_Klman object assumes a negative charge, calculates the chi square, the second object assumes a positive charge and calculates the chi square.Then compare the chi square of those two objects and choose the sign of the smaller one as the sign of the charge.
The problem is that the creation of the first object will affect the creation of the second one. For example, if you comment out the code that creates the second one and then run the code, save the result, and then you comment out the code that creates the first one, run the code and save the result. You compare those two results with the result that you run the two simultaneously, you will find that they are different(Actually the first object will be the same, but the second one will be different compared with the result of creating it without having the first ).

@xiaoyan1997 xiaoyan1997 changed the title how to create two TMS_Kalman objects for the same track without having the r=creation of the first object affect the creation of the second one how to create two TMS_Kalman objects for the same track without having the creation of the first object affect the creation of the second one Nov 10, 2024
@LiamOS LiamOS added the bug Something isn't working label Nov 14, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

2 participants