-
Notifications
You must be signed in to change notification settings - Fork 11
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
TRestHits: error in gaussian fit is now defined by the user #428
Conversation
It seems that Therefore, a potential prototyping is:
|
I don't see why we need two counters here
Both take always the same value inside the loop, so |
In the beginning I thought about leaving the option to the user, mainly thinking about data in which all the channels are saved. But then I found that it is usually better to just use it always. However, I left it there as a hint in case at some point we decide it should be controled by the user, or even if we want to activate it only if the number of hits is smaller than some number, e.g., like in the comment in line 778: For now I think it is fine as it is, but I also don't mind changing it if you think it's better. |
Perhaps then what you want to pass by argument is the number of hits from which you consider the event has few hits, and correction should be applied.
The correction applies to events with hits below |
…ired to apply hit correction in gaussian fits
No, they don't take the same value.
where nAdd is the number of hits that we artificially add to the event. |
This PR is required by PR rest-for-physics/detectorlib#82
The hard coded numbers are now arguments of the functions.