Ignore:
Timestamp:
07/18/11 16:50:27 (13 years ago)
Author:
tbretz
Message:
Added setter to init fact data and to set the format values.
File:
1 edited

Legend:

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

    r9542 r11448  
    12781278}
    12791279
     1280void MRawRunHeader::InitFact(UShort_t num, UShort_t pix, UShort_t samples)
     1281{
     1282    fNumCrates     = num;
     1283    fNumPixInCrate = pix;
     1284    fCameraVersion = 0xfac7;
     1285    fFadcType      = 0xfac7;
     1286
     1287    fPixAssignment->Set(num*pix);
     1288
     1289    for (int i=0; i<num*pix; i++)
     1290        (*fPixAssignment)[i] = i+1;
     1291
     1292    fNumSamplesHiGain  = samples;
     1293    fNumSamplesLoGain  = 0;
     1294    fNumBytesPerSample = 2;      // number of bytes per sample
     1295    fSamplingFrequency = 2000;   // Sampling Frequency [MHz]
     1296    fFadcResolution    = 12;     // number of significant bits
     1297}
     1298
    12801299// --------------------------------------------------------------------------
    12811300//
Note: See TracChangeset for help on using the changeset viewer.