Changeset 5399
- Timestamp:
- 11/12/04 13:52:41 (20 years ago)
- Location:
- trunk/MagicSoft/Mars
- Files:
-
- 3 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/MagicSoft/Mars/Changelog
r5398 r5399 22 22 2004/11/12: Thomas Bretz 23 23 24 * mraw/MRawEvtData. cc:24 * mraw/MRawEvtData.[h,cc]: 25 25 - fixed a bug in the initialisation of the arrays (in both 26 26 cases - hi- and lo-gain - the number of hi gain samples were 27 27 used 28 28 - do not try to read lo gains if poslo==NULL 29 - changed return type of GetNum[Hi,Lo]GainSamples from 30 Byte_t to UShort_t to support up to 65535 samples 29 31 30 32 * mraw/MRawRunHeader.cc: -
trunk/MagicSoft/Mars/mraw/MRawEvtData.cc
r5398 r5399 139 139 // return the number of hi gain samples per pixel 140 140 // 141 Byte_t MRawEvtData::GetNumHiGainSamples() const141 UShort_t MRawEvtData::GetNumHiGainSamples() const 142 142 { 143 143 return fHiGainPixId->GetSize() ? fHiGainFadcSamples->GetSize()/fHiGainPixId->GetSize() : 0; … … 148 148 // return the number of lo gain samples per pixel 149 149 // 150 Byte_t MRawEvtData::GetNumLoGainSamples() const150 UShort_t MRawEvtData::GetNumLoGainSamples() const 151 151 { 152 152 return fLoGainPixId->GetSize() ? fLoGainFadcSamples->GetSize()/fLoGainPixId->GetSize() : 0; … … 177 177 // - DEC: Print values decimal instead of hexadecimal (default) 178 178 // 179 const Byte_t nHiSamp = GetNumHiGainSamples();180 const Byte_t nLoSamp = GetNumLoGainSamples();179 const UShort_t nHiSamp = GetNumHiGainSamples(); 180 const UShort_t nLoSamp = GetNumLoGainSamples(); 181 181 182 182 const UShort_t nHiPix = fHiGainPixId->GetSize();; … … 427 427 // if there are no samples already stored: this is the new number of samples 428 428 // 429 const Byte_t ns = data->GetSize();430 const Byte_t nSamp = lflag ? GetNumLoGainSamples() : GetNumHiGainSamples();429 const UShort_t ns = data->GetSize(); 430 const UShort_t nSamp = lflag ? GetNumLoGainSamples() : GetNumHiGainSamples(); 431 431 if (nSamp && ns!=nSamp) 432 432 { -
trunk/MagicSoft/Mars/mraw/MRawEvtData.h
r4738 r5399 63 63 void AddPixel(UShort_t nOfPixel, TArrayC *data, Bool_t lflag=kFALSE); 64 64 65 Byte_tGetNumHiGainSamples() const;66 Byte_tGetNumLoGainSamples() const;65 UShort_t GetNumHiGainSamples() const; 66 UShort_t GetNumLoGainSamples() const; 67 67 UShort_t GetNumPixels() const; 68 68
Note:
See TracChangeset
for help on using the changeset viewer.