Changeset 2917 for trunk/MagicSoft
- Timestamp:
- 01/26/04 16:00:31 (21 years ago)
- Location:
- trunk/MagicSoft/Mars
- Files:
-
- 4 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/MagicSoft/Mars/Changelog
r2914 r2917 44 44 - replaced PrintOut by Print 45 45 - fixed documentation 46 47 * manalysis/MEventRateCalc.cc, manalysis/MPedCalcPedRun.cc: 48 - replaced memset by Reset() 46 49 47 50 -
trunk/MagicSoft/Mars/manalysis/MArrivalTime.cc
r2912 r2917 63 63 void MArrivalTime::Reset() 64 64 { 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); 70 66 } 71 67 … … 99 95 100 96 fData2.Set(n); 101 fData2.Reset(-1.0);102 97 fData3.Set(n); 103 fData3.Reset(-1.0);104 98 fData4.Set(n); 105 fData4.Reset(-1.0);106 99 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); 108 105 109 106 MRawEvtPixelIter pixel((MRawEvtData*)&evt); -
trunk/MagicSoft/Mars/manalysis/MEventRateCalc.cc
r2780 r2917 108 108 return kFALSE; 109 109 110 memset(fTimes.GetArray(), 0, sizeof(Double_t)*fTimes.GetSize());110 fTimes.Reset(); 111 111 112 112 return kTRUE; -
trunk/MagicSoft/Mars/manalysis/MPedCalcPedRun.cc
r2878 r2917 133 133 fSumx2.Set(fNumPixels); 134 134 135 memset(fSumx.GetArray(), 0, sizeof(Float_t)*fNumPixels);136 memset(fSumx2.GetArray(), 0, sizeof(Float_t)*fNumPixels);135 fSumx.Reset(); 136 fSumx2.Reset(); 137 137 } 138 138
Note:
See TracChangeset
for help on using the changeset viewer.