{ using namespace RooFit; RooRealVar t("t","t",0.,10.); RooRealVar tau("tau","Decay lifetime",1.6); RooGaussModel res("res","Resolution model",t,RooConst(0.),RooConst(0.2)); RooDecay model("model","model",t,tau,res,RooDecay::SingleSided); RooPlot *frame = t.frame(); model.plotOn(frame); frame->Draw(); }