Ignore:
Timestamp:
11/08/01 10:57:01 (23 years ago)
Author:
tbretz
Message:
*** empty log message ***
Location:
trunk/MagicSoft/Mars/mraw
Files:
3 edited

Legend:

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

    r859 r1052  
    5656ClassImp(MRawEvtPixelIter);
    5757
     58MRawEvtPixelIter::MRawEvtPixelIter(MRawEvtData *dat) : fData(dat)
     59{
     60    fNumHiGainSamples = dat->GetNumHiGainSamples();
     61    fNumLoGainSamples = dat->GetNumLoGainSamples();
     62
     63    Reset();
     64}
     65
    5866// --------------------------------------------------------------------------
    5967//
     
    92100            fNumLoGainEntry++;
    93101            fLoGainId++;
    94             fLoGainPos += fData->GetNumLoGainSamples();
     102            fLoGainPos += fNumLoGainSamples;
    95103        }
    96104
     
    100108    fNumHiGainEntry++;
    101109    fHiGainId++;
    102     fHiGainPos += fData->GetNumHiGainSamples();
     110    fHiGainPos += fNumHiGainSamples;
    103111
    104112    //
     
    125133    fHiGainId   = fData->fHiGainPixId->GetArray()-1;
    126134    fLoGainId   = fData->fLoGainPixId->GetArray()-1;
    127     fHiGainPos  = fData->fHiGainFadcSamples->GetArray()-fData->GetNumHiGainSamples();
    128     fLoGainPos  = fData->fLoGainFadcSamples->GetArray()-fData->GetNumLoGainSamples();
     135    fHiGainPos  = fData->fHiGainFadcSamples->GetArray()-fNumHiGainSamples;
     136    fLoGainPos  = fData->fLoGainFadcSamples->GetArray()-fNumLoGainSamples;
    129137}
    130138
     
    145153// returns the sum of all hi gain fadc samples of the actual pixel
    146154//
    147 ULong_t MRawEvtPixelIter::GetSumHiGainFadcSamples() const
     155ULong_t MRawEvtPixelIter::GetSumHiGainSamples() const
    148156{
    149157    //
     
    151159    //
    152160    Byte_t *ptr = fHiGainPos;
    153     const Byte_t *end = ptr + fData->GetNumHiGainSamples();
     161    const Byte_t *end = ptr + fNumHiGainSamples;
    154162
    155163    ULong_t sum=0;
     
    166174// if no lo gain information is available 0 is returned.
    167175//
    168 ULong_t MRawEvtPixelIter::GetSumLoGainFadcSamples() const
     176ULong_t MRawEvtPixelIter::GetSumLoGainSamples() const
    169177{
    170178    //
     
    175183
    176184    Byte_t *ptr = fLoGainPos;
    177     const Byte_t *end = ptr + fData->GetNumLoGainSamples();
     185    const Byte_t *end = ptr + fNumLoGainSamples;
    178186
    179187    ULong_t sum=0;
  • trunk/MagicSoft/Mars/mraw/MRawEvtPixelIter.h

    r1018 r1052  
    2828    UShort_t fNumEntry;
    2929
     30    Byte_t fNumHiGainSamples;   //!
     31    Byte_t fNumLoGainSamples;   //!
     32
    3033    MRawEvtData *fData;         //! pointer to object which we are iterating
    3134
    3235public:
    33     MRawEvtPixelIter(MRawEvtData *dat) : fData(dat)
    34     {
    35         Reset();
    36     }
     36    MRawEvtPixelIter(MRawEvtData *dat);
    3737
    3838    MRawEvtData *Next();
     
    6666    Byte_t GetNumPixels() const;
    6767
    68     Byte_t *GetHiGainFadcSamples() const
     68    Byte_t *GetHiGainSamples() const
    6969    {
    7070        //
     
    7777    }
    7878
    79     ULong_t GetSumHiGainFadcSamples() const;
     79    ULong_t GetSumHiGainSamples() const;
    8080
    8181    Bool_t HasLoGain() const
     
    8787    }
    8888
    89     Byte_t *GetLoGainFadcSamples() const
     89    Byte_t *GetLoGainSamples() const
    9090    {
    9191        //
     
    9696    }
    9797
    98     ULong_t GetSumLoGainFadcSamples() const;
     98    ULong_t GetSumLoGainSamples() const;
     99
    99100
    100101    void Reset();
  • trunk/MagicSoft/Mars/mraw/Makefile

    r546 r1052  
    4747include ../Makefile.rules
    4848
    49 clean:  rmlib rmcint rmobjs rmcore rmbin
     49clean:  rmcint rmobjs rmcore rmlib
    5050
    5151mrproper:       clean rmbak
Note: See TracChangeset for help on using the changeset viewer.