Changeset 4040
- Timestamp:
- 05/10/04 18:36:04 (21 years ago)
- Location:
- trunk/MagicSoft/Mars
- Files:
-
- 4 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/MagicSoft/Mars/Changelog
r4039 r4040 18 18 19 19 -*-*- END OF LINE -*-*- 20 2004/05/10: Thomas Bretz 21 22 * mraw/MRawEvtHeader.[h,cc]: 23 - changed return type of ReadEvt from int to Int_t 24 - Enhanced output in case of invalid time 25 26 * mraw/MRawRead.cc: 27 - fixed the return type of ReadEvt (was bool instead of int) 28 which confused merpp completely in case of invalid times 29 30 31 20 32 2004/05/10: Markus Gaug 21 33 22 34 * macros/calibrate_data.C 23 35 - updated setting of arr. time extractor 36 37 24 38 25 39 2004/05/09: Thomas Bretz -
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.