Changeset 5725 for trunk/MagicSoft/Mars/mraw
- Timestamp:
- 01/07/05 17:31:15 (20 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/MagicSoft/Mars/mraw/MRawEvtPixelIter.cc
r4643 r5725 160 160 // 161 161 Byte_t *ptr = fHiGainPos; 162 const Byte_t *end = ptr+ fNumHiGainSamples;162 const Byte_t *end = fHiGainPos + fNumHiGainSamples; 163 163 164 164 ULong_t sum=0; … … 180 180 // 181 181 Byte_t *ptr = fHiGainPos; 182 const Byte_t *end = ptr+ fNumHiGainSamples;182 const Byte_t *end = fHiGainPos + fNumHiGainSamples; 183 183 184 184 ULong_t sum=0; … … 197 197 { 198 198 Byte_t *ptr = fHiGainPos; 199 const Byte_t *end = ptr+ fNumHiGainSamples;199 const Byte_t *end = fHiGainPos + fNumHiGainSamples; 200 200 201 201 ULong_t sum=0; … … 219 219 Byte_t *ptr = fHiGainPos+1; 220 220 Byte_t *max = fHiGainPos; 221 const Byte_t *end = ptr+ fNumHiGainSamples;221 const Byte_t *end = fHiGainPos + fNumHiGainSamples; 222 222 223 223 do if (*ptr>*max) max = ptr; … … 235 235 Short_t MRawEvtPixelIter::GetIdxMaxLoGainSample(const Byte_t lofirst) const 236 236 { 237 238 if (!HasLoGain()) 239 return -1; // means: not found 240 241 Byte_t *ptr = fLoGainPos+lofirst+1; 242 Byte_t *max = fLoGainPos+lofirst; 243 const Byte_t *end = fLoGainPos + fNumLoGainSamples; 244 245 do if (*ptr>*max) max = ptr; 246 while (++ptr != end); 247 248 return max-fLoGainPos; 237 if (!HasLoGain()) 238 return -1; // means: not found 239 240 Byte_t *ptr = fLoGainPos+lofirst+1; 241 Byte_t *max = fLoGainPos+lofirst; 242 const Byte_t *end = fLoGainPos + fNumLoGainSamples; 243 244 do if (*ptr>*max) max = ptr; 245 while (++ptr != end); 246 247 return max-fLoGainPos; 249 248 } 250 249 … … 292 291 Byte_t MRawEvtPixelIter::GetMaxLoGainSample() const 293 292 { 294 295 293 Byte_t max = 0; 296 294 … … 316 314 317 315 Byte_t *ptr = fLoGainPos; 318 const Byte_t *end = ptr+ fNumLoGainSamples;316 const Byte_t *end = fLoGainPos + fNumLoGainSamples; 319 317 320 318 ULong_t sum=0; … … 339 337 340 338 Byte_t *ptr = fLoGainPos; 341 const Byte_t *end = ptr+ fNumLoGainSamples;339 const Byte_t *end = fLoGainPos + fNumLoGainSamples; 342 340 343 341 ULong_t sum=0;
Note:
See TracChangeset
for help on using the changeset viewer.