Hi,
In file1, I created a ntuple "si_en":
TFile *ntfile = new TFile("Science.root","RECREATE","ATIC SCIENCE NTUPLE",2);
TNtuple *si_en = new TNtuple("si_en","SI ENERGY","inx:iny:ed");
In file 2, I want to extract the values of ed in si_en one by one:
char s1[80],s2[80];
Int_t i,j;
TCanvas *can;
TFile *ntfile = new TFile("Science.root");
gStyle->SetOptStat(1);
TNtuple *nt;
nt = (TNtuple*)ntfile->Get("si_en");
for( i=0 ; i<12 ; i++ ){
for( j=8 ; j<48 ; j++ ){
???
How can I extract the values of inx, iny, and ed of ntuple, si_en
one by one?
---
Thanks,
Jayoung
This archive was generated by hypermail 2b29 : Tue Jan 02 2001 - 11:50:18 MET