Changeset 2628 in Sophya for trunk/SophyaLib/HiStats/histerr.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/histerr.cc

    r2627 r2628  
    185185/********* Methode *********/
    186186/*!
     187 Fill the histogram with an other histogram
     188*/
     189void HistoErr::FillFrHErr(HistoErr& hfrom)
     190{
     191 if(mBins<=0) return;
     192 if(hfrom.mBins<=0) return;
     193
     194 Zero();
     195
     196 for(int_4 i=0;i<hfrom.mBins;i++) {
     197   int numBin = FindBin(hfrom.BinCenter(i));
     198   if(numBin<0) mUnder += hfrom.mData[i];
     199   else if(numBin>=mBins) mOver += hfrom.mData[i];
     200   else {
     201     mData[numBin]  += hfrom.mData[i];
     202     mNData[numBin] += hfrom.mNData[i];
     203     mErr2[numBin]  += hfrom.mErr2[i];
     204     nHist          += hfrom.mData[i];
     205     nEntries++;
     206   }
     207 }
     208
     209}
     210
     211/********* Methode *********/
     212/*!
    187213  Operateur egal HistoErr = HistoErr
    188214*/
Note: See TracChangeset for help on using the changeset viewer.