- Timestamp:
- 05/09/04 20:55:34 (21 years ago)
- Location:
- trunk/MagicSoft/Mars
- Files:
-
- 4 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/MagicSoft/Mars/Changelog
r4020 r4022 31 31 * Makefile.rules: 32 32 - added DYLIB to rmbin 33 34 * mraw/MRawEvtData.cc: 35 - changed some output 36 37 * mraw/MRawEvtHeader.[h,cc]: 38 - skip the rest of the header if the time is invalid. Otherwise 39 merpps force-mode will corrupt the data when further processing 40 - implemented GetNumBytes returning the size of the header 33 41 34 42 -
trunk/MagicSoft/Mars/mraw/MRawEvtData.cc
r3800 r4022 438 438 { 439 439 *fLog << err << "RawEvtData::AddPixel: Error, number of samples in "; 440 *fLog << "TArrayC doesn't match actual number"<< endl;440 *fLog << "TArrayC " << ns << " doesn't match current number " << nSamp << endl; 441 441 return; 442 442 } -
trunk/MagicSoft/Mars/mraw/MRawEvtHeader.cc
r3800 r4022 310 310 if (!DecodeTime(abstime)) 311 311 { 312 *fLog << warn << "WARNING - Event time in event header invalid... abort." << endl; 312 *fLog << warn << "WARNING - Event time in event header invalid..." << endl; 313 // Skip the rest of the header in case of merpps force-mode 314 fin.seekg(GetNumBytes()-12, ios::cur); 313 315 return kCONTINUE; 314 316 } … … 335 337 void MRawEvtHeader::SkipEvt(istream &fin, UShort_t ver) 336 338 { 337 fin.seekg( 36+fPixLoGainOn->GetSize(), ios::cur);339 fin.seekg(GetNumBytes(), ios::cur); 338 340 } 339 341 … … 361 363 UInt_t MRawEvtHeader::GetTriggerID() const 362 364 { 363 UInt_t trigID=0; 364 365 trigID = fTrigPattern[0]; 366 367 return trigID; 368 } 365 return fTrigPattern[0]; 366 } -
trunk/MagicSoft/Mars/mraw/MRawEvtHeader.h
r3800 r4022 47 47 Bool_t DecodeTime(UInt_t abstime[2]) const; 48 48 49 Int_t GetNumBytes() const { return 36+fPixLoGainOn->GetSize(); } 50 49 51 public: 50 52 MRawEvtHeader(const char *name=NULL, const char *title=NULL);
Note:
See TracChangeset
for help on using the changeset viewer.