Re: Fwd: SliceFit

From: Rene Brun <Rene.Brun_at_cern.ch>
Date: Thu, 20 May 2010 07:00:04 +0200


see the documentation of TH2::FitSlicesY at http://root.cern.ch/root/html/TH2.html#TH2:FitSlicesY You will see several options to retrieve the generated histograms

   -by specifying the last argument (a TObjArray)    -by retrieving histograms by name

Rene Brun

Dupré Raphaël wrote:
> Hi everybody,
>
> I have an array of histograms:
> TH2D* Delphi[20];
>
> I am Fitting it with the SliceFitX function:
> for (int i=0 ; i<20 ; i++){
> Delphi[i]->FitSlicesX(0,5,62,20);}
>
> But I could not find the way to get the _1 histos. In another word how
> to adapt the usual "TH1D *h2_1 = (TH1D*)gDirectory->Get("h2_1");" to
> arrays?
>
> Thanks,
>
> (I am using root 5.26/00)
>
> --
> Raphaël Dupré
>
>
> Argonne National Laboratory
>
> Université Claude Bernard Lyon 1
Received on Thu May 20 2010 - 07:00:10 CEST

This archive was generated by hypermail 2.2.0 : Thu May 20 2010 - 17:50:01 CEST