Changeset 2628 in Sophya for trunk/SophyaLib/HiStats/histos.cc


Ignore:
Timestamp:
Oct 13, 2004, 6:41:33 PM (21 years ago)
Author:
cmv
Message:

NEntries goes from int_4 to uint_8 cmv 13/10/04

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/SophyaLib/HiStats/histos.cc

    r2619 r2628  
    11//
    2 // $Id: histos.cc,v 1.19 2004-09-15 15:36:54 cmv Exp $
     2// $Id: histos.cc,v 1.20 2004-10-13 16:41:33 cmv Exp $
    33//
    44
     
    7575  mUnder = mOver = mMin = mMax = binWidth= 0.;
    7676  nHist = 0.;
    77   nEntries = mBins = 0;
     77  mBins = 0;
     78  nEntries = 0;
    7879}
    7980
     
    14461447// Lecture entete
    14471448is.GetLine(strg, 255);
     1449bool nentries_en_8_bytes=false;
     1450if(strg[0]=='V' && strg[1]=='_' && strg[2]=='2') nentries_en_8_bytes=true;
    14481451is.GetLine(strg, 255);
    14491452is.GetLine(strg, 255);
     
    14511454// Lecture des valeurs
    14521455is.Get(dobj->mBins);
    1453 is.Get(dobj->nEntries);
     1456if(nentries_en_8_bytes) is.Get(dobj->nEntries);
     1457 else {int_4 dum; is.Get(dum); dobj->nEntries=(uint_8)dum;}
    14541458int_4 errok;
    14551459is.Get(errok);
     
    14881492
    14891493// Ecriture entete pour identifier facilement
    1490 sprintf(strg,"mBins=%6d  NEnt=%15d  errok=%1d",dobj->mBins,dobj->nEntries,errok);
     1494sprintf(strg,"V_2 mBins=%6d  NEnt=%15d  errok=%1d",dobj->mBins,dobj->nEntries,errok);
    14911495os.PutLine(strg);
    14921496sprintf(strg,"binw=%g  mMin=%g mMax=%g",dobj->binWidth,dobj->mMin,dobj->mMax);
Note: See TracChangeset for help on using the changeset viewer.