Drawing a function on a filled TH2F histo

Hello

I`m filling a a histogram in a loop:

tot_vs_tdrif_after[channel]->Fill(ftime_sync[channel],tot_sync[channel]);

I want to draw a function on this histogram with fixed parameters (also in a loop, when i do the Fit it works fine), my second question is regarding a graphical cut witch I`m preforming later on in a way :

if ((tot_sync[channel]) < fit1->Eval(ftime_sync[channel]) ) (with fit it works)

Will it work, when ill draw this function instead of preforming a fit ?

Cheers

Jacek