[ROOT] TTree::Draw error ?!

From: Stefan Iulian (istef_ro@yahoo.com)
Date: Thu Feb 28 2002 - 11:38:34 MET


Hi,

 I compiled root v3.03.02 for linux - Mandrake 8.1.

 If I do:

root [0] TFile f("22mev.root")
root [1] TTree *he=(TTree *)f->Get("h1")
root [2] c1=new TCanvas
(class TCanvas*)0x8cb5c78
root [3] gStyle->SetPalette(1,0)
root [4] gPad
(class TCanvas*)0x8cb5c78
root [5] gPad->SetLogz()
root [6] f.GetSize()
(const Seek_t)332606934
root [7] he->Draw("ie1:ie2","","colz") // works
(Int_t)3156578
root [8] he->Draw("ie1:ie2>>h1(512,,,512)","","colz")
(Int_t)(-1) //?!
root [10] he->GetEntries()

 *** Break *** segmentation violation

root [11] TTree *he=(TTree *)f->Get("h1")
root [12] he->GetEntries()
Error: Symbol nan is not defined in current scope 
FILE: LINE:0
Warning: Unknown type 'unknown' in function argument
handled as int FILE:_iostream LINE:63
(const Double_t)nan
*** Interpreter error recovered ***

root [13] he->Draw("ie1:ie2","","colz")
Error: reference type x with no initialization 
FILE:_iostream LINE:63
(Int_t)3156578
*** Interpreter error recovered ***

root [14] he->Draw("ie1:ie2>>h1(512,,,512)","","colz")
Error: reference type x with no initialization 
FILE:_iostream LINE:63
(Int_t)(-1)


 What I do wrong?

 Iulian

__________________________________________________
Do You Yahoo!?
Yahoo! Greetings - Send FREE e-cards for every occasion!
http://greetings.yahoo.com



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