TH2D Add() and GetSumOfWeights()

Hi root experts,
I have five TH2D type histograms and I add them through root function Add(); then I got the total sum of weights of the added histogram through GetSumOfWeights(). First method, call GetSumOfWeights() in each histogram, and then add the five returned numbers. Second method, call
GetSumOfWeights() in the total histogram. these two method give different total sum of weights. After defining the histogram for the total histogram, I have used Sumw2(). Is there anythings tricky that made this anomalous?

Hi @renqipan ,
we need @moneta 's help, let’s ping him – but things might be slow during the holiday season.


problem solved. it’s an error due to my own code

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