Changeset 651 for trunk/MagicSoft/Mars/mraw/MRawEvtPixelIter.cc
- Timestamp:
- 02/23/01 16:49:26 (24 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/MagicSoft/Mars/mraw/MRawEvtPixelIter.cc
r456 r651 97 97 } 98 98 99 ULong_t MRawEvtPixelIter::GetSumHiGainFadcSamples() const 100 { 101 // 102 // return the sum of the hi gain samples of the present pixel 103 // 104 Byte_t *ptr = fHiGainPos; 105 const Byte_t *end = ptr + fData->GetNumHiGainSamples(); 99 106 107 ULong_t sum=0; 100 108 109 do sum += *ptr++; 110 while (ptr != end); 101 111 112 return sum; 113 } 102 114 115 ULong_t MRawEvtPixelIter::GetSumLoGainFadcSamples() const 116 { 117 // 118 // return the sum of the lo gain samples of the present pixel 119 // 120 if (!IsLoGain()) 121 return 0; 103 122 123 Byte_t *ptr = fLoGainPos; 124 const Byte_t *end = ptr + fData->GetNumLoGainSamples(); 125 126 ULong_t sum=0; 127 128 do sum += *ptr++; 129 while (ptr != end); 130 131 return sum; 132 } 133
Note:
See TracChangeset
for help on using the changeset viewer.