Changeset 650
- Timestamp:
- 02/23/01 15:39:18 (24 years ago)
- Location:
- trunk/MagicSoft/Mars
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/MagicSoft/Mars/Changelog
r609 r650 1 1 -*-*- END -*-*- 2 2 3 2000/02/23: Thomas Bretz 4 5 * mraw/MRawEvtPixelIter.h: added GetSum* functions 6 7 3 8 2000/02/22: Thomas Bretz 4 9 -
trunk/MagicSoft/Mars/mraw/MRawEvtPixelIter.h
r456 r650 55 55 } 56 56 57 ULong_t GetSumHiGainFadcSamples() const 58 { 59 // 60 // return the sum of the hi gain samples of the present pixel 61 // 62 Byte_t *ptr = fHiGainPos; 63 const Byte_t *end = ptr + fData->GetNumHiGainSamples(); 64 65 ULong_t sum=0; 66 67 do sum += *ptr++; 68 while (ptr != end); 69 70 return sum; 71 } 72 57 73 Bool_t IsLoGain() const 58 74 { … … 72 88 } 73 89 90 ULong_t GetSumLoGainFadcSamples() const 91 { 92 // 93 // return the sum of the lo gain samples of the present pixel 94 // 95 if (!IsLoGain()) 96 return 0; 97 98 Byte_t *ptr = fLoGainPos; 99 const Byte_t *end = ptr + fData->GetNumLoGainSamples(); 100 101 ULong_t sum=0; 102 103 do sum += *ptr++; 104 while (ptr != end); 105 106 return sum; 107 } 108 74 109 void Reset(); 75 110
Note:
See TracChangeset
for help on using the changeset viewer.