Open jdkio opened 2 months ago
In this example the x and y value of the reco is 0 (or to a very good approximation). Unlikely but possible. The (assumed) output from the Kalman filter then turns this into something senseful for x and something completely out of bounds for y. So my guess is that something is going wrong there with the Kalman filter which shouldn't be the completely up-to-date version of it afaik
Is this solved with the merge?
Not completely I don't think.
I don't understand the kalman filter. The y value is wrong, but are the steps before it doing something wrong? A kalman track can go outside the TMS if the muon is entering or exiting. But if we used a real hit to make this node, then this node should be constrained in the TMS. If that's the case, then it might help to print the inputs to the calculation and then see what went wrong
Actually, we assign a large y uncertainty to hits, but we know it must be constrained into the active region of the TMS. Can you change the y uncertainty as it gets close to the edge to take this into account? Assuming you can't do a 2 sided uncertainty, always make the y center be +15cm from edge assuming an uncertainty of 30cm
Uncertainties have to be Gaussian by construction, and thus symmetric. The reason particles end up outside the detector seems to be twofold:
I've added track smoothing in https://github.com/DUNE/dune-tms/tree/kleykamp_track_smoothing I need to validate it properly. But it seems to sometimes help, but not all the time. Like in some cases, the y error message disappears, but in other cases it's back. That may be because it's not doing exactly what I'm trying to do, and validating will fix it
Running
ConvertToTMSTree.exe /pnfs/dune/persistent/users/abooth/nd-production/MicroProdN1p2/output/run-spill-build/MicroProdN1p2_NDLAr_1E18_RHC.spill.nu/EDEPSIM_SPILLS/0000000/0000100/MicroProdN1p2_NDLAr_1E18_RHC.spill.nu.0000101.EDEPSIM_SPILLS.root
7 is
kUnknown
in Material.h. Here it is with extra printouts:This causes issues because
Material matter(density);
gets a density of 2.82Made material with unknown fMaterialType, given density 2.82
This causes issues whenSetProperties()
is run becauseIn my
kleykamp_issue_158
branch, I'm throwing an error and catching it instead. This prevents the material from being updated in the bethe block calculation. But ideally we fix this so the positions are never outside the TMS in the first place