RE: [ROOT] TNtuple problems.

From: Philippe Canal (pcanal@fnal.gov)
Date: Thu Aug 29 2002 - 00:25:54 MEST


Hi Ray,

Thanks for noting this problem.  This should be fixed shortly in CVS (+/-
being away time).

To work around the problem you can add

	foo->SetDirectory(0);

after the TNtuple creation.

Cheers,
Philippe

-----Original Message-----
From: owner-roottalk@pcroot.cern.ch
[mailto:owner-roottalk@pcroot.cern.ch]On Behalf Of Ray Fliller III
Sent: Wednesday, August 28, 2002 3:38 PM
To: ROOT mailing list
Subject: [ROOT] TNtuple problems.




  Hello Rooters,

    I am using root CVS as of August 26, on LINUX Mandrake 8.2.

  I can't seem to Fill an TNtuple. Here is a root session:

root [0] foo=new TNtuple("foo","footitle","x:y:z")
(class TNtuple*)0x89789b8
root [1] foo->GetNvar()
(const Int_t)3
root [2] foo->GetArgs()
(const Float_t*)0x8979d70
root [3] Float_t x[3];
root [4] x[0]=0;x[1]=1;x[2]=2;
root [5] foo->Fill(x)

 *** Break *** segmentation violation

if I try foo->Fill(0,1,2) I get the same error.

It works under ROOT 3.02/07.



--

 RAINMAN
      "How much does a piece of gum cost Ray?"
      "About $100."
      "How much does a new car cost Ray?"
      "`Bout $100."
      "There goes working for NASA!"

==================================================================
Ray Fliller: rfliller@bnl.gov      Office Phone: (631)-344-6124
C-A Accelerator Physics            Dept. Fax: (631)-344-5954
Building 911B
Brookhaven National Lab
Upton, NY 11973                    Office: Room 211

http://www.agsrhichome.bnl.gov/People/rfliller/
==================================================================



This archive was generated by hypermail 2b29 : Sat Jan 04 2003 - 23:51:06 MET