Changeset 11554 for trunk/Mars/mraw


Ignore:
Timestamp:
07/24/11 11:02:33 (13 years ago)
Author:
tbretz
Message:
Added fIsSigned data memeber; increased version number.
Location:
trunk/Mars/mraw
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • trunk/Mars/mraw/MRawRunHeader.cc

    r11448 r11554  
    3232//  RAW DATA FORMAT VERSION
    3333//  =======================
     34//
     35//  Format Version 12:
     36//  -----------------
     37//   * fIsSigned
    3438//
    3539//  Format Version 11:
     
    202206    fNumEventsRead=0;
    203207    fNumBytesPerSample=1;
     208    fIsSigned = kFALSE;
    204209    fSamplingFrequency=300;
    205210    fFadcResolution=8;
     
    12931298    fNumSamplesLoGain  = 0;
    12941299    fNumBytesPerSample = 2;      // number of bytes per sample
     1300    fIsSigned          = kTRUE;
    12951301    fSamplingFrequency = 2000;   // Sampling Frequency [MHz]
    12961302    fFadcResolution    = 12;     // number of significant bits
  • trunk/Mars/mraw/MRawRunHeader.h

    r11452 r11554  
    6565    UShort_t  fNumSamplesHiGain;     // number of higain samples stored
    6666    UShort_t  fNumBytesPerSample;    // number of bytes per sample
     67    Bool_t    fIsSigned;
    6768    UInt_t    fNumEvents;            // number of events stored
    6869    UInt_t    fNumEventsRead;        // number of events read by the electronics
     
    147148    UInt_t   GetNumSamples() const        { return fNumSamplesHiGain+fNumSamplesLoGain; }
    148149    UShort_t GetNumBytesPerSample() const { return fNumBytesPerSample; }
     150    Bool_t   IsSigned() const             { return fIsSigned; }
    149151    UInt_t   GetNumEvents() const         { return fNumEvents; }
    150152    UInt_t   GetNumEventsRead() const     { return fNumEventsRead; }
     
    186188    //Bool_t WriteEvt(ostream& fout) const;
    187189
    188     ClassDef(MRawRunHeader, 10) // storage container for general info
     190    ClassDef(MRawRunHeader, 12) // storage container for general info
    189191};
    190192#endif
Note: See TracChangeset for help on using the changeset viewer.