Changeset 3247 in Sophya for trunk/SophyaLib/HiStats/histerr.cc
- Timestamp:
- May 15, 2007, 11:49:12 AM (18 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/SophyaLib/HiStats/histerr.cc
r3236 r3247 292 292 fprintf(file,"%ld %.17e %.17e %d\n",(long)NBins(),XMin(),XMax(),NMean()); 293 293 for(long i=0;i<NBins();i++) { 294 fprintf(file,"% d %.17e %.17e %.17e %.0f\n"294 fprintf(file,"%ld %.17e %.17e %.17e %.0f\n" 295 295 ,i,BinCenter(i),(*this)(i),Error2(i),NEntBin(i)); 296 296 } … … 320 320 321 321 r_8 xmin,xmax; long mnmean=1; 322 sscanf(line,"% d %lf %lf %d",&nbin,&xmin,&xmax,&mnmean);322 sscanf(line,"%ld %lf %lf %ld",&nbin,&xmin,&xmax,&mnmean); 323 323 if(nbin<=0) { 324 324 cout<<"HistoErr::ReadASCII_Error: nbin= "<<nbin<<endl; … … 331 331 332 332 long i; r_8 x,v,e2,nb; 333 sscanf(line,"% d %lf %lf %lf %lf",&i,&x,&v,&e2,&nb);333 sscanf(line,"%ld %lf %lf %lf %lf",&i,&x,&v,&e2,&nb); 334 334 SetBin(i,v); 335 335 SetErr2(i,e2);
Note:
See TracChangeset
for help on using the changeset viewer.