Hi,
I have a TH1 histogram that I want to fit with a TF1 function. I would like to fit the function within a narrow range, and then draw it over a wider range. I tried the obvious things:
TH1F* sub1=(TH1F*)adsdt1->Clone();
sub1->Add(adsdt1w,-1);
TF1 finc1= new TF1(“finc1”,"[0]/(([1][1]+x)([1][1]+x))");
finc1->SetParameter(1,0.1);
finc1->SetRange(0.,0.5);
sub1->Fit(“finc1”,"","",tincmin,tincmax);
finc1->Draw();
sub1->Draw();
but I can’t find the magic combination that will fit in the narrow range from tincmin to tincmax, and then draw over the full 0 to 0.5 range. What am I missing?
Thanks.
Spencer Klein