Folding histogram

Dear ROOT developers,

Does ROOT provide any easy way to fold a histogram with Gaussian and fit it to another histogram?

see tutorial fithist.C

Rene