2d histogram problems (fwd)

Jeffrey Reid (jgreid@u.washington.edu)
Thu, 15 Jul 1999 13:30:07 -0700 (PDT)


I have been having problems with TH2F::Fill in Root 2.22.06. It seems
that it is protected or private when it should be public. This worked
in previous versions, did something change?

---------- Forwarded message ----------
Date: Thu, 15 Jul 1999 12:57:31 -0500 (CDT)
From: Herb Ward <ward@physics.utexas.edu>
Reply-To: starsoft-l@bnl.gov
To: starsoft-l@bnl.gov
Subject: Re: 2d histo in root4star

J,

> You are using STAR_LEVEL : dev and ROOT_LEVEL : 2.22.06
> root4star [0] TH2F testH("test","Test",100,0,1,100,0,1)
> root4star [1] testH.Fill(0.1,0.1)
> Error: TH2F::Fill is private or protected FILE:/var/tmp/caa0MzEe7_cint
> LINE:1
> (unknown)12
> *** Interpreter error recovered ***

I added two commands to yours and elicited a crash:

root> TH2F testH("test","Test",100,0,1,100,0,1)
root> testH.Fill(0.1,0.1)
...
root> TH2F testH999("test","Test",100,0,1,100,0,1)
root> testH999.Fill(0.1,0.1)
Error: TH2F::Fill is private or protected FILE:/tmp/29451eaa_cint LINE:1
*** Break *** segmentation violation
------------------------------------------

---------------------------------------------------------------------
Jeffrey G Reid | jgreid@u.washington.edu | UW Nuclear Physics Lab
=====================================================================