Changeset 2649 for trunk/MagicSoft/Mars
- Timestamp:
- 12/11/03 15:26:26 (21 years ago)
- Location:
- trunk/MagicSoft/Mars/mraw
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/MagicSoft/Mars/mraw/MRawEvtPixelIter.cc
r2645 r2649 259 259 // -------------------------------------------------------------------------- 260 260 // 261 // Returns the index of the maximum FADC slice from high gain at first. If 262 // high gain is saturated it returns the low gain one. 263 // Att! Here the index range is from 1 to 15. 264 // 0 means that an error occured (hi-gain saturated and no lo-gain available). 265 // 266 267 Byte_t MRawEvtPixelIter::GetIdxMaxHiLoGainSample() const 268 { 269 Byte_t maxi = 0; 270 271 if (this.GetMaxHiGainSample() == 255) 272 { 273 if (this.HasLoGain()) 274 maxi = this.GetIdxMaxLoGainSample(); 275 } 276 else 277 maxi = this.GetIdxMaxHiGainSample(); 278 279 return maxi+1; 280 } 281 282 // -------------------------------------------------------------------------- 283 // 261 284 // Returns the maximum signal of all sliced in the hi gain samples 262 285 // -
trunk/MagicSoft/Mars/mraw/MRawEvtPixelIter.h
r2645 r2649 87 87 Byte_t GetMaxHiGainSample() const; 88 88 Byte_t GetMaxLoGainSample() const; 89 Byte_t GetIdxMaxHiLoGainSample() const; 89 90 90 91 Bool_t HasLoGain() const
Note:
See TracChangeset
for help on using the changeset viewer.