In the following piece of code, I’m converting Gaussians (TF1’s) to histograms (TH1D) in order to add them up in an eventloop. Adding up TF1’s failed since there is a limit on the number of iteration. With histograms, it works, however on the edges peaks are appearing that should be there, so I guess that out-of-range events are being added there. Is there a way to avoid that?