Hi Wang, I suggest you try the following: -h1->MakeCode("wang.C"); this will generate a skeleton analysis code for your ntuple h1. You have to fill the loop where you can access directly your variables, x, etc.. you have the control on the event loop -h1->MakeCode("wang"); this will generate an analysis class in files wang.h and wang.C See comments in wang.C You have the control on the event loop -h1->MakeSelector("wang"); same as MakeClass. You do not have the control on the event loop. This is the recommended method designed in view of PROOF (Parallel Root Facility) Rene Brun Wang Xu wrote: > > Dear Rooters, > I want to dump some parameters of each event in ntuple. What I did > is following: > TFile f("ntuple.root") > h1->Scan("x","","",1,100) // h1 is the name of the nutple > The result coming out is: > ************************ > * Row * x * > ************************ > * 100 * 8.9761562 * > ************************ > But my intention is to get value of x (8.9761562) not printing the > value. So I could use this value to do a further calculation. Do you > know a way to easily get value of x for a cerntain event in Root? > Thanks, > wang
This archive was generated by hypermail 2b29 : Tue Jan 01 2002 - 17:50:40 MET