Re: [ROOT] How about the "floating point exception"

From: Rene Brun (Rene.Brun@cern.ch)
Date: Tue Dec 03 2002 - 23:28:03 MET


Please identify your version first.

In case you are using a version older than 3.03/09, please try with this
version.

If the symptom persists, send a small data file and a script
showing the problem.

Rene Brun

On Tue, 3 Dec 2002, Datao Gong wrote:

> Hi,
> I convert a ntuple file to root file. I analysis it via root like
> that:
> ...
> TFile *f = new TFile("myroot.root");
> Three *tree = h1;   //This is Three key in root file.
> TCut vtxcut("sqrt(Ksvx*Ksvx+Ksvy*Ksvy+Ksvz*Ksvz)>0.03");
> TCut richcut("Ksrhphs1>3&&Ksrhphs2>3&&Ksrh1==1&&Ksrh2==1\
> &&Ksrhpil1<Ksrhkl1&&Ksrhpil2<Ksrhkl2");
> tree->Draw("Ksmass",vtxcut&&richcut);
>  *** Break *** floating point exception
> 
> But if
> tree->Draw("Ksmass",vtxcut);
> or
> tree->Draw("Ksmass",richcut);
> 
> it is ok!
> 
> It seems strange.
> 
> Thank you
> Gong Datao
> 
> 
> 



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