Ignore:
Timestamp:
07/20/11 18:00:12 (13 years ago)
Author:
tbretz
Message:
Added iterator to start cell.
File:
1 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}
Note: See TracChangeset for help on using the changeset viewer.