-
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
Digitization: Threshold discrimination applied too early #1722
Comments
Please, submit a PR. |
Unless there is some specific example that this fixes, I don't think this change is worth making to the simple digitization. Its hard to tell if it will result in a more or less realistic reconstruction, particularly based on how the time of the digitized hit is currently being set to the earliest simulation hit It is very rare cells in our simulation with event based MC samples will ever see more than a single hit. When expanding to time frame samples, the separation of hits over time is important rather than squashing them into a single hit, at which point we need to move to a more detailed description of the FE electronics anyway. |
I assume, the different steps will be summed by DD4hep itself. Multiple hits will appear, for example, when a conversion happens in the cell itself. |
I do not insist. Yet... |
The problem is that both the current implementation and the proposed change are both "wrong". The current method stops spurious negligible hits from setting an early time for the hit while allowing the example @veprbl gave to include energy from both contributions of a conversion (assuming the threshold isn't so low their individual contributions are expected to be lost, but then the threshold is probably too high). The compromise may be to sum over all of the hits but swap the time to the time of the maximum charge hit, but again that can be wrong for other reasons. If we're frequently getting multiple synchrotron radiation hits in the same cell which sum up to a signal we have bigger problems and these need to be studied with a proper realistic digitization scheme. Basically my opinion is that this algorithm has served its purpose and should be phased out, not patched. Others with more clout might hold other opinions. |
I would agree that we should not put excessive effort into a small correction. If we have a PR, it will at least run benchmarks and we can see how significant it is. @simonge Do you have a technical requirements or a TODO list in mind for the proper digitization scheme? |
I can implement this. And then submit a PR, for the purpose of running benchmarks. |
I do have a step by step idea of how it could be implemented which I'd be happy to try and prepare some slides on for a Reconstruction meeting |
FYI, I'm closely following this PR. Once the tech details are hashed out, I plan to revive the logic of the non-merged #1359 |
Hello again,
Is the this presentation already scheduled? If indeed, I would like to be informed... And in any case, I wait until it's done and discussed before taking any action. |
In SiliconTrackerDigi.cc
SimTrackerHits
.I interpret this as a simulation of the discrimination threshold of the FE electronics. If I am correct, then steps 1 and 2 should be swapped.
I put below a patch to implement the fix above. Should I make a PR of it? (and of similar patch to
MPGDTrackerDigi.cc
).The text was updated successfully, but these errors were encountered: