Changeset 11489


Ignore:
Timestamp:
07/20/11 18:01:11 (13 years ago)
Author:
tbretz
Message:
Added fStartCells and increased version number
Location:
trunk/Mars/mraw
Files:
2 edited

Legend:

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

    r9227 r11489  
    4747//
    4848//
     49//   Version 8
     50//   ------------------
     51//    + MArrayS *fStartCell
     52//
    4953//   Version 7
    5054//   ------------------
     
    358362
    359363    fABFlags           = new MArrayB(maxid==0 ? 0 : maxid/8+1);
     364    fStartCells        = new MArrayS(0);
    360365
    361366    fConnectedPixels   = 0;
     367}
     368
     369void MRawEvtData::InitStartCells()
     370{
     371    delete fStartCells;
     372    fStartCells = new MArrayS(fHiGainPixId->GetSize());
    362373}
    363374
     
    373384    delete fLoGainFadcSamples;
    374385    delete fABFlags;
     386    delete fStartCells;
    375387}
    376388
     
    510522        (*fHiGainPixId)[i] = i;
    511523}
     524
     525Byte_t   *MRawEvtData::GetSamples() const    { return fHiGainFadcSamples->GetArray(); }
     526UShort_t *MRawEvtData::GetStartCells() const { return fStartCells->GetArray(); }
     527UShort_t *MRawEvtData::GetPixelIds() const   { return fHiGainPixId->GetArray(); }
     528Bool_t    MRawEvtData::HasStartCells() const { return fStartCells->GetSize()==fHiGainPixId->GetSize(); }
    512529
    513530/*
  • trunk/Mars/mraw/MRawEvtData.h

    r9226 r11489  
    3636
    3737    MArrayB *fABFlags;            //-> A information about the exact trigger position
     38    MArrayS *fStartCells;         //
    3839
    3940    UShort_t fNumBytesPerSample;
     
    7778    void ResetPixels();
    7879    void ResetPixels(UShort_t npix, UShort_t maxid);
     80    void InitStartCells();
    7981    void AddPixel(UShort_t nOfPixel, const TArrayC &data);
    8082    void Set(const MArrayI &data);
     
    9092    UInt_t   GetScale() const { return 1<<((fNumBytesPerSample-1)*8); }
    9193    UInt_t   GetMax() const   { return (UInt_t)(~1)>>((4-fNumBytesPerSample)*8); }
     94
     95    Byte_t   *GetSamples() const;
     96    UShort_t *GetStartCells() const;
     97    UShort_t *GetPixelIds() const;
     98
     99    Bool_t HasStartCells() const;
    92100
    93101    void ReadPixel(istream &fin, Int_t npix);
     
    109117        ;
    110118
    111     ClassDef(MRawEvtData, 7) //Container to store the raw Event Data
     119    ClassDef(MRawEvtData, 8) //Container to store the raw Event Data
    112120};
    113121
Note: See TracChangeset for help on using the changeset viewer.