Changeset 4040 for trunk/MagicSoft/Mars/mraw
- Timestamp:
- 05/10/04 18:36:04 (21 years ago)
- Location:
- trunk/MagicSoft/Mars/mraw
- Files:
-
- 3 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/MagicSoft/Mars/mraw/MRawEvtHeader.cc
r4023 r4040 293 293 // with the start-date/time of the run (after reading the run header) 294 294 // 295 return fTime->UpdMagicTime(h, m, s, ns); 295 if (fTime->UpdMagicTime(h, m, s, ns)) 296 return kTRUE; 297 298 *fLog << warn << "WARNING - Time (" << Form("%2d:%02d:%02d,%09d", h, m, s, ns); 299 *fLog << ") in header of event #" << dec << fDAQEvtNumber << " invalid..." << endl; 300 301 return kFALSE; 296 302 } 297 303 … … 309 315 // Remark: This 'feature' disallows single runs of more than 11h! 310 316 // 311 int MRawEvtHeader::ReadEvt(istream &fin, UShort_t ver)317 Int_t MRawEvtHeader::ReadEvt(istream &fin, UShort_t ver) 312 318 { 313 319 fin.read((char*)&fDAQEvtNumber, 4); // Total=4 … … 319 325 if (!DecodeTime(abstime)) 320 326 { 321 *fLog << warn << "WARNING - Event time in event header invalid..." << endl;322 327 // Skip the rest of the header in case of merpps force-mode 323 328 fin.seekg(GetNumBytes()-12, ios::cur); -
trunk/MagicSoft/Mars/mraw/MRawEvtHeader.h
r4023 r4040 67 67 UInt_t GetTriggerID() const; 68 68 69 int ReadEvt(istream& fin, UShort_t ver);69 Int_t ReadEvt(istream& fin, UShort_t ver); 70 70 void SkipEvt(istream& fin, UShort_t ver); 71 71 -
trunk/MagicSoft/Mars/mraw/MRawRead.cc
r3800 r4040 165 165 // if there is no next event anymore stop eventloop 166 166 // 167 const Bool_t rc = fRawEvtHeader->ReadEvt(fin, ver);167 const Int_t rc = fRawEvtHeader->ReadEvt(fin, ver); 168 168 if (rc==kCONTINUE && fForceMode==kFALSE) 169 169 {
Note:
See TracChangeset
for help on using the changeset viewer.