Changeset 2917 for trunk/MagicSoft/Mars


Ignore:
Timestamp:
01/26/04 16:00:31 (21 years ago)
Author:
tbretz
Message:
*** empty log message ***
Location:
trunk/MagicSoft/Mars
Files:
4 edited

Legend:

Unmodified
Added
Removed
  • trunk/MagicSoft/Mars/Changelog

    r2914 r2917  
    4444     - replaced PrintOut by Print
    4545     - fixed documentation
     46
     47   * manalysis/MEventRateCalc.cc, manalysis/MPedCalcPedRun.cc:
     48     - replaced memset by Reset()
    4649
    4750
  • trunk/MagicSoft/Mars/manalysis/MArrivalTime.cc

    r2912 r2917  
    6363void MArrivalTime::Reset()
    6464{
    65   //
    66   // Do not use 'TArray::Reset()' or memset. It sets all single
    67   // bytes to -1 (in other words, it fills the array with 0xff)
    68   for (int i=0; i<fData.GetSize(); i++)
    69     fData[i] = -1;
     65    fData.Reset(-1);
    7066}
    7167
     
    9995
    10096    fData2.Set(n);
    101     fData2.Reset(-1.0);
    10297    fData3.Set(n);
    103     fData3.Reset(-1.0);
    10498    fData4.Set(n);
    105     fData4.Reset(-1.0);
    10699    fData5.Set(n);
    107     fData5.Reset(-1.0);
     100
     101    fData2.Reset(-1);
     102    fData3.Reset(-1);
     103    fData4.Reset(-1);
     104    fData5.Reset(-1);
    108105
    109106    MRawEvtPixelIter pixel((MRawEvtData*)&evt);
  • trunk/MagicSoft/Mars/manalysis/MEventRateCalc.cc

    r2780 r2917  
    108108        return kFALSE;
    109109
    110     memset(fTimes.GetArray(), 0, sizeof(Double_t)*fTimes.GetSize());
     110    fTimes.Reset();
    111111
    112112    return kTRUE;
  • trunk/MagicSoft/Mars/manalysis/MPedCalcPedRun.cc

    r2878 r2917  
    133133        fSumx2.Set(fNumPixels);
    134134
    135         memset(fSumx.GetArray(),  0, sizeof(Float_t)*fNumPixels);
    136         memset(fSumx2.GetArray(), 0, sizeof(Float_t)*fNumPixels);
     135        fSumx.Reset();
     136        fSumx2.Reset();
    137137      }
    138138
Note: See TracChangeset for help on using the changeset viewer.