Hi, The file Event.root is discussed in the few pages before the description of TEventList in Chapter 12. It is generated in $ROOTSYS/test by the Event test program. To generate this file, go to the test directory make Event <====this will make libEvent.so and the Event executable Event 500 0 99 1 <===this will generate Event.root In an interactive session, do root > gSystem->Load("libEvent"); root > TFile f("Event.root"); root > T->Draw(">>mylist","fNtrack>600") Rene Brun Sudeep Chatterji wrote: > > Hi, > In the chapter No.12 on tree, I am facing one problem. In the section "Creating an Event list", I am trying to run the following program. > TFile *f=new TFile("Event.root") > T->Draw(">>myList","fNtrack>600") > Now i have two problems:- > 1)The file Event.root is not available in root. > 2)Even if Event.root is available the above commands are still giving the error, > "T is not define in the current scope". > Is it because we have to generate it using the .dat file? > regards, > sudeep.
This archive was generated by hypermail 2b29 : Sun Jan 02 2005 - 05:50:05 MET