Changeset 2299 for trunk/MagicSoft/Mars/mraw
- Timestamp:
- 08/01/03 16:28:20 (21 years ago)
- Location:
- trunk/MagicSoft/Mars/mraw
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/MagicSoft/Mars/mraw/MRawFileRead.cc
r2207 r2299 223 223 { 224 224 fRawCrateArray->GetEntry(i)->ReadEvt(*fIn); 225 if (!*fIn) 226 return kFALSE; 225 227 226 228 fRawEvtData->ReadEvt(*fIn); 229 if (!*fIn) 230 return kFALSE; 227 231 } 228 232 -
trunk/MagicSoft/Mars/mraw/MRawRunHeader.cc
r2273 r2299 56 56 57 57 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; 58 76 } 59 77 … … 76 94 // read one RUN HEADER from the input stream 77 95 // 78 fin.read((char*)&fMagicNumber, 96 fin.read((char*)&fMagicNumber, 2); 79 97 80 98 // 81 99 // check whether the the file has the right file type or not 82 100 // 83 if (fMagicNumber != kMagicNumber )101 if (fMagicNumber != kMagicNumber && fMagicNumber != kMagicNumber+1) 84 102 { 85 103 *fLog << err << "Error: Wrong Magic Number: Not a Magic File!" << endl; 86 104 return; 87 105 } 106 107 if (fMagicNumber == kMagicNumber && fMagicNumber != kMagicNumber+1) 108 *fLog << warn << "WARNING - This file maybe broken (0xc0c1) - DAQ didn't close it correctly!" << endl; 88 109 89 110 Byte_t dummy[16];
Note:
See TracChangeset
for help on using the changeset viewer.