Changeset 5399


Ignore:
Timestamp:
11/12/04 13:52:41 (20 years ago)
Author:
tbretz
Message:
*** empty log message ***
Location:
trunk/MagicSoft/Mars
Files:
3 edited

Legend:

Unmodified
Added
Removed
  • trunk/MagicSoft/Mars/Changelog

    r5398 r5399  
    2222 2004/11/12: Thomas Bretz
    2323
    24    * mraw/MRawEvtData.cc:
     24   * mraw/MRawEvtData.[h,cc]:
    2525     - fixed a bug in the initialisation of the arrays (in both
    2626       cases - hi- and lo-gain - the number of hi gain samples were
    2727       used
    2828     - 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
    2931
    3032   * mraw/MRawRunHeader.cc:
  • trunk/MagicSoft/Mars/mraw/MRawEvtData.cc

    r5398 r5399  
    139139// return the number of hi gain samples per pixel
    140140//
    141 Byte_t MRawEvtData::GetNumHiGainSamples() const
     141UShort_t MRawEvtData::GetNumHiGainSamples() const
    142142{
    143143    return fHiGainPixId->GetSize() ? fHiGainFadcSamples->GetSize()/fHiGainPixId->GetSize() : 0;
     
    148148// return the number of lo gain samples per pixel
    149149//
    150 Byte_t MRawEvtData::GetNumLoGainSamples() const
     150UShort_t MRawEvtData::GetNumLoGainSamples() const
    151151{
    152152    return fLoGainPixId->GetSize() ? fLoGainFadcSamples->GetSize()/fLoGainPixId->GetSize() : 0;
     
    177177    // - DEC: Print values decimal instead of hexadecimal (default)
    178178    //
    179     const Byte_t nHiSamp = GetNumHiGainSamples();
    180     const Byte_t nLoSamp = GetNumLoGainSamples();
     179    const UShort_t nHiSamp = GetNumHiGainSamples();
     180    const UShort_t nLoSamp = GetNumLoGainSamples();
    181181
    182182    const UShort_t nHiPix = fHiGainPixId->GetSize();;
     
    427427    // if there are no samples already stored: this is the new number of samples
    428428    //
    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();
    431431    if (nSamp && ns!=nSamp)
    432432    {
  • trunk/MagicSoft/Mars/mraw/MRawEvtData.h

    r4738 r5399  
    6363    void AddPixel(UShort_t nOfPixel, TArrayC *data, Bool_t lflag=kFALSE);
    6464
    65     Byte_t  GetNumHiGainSamples() const;
    66     Byte_t  GetNumLoGainSamples() const;
     65    UShort_t GetNumHiGainSamples() const;
     66    UShort_t GetNumLoGainSamples() const;
    6767    UShort_t GetNumPixels() const;
    6868
Note: See TracChangeset for help on using the changeset viewer.