ROOT Convolution with .txt file of data values

Dear Experts,

I am new to using a lot of the functions in ROOT and I’m having trouble performing a convolution of a graph generated from a .txt file with a Gaussian. I looked up and checked the ROOT tutorial:
fitConvolution.C, but I’m a little confused about how to substitute my graph for the exponential in said example. Maybe I’m missing something but I don’t know what it would be. Any help or advice would be greatly appreciated. Thank you!

ROOT Version: 6.14/04
Built for macosx64
From tags/v6-14-04@v6-14-04
(I use MacBookAir.)

I think @moneta can help.

Hi,
The code shown in the tutorial works for a function describing your true signal. You can easily create a TF1 from a TGraph as in the example code I attached here

test_GraphConv.C (621 Bytes)

Cheers

Lorenzo