Histogram Division

ROOT Version: 5.34/36
Platform: lxplus
Compiler: Not Provided
___I’m trying to do histogram division but some bins are empty in my histogram. Is there some convenient way for me to add an entry to all empty bins or simply set their output to be 0 while for the other bins, still do the usual histogram division.


If the bin is empty no division will be performed for those bins and a zero bin content is returned.
If you want you can always set the bin contents of an histogram to the values you want by calling
TH1;:SetBinContent(bin_number, value)



Pretty useful, thank you.

This topic was automatically closed 14 days after the last reply. New replies are no longer allowed.