Hi Jan,
There is no equivalent og Hpak, simply because I do not want
to implement this function for all possible data types.
It is so simple and trivial to replace your loop by:
h1=new TH1F("Test", 100, -5., 5.);
for (int i=0;i<100;i++) h1->SetBinContent(i,i*i);
Rene Brun
On Tue, 30 Nov 1999, Valery Fine wrote:
> ----- Original Message -----
> From: Jan Balewski <balewski@iucf.indiana.edu>
> Subject: call HPAK() in root
>
>
> > Hi,
> > I try to find a memeber fuction which project the whole array to
> > the root histo. Perhaps you know its name?
> >
> > I hbook it would look like this:
> >
> > real a(100)
> > do i=1,100
> > a(i)=i*i
> > enddo
> > call hbook(10,'test',100,-5.,5.)
> > call hpak(10,a) <======
> >
> > In Root I have
> >
> > float a[100];
> > for(i...
> > ...
> >
> > h1=new TH1F("Test", 100, -5., 5.);
> > h1->pak(a) <===== ????
> >
> > with regards
> >
> > Jan
>
>
This archive was generated by hypermail 2b29 : Tue Jan 04 2000 - 00:43:43 MET