IntegrateMDHistoWorkspace, account for number of events #12475
Labels
Framework
Issues and pull requests related to components in the Framework
High Priority
An issue or pull request that if not addressed is severe enough to postponse a release.
Vates
Milestone
This ticket is blocked by :
Thus far, the contribution to each output bin is based on overlap with input bins. The fraction overlap is calculated, and used to assign a weight, which the signal and error_sq of each contributing bin is multiplied through by. I have not accounted for the number of pixels. Clearly the number of events from contributing bins needs to be accounted for.
After discussion with scientists (namely Andrei) on this, it would seem that the best way to handle this is to simply multiply the n_events from each contributing bin by the weight and assign the output to the n_events array in the output workspace. MDHisto workspace already have the n_events array concept, so we merely need to sum (n_events * weight) for each contributing bin.
Keywords: vates
The text was updated successfully, but these errors were encountered: