-
Notifications
You must be signed in to change notification settings - Fork 2
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
Start and End Direction Not Filled When Kalman Filter is Turned Off #168
Comments
In the same vein, the reco track should include info on which plane and bar the last hit is on. This has a number of uses, include the ND physics sample cut as well as bar-by-bar calibration. I'd add it but I don't want to add it twice |
Part of the logic to having them separate was that one Kalman node does not necessarily correspond one-to-one to hits, so multiple hits in a single layer are considered together. My feeling would also be that we should only have one variable for this, but the two we have differ subtley. Any feelings on this? |
The TrackMatching calculates a Direction for the start of the track. That is saved into TMS_Track and could be written onto the output Reco_Tree and overwritten by the Kalman result if there is one. |
I just checked and the problem with it not being filled is coming from the fact that the direction calculation is first of all commented out on main in TrackMatching3D and second that it still sets the Direction variable instead of the StartDirection variable. The former does not exist anymore... Need to fix that for sure |
@LiamOS, I think Kalman is dissimilar enough to keep them separate for now. It is a bit strange because we use the 3d track to recover the primary true particle. It's possible, though unlikely, that the kalman fit could remove enough energy that the primary true particle changes |
This is
Reco_Tree->Show(1)
from/exp/dune/data/users/kleykamp/dune-tms/2024-09-30_MicroProdN1p2_dune-tms0.3.0_no_kalman.tmsreco.root
, which isv0.3.0
with kalman filter turned off in the config:I also noticed that
KalmanPos
uses the nameTrackHitPos
:https://github.com/DUNE/dune-tms/blob/main/src/TMS_TreeWriter.cpp#L234-L235
I think the purpose of the Reco_Tree was to provide the final "best" track information for the cafs. So we probably don't want a separate kalman track branch. Instead, it should replace the information from the 3d track. And then in the Line_Candidates ttree, we should save each separately for debugging and validation
So start and end direction should use the kalman filter track info if available and otherwise use the 3d reco track
The text was updated successfully, but these errors were encountered: