You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
When merging two TProfile2D that have a different number of bins but are none-the-less compatible to be merged (bin boundaries align), I have noticed that the bin entries are not being preserved. Please see the reproducer below. Reproduced in ROOT master.
Reproducer
{
TProfile2D h("h","h",1,0,1,1,0,1);
h.SetCanExtend(TH1::kAllAxes);
auto h2 = dynamic_cast<TProfile2D*>(h.Clone());
h.Fill(0.5,0.5,0);
h2->Fill(1.5,0.5,0);
TList l;
l.Add(h2);
h.Merge(&l);
assert( h.GetEntries() == 2 ); // this is fine
double s=0;
for(int i=0;i<h.GetNumberOfBins();i++) s += h.GetBinEntries(i);
assert( s == 2 ); // this fails
}
ROOT version
all
Installation method
any
Operating system
any
Additional context
No response
The text was updated successfully, but these errors were encountered:
Check duplicate issues.
Description
When merging two TProfile2D that have a different number of bins but are none-the-less compatible to be merged (bin boundaries align), I have noticed that the bin entries are not being preserved. Please see the reproducer below. Reproduced in ROOT master.
Reproducer
ROOT version
all
Installation method
any
Operating system
any
Additional context
No response
The text was updated successfully, but these errors were encountered: