[ROOT] How to get the value of parameters in ntuple

From: Wang Xu (wangxu@mit.edu)
Date: Tue Mar 27 2001 - 18:51:56 MEST


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