Ignore:
Timestamp:
01/30/04 14:55:59 (21 years ago)
Author:
tbretz
Message:
*** empty log message ***
Location:
trunk/MagicSoft/Mars/mraw
Files:
3 edited

Legend:

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

    r2748 r2984  
    149149    //
    150150    fRawRunHeader->ReadEvt(*fIn);
     151    if (!(*fIn))
     152    {
     153        *fLog << err << "Error: Accessing file '" << fFileName << "'" << endl;
     154        return kFALSE;
     155    }
     156    if (fRawRunHeader->GetMagicNumber()!=kMagicNumber)
     157        return kFALSE;
     158
    151159    fRawRunHeader->Print();
    152 
    153     if (fRawRunHeader->GetMagicNumber()!=kMagicNumber)
    154         return kFALSE;
    155160
    156161    *fRawEvtTime = fRawRunHeader->GetRunStart();
  • trunk/MagicSoft/Mars/mraw/MRawRunHeader.cc

    r2775 r2984  
    7575    fFormatVersion=0;
    7676    fSoftVersion=0;
    77     fRunType=0;
     77    fRunType=kRTNone;  // use 0xffff for invalidation, 0 means: Data run
    7878    fRunNumber=0;
    7979    fProjectName[0]=0;
     
    184184    case kRTMonteCarlo:
    185185        return "Monte Carlo";
     186    case kRTNone:
     187        return "<none>";
    186188    default:
    187189        return "<unknown>";
  • trunk/MagicSoft/Mars/mraw/MRawRunHeader.h

    r2775 r2984  
    2424//
    2525enum {
    26     kRTData        = 0,
    27     kRTPedestal    = 1,
    28     kRTCalibration = 2,
    29     kRTMonteCarlo  = 256
     26    kRTData        = 0x0000,
     27    kRTPedestal    = 0x0001,
     28    kRTCalibration = 0x0002,
     29    kRTMonteCarlo  = 0x0100,
     30    kRTNone        = 0xffff
    3031};
    3132
Note: See TracChangeset for help on using the changeset viewer.