Filling existing histogram with fake data

Hi,
I have created a histogram from a tree . I need to introduce fake data, a gaussian with a mean say 15 in order to test if my background +signal fit (for small gaussians on background), works if I introduce this new data. Can some one tell me how I can go about doing this? I tried using the Fill method but I don’t think I am doing it right. I am still new to root so this is probably really easy but I am failing to see the way to do this.
Thanks!
Aara

Hi,

See TH1::FillRandom

Cheers,
Philippe.

Hi Philippe,
Thanks, I got it now.