Ignore:
Timestamp:
06/19/07 10:35:33 (18 years ago)
Author:
tbretz
Message:
*** empty log message ***
File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/MagicSoft/Mars/mraw/MRawRunHeader.h

    r8565 r8582  
    115115    UShort_t GetNumNormalPixels() const;
    116116    UShort_t GetNumSpecialPixels() const;
    117     UInt_t   GetScale() const { return 1<<((fNumBytesPerSample-1)*8); }
     117    UInt_t   GetScale() const { switch (fNumBytesPerSample) { case 1: return 0x1; case 2: return 0x100; case 4: return 0x1000000; } return 0; }
     118    UInt_t   GetMax() const { switch (fNumBytesPerSample) { case 1: return 0xff; case 2: return 0xffff; case 4: return 0xffffffff; } return 0; }
    118119
    119120    UInt_t GetNumSamplesPerCrate() const
Note: See TracChangeset for help on using the changeset viewer.