-
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
Remove bar size hardcoding #147
Comments
Am adding myself and @AsaNehm on this, the Kalman filter will need a small modification to work with more general bar sizes. I imagine there are some numbers/indices/values in the reco code that assume bar geometry and/or angle that should be generalised. Might be needed to allow TMS_Bar to present some necessary info to the code that needs it. |
Files that have a hard-coded 35.42 in are (only in src)
|
The part in TMS_Bar.cpp is in addition inside a sanity check. So this could be taken out if we know that it works as it is supposed to or change the check from a |
Yeah, TMS is far enough along that we don't need guardrails. We can let users use whatever values they want without any checks (we don't want constant warning messages in the logs) We need to improve tms_geom so that it can return the right answer for any geometry questions. As a first step, we should at least replace all hard coded numbers to TMS geometry function calls. Then we can adjust the functions as needed. We need to think about how to best get the bar width out of the geometry manager |
One additional thing is that the thickness of the scintillator bars is also in many places hardcoded to 10mm. With the new design having 17mm thickness this is going to be a problem as well. |
Took out the sanity check in TMS_Bar.cpp |
@AsaNehm, looks like the sanity check in TMS_Bar is still there. Did you forget to make a PR? |
Didn't forget it but wanted to leave it open for the Kalman filter stuff |
If we run with any other size bar (like when we adjust the geometry), we get
That comes from this hardcoded check here:
dune-tms/src/TMS_Bar.cpp
Line 78 in 5ab577f
That needs to be removed
The text was updated successfully, but these errors were encountered: