Re: How to show fit with GetSlicesY()

From: Rene Brun <Rene.Brun_at_cern.ch>
Date: Wed, 10 Oct 2007 16:24:45 +0200


Paul,

Your call parameters are wrong
void TH2::FitSlicesY(TF1 *f1, Int_t binmin, Int_t binmax, Int_t cut, Option_t *option)
May be you want to do instead:

fTruthMinMeasured->FitSlicesY(0,0,0,1,"");

Rene Brun

   Paul Prichard wrote:
> Hi,
>
> I have a 2d histogram which i fit with GetSlicesY(). The options i pass are
>
> fTruthMinMeasured->FitSlicesY(0,1,0,1,"");
>
> This should if i am right turn the options QNR off so it should show
> the fit. I am wondering i there is anyway to access a histogram with
> the fits in, so far i can only get
> hist_0 which is constant
> hist_1 mean
> hist_2 sigma
> hist_Chi2 chi2.
>
> I could do with seeing how good the gaussian fits are in a graphical way.
>
> Thanks
>
> Paul Prichard
>
>
Received on Wed Oct 10 2007 - 16:24:45 CEST

This archive was generated by hypermail 2.2.0 : Fri Oct 12 2007 - 11:50:01 CEST