Subtracting 2 histograms using ROOT

Hello
I am trying to subtract 2 histograms by using
new->Add(h1, h2, -1.0, 1.0);
it give me the expected number of entries, but the distribution is flat, while it is supposed to be gauss.
here the code I am using, if anyone have any ideas let me know please.
many thanks in advance.
dif.cc (578 Bytes)

Your β€œang” histogram has just one bin.

1 Like

Thanks for your response, I edited it and it is working now