Ignore:
Timestamp:
06/28/04 16:34:45 (21 years ago)
Author:
tbretz
Message:
*** empty log message ***
Location:
trunk/MagicSoft/Mars/mraw
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • trunk/MagicSoft/Mars/mraw/MRawEvtData.cc

    r4022 r4358  
    525525// --------------------------------------------------------------------------
    526526//
    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//
     529Int_t MRawEvtData::GetNumBytes() const
    531530{
    532531    const UShort_t nlo  = fRunHeader->GetNumSamplesLoGain();
     
    534533    const UShort_t npic = fRunHeader->GetNumPixInCrate();
    535534
    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//
     543void MRawEvtData::SkipEvt(istream &fin)
     544{
     545    fin.seekg(GetNumBytes(), ios::cur);
    537546}
    538547
  • trunk/MagicSoft/Mars/mraw/MRawEvtData.h

    r3800 r4358  
    4343    void InitArrays(Bool_t flag=kFALSE);
    4444    void DeleteArrays();
     45
     46    Int_t GetNumBytes() const;
    4547
    4648public:
Note: See TracChangeset for help on using the changeset viewer.