-
Notifications
You must be signed in to change notification settings - Fork 30
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
Make optical flash information filling detector-agnostic #282
Comments
Labelling "bug" because as it is, this is not compatible with SBND. |
Thanks for resurfacing this, I really did not like leaving it this way. For ICARUS the idea of counting the PEs in one flash on each side of the cathode seemed obviously useful, but since SBND is optically isolated on either side of the cathode I am not sure this kind of accounting makes any sense. Maybe totaling PEs on coated and uncoated PMTs instead of east and west might be useful? Admittedly, I do not know much about SBND. As a tangential note, I needed to do this funny offset thing in |
Unless it has changed recently SBND doesn't refer to East and West walls, but it might be useful that it starts to. The single cryostat of SBND is equivalent to the ones from ICARUS, with a wall of optical detectors on the sides. I believe it is useful to have the sum of PEs on each wall, whilst most interactions will only have PEs on one side, it's possible that particles cross the cathode and a flash has PEs on both walls. I actually use the sum of squared PEs on my flash matcher to decide where a flash centre should be, but I don't store the sum on the SR. I loop through the OpHits of a flash and use the Geometry Service to get their coordinates to decide which wall to sum in this function: sbncode/sbncode/FlashMatch/FlashPredict_module.cc Line 1438 in 405c626
Bare in mind that the function above returns the X position of the wall that has more PE2, the map |
@ikatza , did your PRs that recently went in address this? Or did those not touch filling into the CAFs? |
I did not address this. I did add some new variables to the CAFs, but unrelated to this. |
I'd like to refer back to my original comment here. The slightly tricky part is the fact that
If there is some more clever solution I am missing here, please let me know! |
The code filling the optical flashes was written with ICARUS in mind (see also the review in PR #273).
While this is good for short term, the code needs to be updated.
Incriminated code:
sbncode/sbncode/CAFMaker/FillReco.cxx
Lines 128 to 133 in db3414d
In addition there is somewhere ICARUS-specific code that relies on an unofficial convention (assigning cryostat number according to the data product label); that should also be fixed.
Relevant people:
The text was updated successfully, but these errors were encountered: