Hi everybody, we are trying to write a list of data on a file. We tried to launch "fprintf" from a Macro (automatically generated by ROOT(MakeClass), to make a loop on a Tree), as follows: TCanvas *FinA = new TCanvas("FinA","Energy per plane",1); FILE *sigmaf = fopen("sigma100.dat","w"); Float_t sigma[18]; for (Int_t i=1; i<=18; i++) { EnergyOnPlane[i]->SetMaximum(1200); EnergyOnPlane[i]->Draw(); EnergyOnPlane[i]->Fit("gaus"); sigma[i-1]=gaus->GetParameter(2); fprintf(sigmaf,"%f \n",sigma[i-1]); <<<-----??? FinA->Update(); char w = getchar(); } The file is correctly created, but appears to be empty... Any idea why? Thanks, Alberto _________________________________________________________________ Get your FREE download of MSN Explorer at http://explorer.msn.com/intl.asp
This archive was generated by hypermail 2b29 : Tue Jan 01 2002 - 17:51:11 MET