Fitting problem with Gaussian and polynomial in histogram

I want to do fitting by Gaussian and pol1 in a histogram, how can I write a code for pol1?

I guess you can find some useful information in the ROOT fitting tutorials.