Ignore:
Timestamp:
08/01/03 16:28:20 (21 years ago)
Author:
tbretz
Message:
*** empty log message ***
Location:
trunk/MagicSoft/Mars/mraw
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • trunk/MagicSoft/Mars/mraw/MRawFileRead.cc

    r2207 r2299  
    223223    {
    224224        fRawCrateArray->GetEntry(i)->ReadEvt(*fIn);
     225        if (!*fIn)
     226            return kFALSE;
    225227
    226228        fRawEvtData->ReadEvt(*fIn);
     229        if (!*fIn)
     230            return kFALSE;
    227231    }
    228232
  • trunk/MagicSoft/Mars/mraw/MRawRunHeader.cc

    r2273 r2299  
    5656
    5757    fPixAssignment = new MArrayS(0);
     58
     59    fFormatVersion=0;
     60    fSoftVersion=0;
     61    fRunType=0;
     62    fRunNumber=0;
     63    fProjectName[0]=0;
     64    fSourceName[0]=0;
     65    fSourceEpochChar[0]=0;
     66    fSourceEpochDate=0;
     67    fMJD=0;
     68    fDateYear=0;
     69    fDateMonth=0;
     70    fDateDay=0;
     71    fNumCrates=0;
     72    fNumPixInCrate=0;
     73    fNumSamplesLoGain=0;
     74    fNumSamplesHiGain=0;
     75    fNumEvents=0;
    5876}
    5977
     
    7694    // read one RUN HEADER from the input stream
    7795    //
    78     fin.read((char*)&fMagicNumber,       2);
     96    fin.read((char*)&fMagicNumber, 2);
    7997
    8098    //
    8199    // check whether the the file has the right file type or not
    82100    //
    83     if (fMagicNumber != kMagicNumber)
     101    if (fMagicNumber != kMagicNumber && fMagicNumber != kMagicNumber+1)
    84102    {
    85103        *fLog << err << "Error: Wrong Magic Number: Not a Magic File!" << endl;
    86104        return;
    87105    }
     106
     107    if (fMagicNumber == kMagicNumber && fMagicNumber != kMagicNumber+1)
     108        *fLog << warn << "WARNING - This file maybe broken (0xc0c1) - DAQ didn't close it correctly!" << endl;
    88109
    89110    Byte_t dummy[16];
Note: See TracChangeset for help on using the changeset viewer.