Re: FitSlicesY Not working.

From: Lorenzo Moneta <Lorenzo.Moneta_at_cern.ch>
Date: Thu, 5 Mar 2009 15:37:25 +0100


Hi,

  just do:

h1->FitSlicesY();
Myhis_0->Draw();

Regards

  Lorenzo
On Mar 4, 2009, at 2:17 PM, Anil Singh wrote:

>
> Dear rooters,
>
> I am trying to run some application where I need the FitSliceY()
> functionality.
> A brief summary of what I am doing is :
>
> ==============================================
> {
> TH2D* h1 = new TH2D("Myhis", "Myhis", 100, 0, 1, 100, 0, 1);
> float x, y;
> for(int i=0; i!=2500; i++)
> {
> gRandom->Rannor(x,y);
> h1->Fill(x,y);
> }
>
>
>
> h1->FitSlicesY();
> h1_0->Draw();
> }
> ====================================================
>
> When I run this script all I get is:
>
> Error: Symbol h1_0 is not defined in current scope (tmpfile):1:
> Error: Failed to evaluate h1_0->Draw()
>
>
> ............I am unable to find where I am actually messing up ?
>
> ciao
> ANil
>
>
Received on Thu Mar 05 2009 - 15:37:29 CET

This archive was generated by hypermail 2.2.0 : Thu Mar 05 2009 - 17:50:02 CET