Good norming
I write a code to convert ROOT file into text file :
for (int j=90;j<100;j++) { //boucle on file
file_nb=j;
sprintf(line,"1101B%.3d.ROOT",file_nb);
f = TFile::Open(line);
if (f->IsZombie()) continue;
printf("selected file : %s\n",line);
TTree* ntuple = (TTree*)gDirectory->Get("ntuple");
//Set branch addresses
ntuple->SetBranchAddress("hauteur",&hauteur);
ntuple->SetBranchAddress("ratio",&ratio);
ntuple->SetBranchAddress("beta_aerosol",&beta_aerosol);
ntuple->SetBranchAddress("beta_rayleigh",&beta_rayleigh);
ntuple->SetBranchAddress("raw_signal",&raw_signal);
ntuple->SetBranchAddress("signal_r2",&signal_r2);
but my code is compiling and the exe file is created
when I execute if I read :
Error in <TKey::ReadObj>: Unknown class TNtuple
I don't understand why ?
I am running on Windows 2000 with ROOT 3.03/08.
could you help me again
thank
-------
Sylvain Geffroy
http://lasim.univ-lyon1.fr/perso/geffroy/
This archive was generated by hypermail 2b29 : Sat Jan 04 2003 - 23:51:06 MET