Changeset 4358 for trunk/MagicSoft/Mars/mraw
- Timestamp:
- 06/28/04 16:34:45 (21 years ago)
- Location:
- trunk/MagicSoft/Mars/mraw
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/MagicSoft/Mars/mraw/MRawEvtData.cc
r4022 r4358 525 525 // -------------------------------------------------------------------------- 526 526 // 527 // Make sure, that you skip the whole event. This function only skips a part 528 // of the event - see MRawRead::SkipEvent 529 // 530 void MRawEvtData::SkipEvt(istream &fin) 527 // Return the size in bytes of one event data block 528 // 529 Int_t MRawEvtData::GetNumBytes() const 531 530 { 532 531 const UShort_t nlo = fRunHeader->GetNumSamplesLoGain(); … … 534 533 const UShort_t npic = fRunHeader->GetNumPixInCrate(); 535 534 536 fin.seekg((nhi+nlo)*npic, ios::cur); 535 return (nhi+nlo)*npic; 536 } 537 538 // -------------------------------------------------------------------------- 539 // 540 // Make sure, that you skip the whole event. This function only skips a part 541 // of the event - see MRawRead::SkipEvent 542 // 543 void MRawEvtData::SkipEvt(istream &fin) 544 { 545 fin.seekg(GetNumBytes(), ios::cur); 537 546 } 538 547 -
trunk/MagicSoft/Mars/mraw/MRawEvtData.h
r3800 r4358 43 43 void InitArrays(Bool_t flag=kFALSE); 44 44 void DeleteArrays(); 45 46 Int_t GetNumBytes() const; 45 47 46 48 public:
Note:
See TracChangeset
for help on using the changeset viewer.