Hi Kerry, This long standing problem is now fixed in the CVS version. Rene Brun "LEE, KERRY T. (JSC-SR) (UHCL)" wrote: > > Dear ROOT team, > > I am using the new ROOT version 4.00/02 with intel's icc 8.0 compiler, on > Gentoo 1.2 linux distribution. > > Using the Event executable from $ROOTSYS/test, I created an Event.root file. > I then started a ROOT session and loaded the Event.root file and started the > a TreeViewer session (T->StartViewer()). I then made a plot of > fNvertex:fNseg and using the TCanvas Editor I made a graphical cut and > renamed it cut1. Then I made the same plot again with cut1 listed in the > scissor box, and the proper plot was displayed. I then made the same plot > again and got the error > > *ERROR 30 : > Bad numerical expression : "cut1" > > In earlier versions all graphical cuts were persistant, but it seems they > are deleted now after a single plot. Is this intended? > > Thanks > Kerry > > Below is the full ROOT session commands > > bash-2.05b# root > ******************************************* > * * > * W E L C O M E to R O O T * > * * > * Version 4.00/02 21 February 2004 * > * * > * You are welcome to visit our Web site * > * http://root.cern.ch * > * * > ******************************************* > > FreeType Engine v2.1.3 used to render TrueType fonts. > Compiled for linuxicc with thread support. > > CINT/ROOT C/C++ Interpreter version 5.15.123, Feb 9 2004 > Type ? for help. Commands must be C++ statements. > Enclose multiple statements between { }. > root [0] .L libEvent.so > root [1] TFile *f = new TFile("Event.root") > root [2] f.ls() > TFile** Event.root TTree benchmark ROOT file > TFile* Event.root TTree benchmark ROOT file > KEY: TProcessID ProcessID0;1 000e7fd6-a22e-103b-b256-0100007fbeef > KEY: TH1F htime;1 Real-Time to write versus time > KEY: TTree T;1 An example of a ROOT tree > KEY: TH1F hstat;1 Event Histogram > root [3] T->StartViewer() > tv__tree = (TTree *) gROOT->FindObject("T"); > tv__tree_list->Add(tv__tree); > File name : Event.root > root [4] firstentry=0, nentries=400 > tv__tree->Draw("fNvertex:fNseg","","", 400, 0); > <TCanvas::MakeDefCanvas>: created default TCanvas with name c1 > firstentry=0, nentries=400 > tv__tree->Draw("fNvertex:fNseg","cut1","", 400, 0); > firstentry=0, nentries=400 > tv__tree->Draw("fNvertex:fNseg","cut1","", 400, 0); > > *ERROR 30 : > Bad numerical expression : "cut1"
This archive was generated by hypermail 2b29 : Sun Jan 02 2005 - 05:50:06 MET