Hi Jacek,
This is a CINT problem. You should code like:
Int_t nentries = (INt_t)NS->GetEntries();
NS->SetEstimate(nentries);
I was thinking, by the way, to automatize this frequent case with
NS->SetEstimate(0);
Rene Brun
Jacek M. Holeczek wrote:
>
> Hi,
> The ROOT is 3.02/07 on a RH6.2 with egcs-1.1.2.
> -----------------------------------------------
> root [0] TFile *f = new TFile("Vacuum.250.15.root") // file with NS TNtuple
> root [1] NS->Print()
> ******************************************************************************
> *Tree :NS : NS *
> *Entries : 13171875 : Total = 739067272 bytes File Size = 227480705 *
> * : : Tree compression factor = 3.25 *
> ******************************************************************************
> (...)
> *............................................................................*
> root [2] NS->SetEstimate(NS->GetEntries())
> Error: Symbol NS is not defined in current scope FILE:/tmp/filefIIcvo_cint LINE:1
> Error: Failed to evaluate NS->GetEntries()Possible candidates are...
> filename line:size busy function type and name
> *** Interpreter error recovered ***
> root [3] NS->SetEstimate(1e6)
> root [4] NS->Draw("ACPE:E","NuAlpha == 1")
> <TCanvas::MakeDefCanvas>: created default TCanvas with name c1
> (Int_t)4390625
> root [5] NS->SetEstimate(1e7) // 1e7 too big ???
> root [6] NS->Draw("ACPE:E","NuAlpha == 1")
> (Int_t)4390625
>
> *** Break *** write on a pipe with no one to read it
> Error in <RootX11IOErrorHandler>: fatal X11 error (connection to server lost?!)
>
> **** Save data and exit application ****
> -----------------------------------------------
> Best regards,
> Jacek.
This archive was generated by hypermail 2b29 : Sat Jan 04 2003 - 23:50:41 MET