[ROOT] SetBinContent for profiles

From: Vincent Boudry (Vincent.Boudry@in2p3.fr)
Date: Tue Jun 05 2001 - 10:18:56 MEST


Bonjour,

The following macro doesn't seem to work (Vers 2.25/03).  Replacing a
profile by a TH1F does the job though.

Best Regards, Vincent Boudry.

{
   TProfile* pp = new TProfile("pp","test profile",10,0.0,10.0);
   int_t i;
   for( i=1; i<=10; i++ ){
	printf("i = %d\n",i);
	Stat_t in = i;
	pp->SetBinContent(i,in);
   }
   pp->Draw();
}



This archive was generated by hypermail 2b29 : Tue Jan 01 2002 - 17:50:48 MET