Is it possible to normalize or divide one axis of THnSparse by another TH1D histogram when we do THnSparse::Projection in 2D?


Please read tips for efficient and successful posting and posting code

_ROOT Version: 6.18/04
_Compiler:c++

May be @moneta as an answer.

Hi,

There is no specific function for doing this. With THnSparse::Projection only standard projections (sums of bins in other axes) are supported.
It is possible what you are asking, but you would need to implement it by looping on bin contents and do the operation as you wish.

Lorenzo

Thank you so much for your reply.