Changeset 2264 for trunk/MagicSoft/Mars/mraw/MRawEvtPixelIter.cc
- Timestamp:
- 07/06/03 14:24:09 (21 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/MagicSoft/Mars/mraw/MRawEvtPixelIter.cc
r2259 r2264 247 247 // -------------------------------------------------------------------------- 248 248 // 249 // Returns the maximum signal of all sliced in the hi gain samples 250 // 251 Byte_t MRawEvtPixelIter::GetMaxHiGainSample() const 252 { 253 Byte_t max = 0; 254 255 for (int i=0; i<fNumHiGainSamples; i++) 256 if (fHiGainPos[i]>max) 257 max = fHiGainPos[i]; 258 259 return max; 260 } 261 262 // -------------------------------------------------------------------------- 263 // 264 // Returns the maximum signal of all sliced in the hi gain samples 265 // 266 Byte_t MRawEvtPixelIter::GetMaxLoGainSample() const 267 { 268 Byte_t max = 0; 269 270 for (int i=fNumLoGainSamples-1; i>=0; i--) 271 if (fLoGainPos[i]>max) 272 max = fLoGainPos[i]; 273 274 return max; 275 } 276 277 // -------------------------------------------------------------------------- 278 // 249 279 // returns the sum of all lo gain fadc samples of the actual pixel. 250 280 // if no lo gain information is available 0 is returned.
Note:
See TracChangeset
for help on using the changeset viewer.