Hello,

I am (a bit) experienced at root but not with RooFit. I should now convert our analysis code to RooFit. My task is to fit the convolution of a gaus PDF with a step function pdf to our data.

Right know we calculate the convolution by our self and aproximate a fit function from it.

The new plan is to use RooFit for that and use its numerical convolution properties so that we can use more complex PDF for our more complex experimental geometries.

To get a gauss PDF seems pretty simple:

RooGaussian gaus(“gaus”, “gaus function”, x, mean, sigma);

My problem is to get a step function pdf which is 1 for -r <= x <= r and else 0 and then do the convolution.

Can anyone help me, please?