You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
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 ).
The text was updated successfully, but these errors were encountered:
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
dune-tms/src/TMS_Reco.cpp
Line 735 in f5647ab
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 ).
The text was updated successfully, but these errors were encountered: