Changeset 2628 in Sophya for trunk/SophyaLib/HiStats/histos.cc
- Timestamp:
- Oct 13, 2004, 6:41:33 PM (21 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/SophyaLib/HiStats/histos.cc
r2619 r2628 1 1 // 2 // $Id: histos.cc,v 1. 19 2004-09-15 15:36:54cmv Exp $2 // $Id: histos.cc,v 1.20 2004-10-13 16:41:33 cmv Exp $ 3 3 // 4 4 … … 75 75 mUnder = mOver = mMin = mMax = binWidth= 0.; 76 76 nHist = 0.; 77 nEntries = mBins = 0; 77 mBins = 0; 78 nEntries = 0; 78 79 } 79 80 … … 1446 1447 // Lecture entete 1447 1448 is.GetLine(strg, 255); 1449 bool nentries_en_8_bytes=false; 1450 if(strg[0]=='V' && strg[1]=='_' && strg[2]=='2') nentries_en_8_bytes=true; 1448 1451 is.GetLine(strg, 255); 1449 1452 is.GetLine(strg, 255); … … 1451 1454 // Lecture des valeurs 1452 1455 is.Get(dobj->mBins); 1453 is.Get(dobj->nEntries); 1456 if(nentries_en_8_bytes) is.Get(dobj->nEntries); 1457 else {int_4 dum; is.Get(dum); dobj->nEntries=(uint_8)dum;} 1454 1458 int_4 errok; 1455 1459 is.Get(errok); … … 1488 1492 1489 1493 // Ecriture entete pour identifier facilement 1490 sprintf(strg," mBins=%6d NEnt=%15d errok=%1d",dobj->mBins,dobj->nEntries,errok);1494 sprintf(strg,"V_2 mBins=%6d NEnt=%15d errok=%1d",dobj->mBins,dobj->nEntries,errok); 1491 1495 os.PutLine(strg); 1492 1496 sprintf(strg,"binw=%g mMin=%g mMax=%g",dobj->binWidth,dobj->mMin,dobj->mMax);
Note:
See TracChangeset
for help on using the changeset viewer.