Hi Smbat,
the bug was triggered by THnSparse objects read from file that got additional bins appended; it's fixed in the trunk. Thanks so much for pointing it out!
In your hadd script you commented the nextsource->cd( path ); line - uncomment it and it will work. Otherwise you are adding the first histogram to the first histogram. In your failing example the number of entries was twice the number of entries of the first histogram. BUT this will only work with the trunk, i.e. ROOT from today!
Btw, ROOT's hadd utility will soon add THnSparses, too.
Cheers, Axel.
On 2008-05-15 19:18, Axel Naumann wrote:
> Hi Smbat, > > I see that in your example THnSpare::Add() writes to a memory location > that it shouldn't be writing to. I'll fix it tomorrow. It might or might > not be related to the problem with the number of entries you observed. > > Cheers, Axel > > > Smbat Grigoryan wrote:
This archive was generated by hypermail 2.2.0 : Fri May 16 2008 - 23:50:02 CEST