Changeset 11488 for trunk/Mars


Ignore:
Timestamp:
07/20/11 18:00:12 (13 years ago)
Author:
tbretz
Message:
Added iterator to start cell.
Location:
trunk/Mars/mraw
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • trunk/Mars/mraw/MRawEvtPixelIter.cc

    r8571 r11488  
    6161using namespace std;
    6262
    63 MRawEvtPixelIter::MRawEvtPixelIter(MRawEvtData *dat) : fABFlags(0), fData(dat)
     63MRawEvtPixelIter::MRawEvtPixelIter(MRawEvtData *dat) :
     64    fABFlags(0), fStartCell(0), fData(dat)
    6465{
    6566    fNumBytesHiGain  = dat->GetNumHiGainSamples()*dat->GetNumBytesPerSample();
     
    104105        fHiGainPos     += fNumBytesHiGain+fNumBytesLoGain;
    105106        fLoGainPos      = fHiGainPos + fNumBytesHiGain;
     107
     108        fStartCell++;
    106109    }
     110
    107111
    108112    //
     
    147151    }
    148152
     153    fStartCell = fData->fStartCells->GetSize() ? fData->GetStartCells()-1 : 0;
     154
    149155    //
    150156    // In case fLoGainPixId.GetSize()=0 some root versions seems to
     
    160166//
    161167void MRawEvtPixelIter::Draw(Option_t *t)
    162 { 
     168{
    163169    fData->Draw(Form("%s%d", t, *fHiGainId));
    164170}
  • trunk/Mars/mraw/MRawEvtPixelIter.h

    r9219 r11488  
    2727
    2828    Byte_t   *fABFlags;         //! pointer to AB flags
     29    UShort_t *fStartCell;      //! pointer to AB flags
    2930
    3031    UShort_t  fNumEntry;
     
    107108    }
    108109
     110    UShort_t GetStartCell() const
     111    {
     112        return fStartCell ? *fStartCell : 0;
     113    }
     114
    109115    void Reset();
    110116
Note: See TracChangeset for help on using the changeset viewer.