Ignore:
Timestamp:
02/23/01 16:49:26 (24 years ago)
Author:
tbretz
Message:
*** empty log message ***
File:
1 edited

Legend:

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

    r456 r651  
    9797}
    9898
     99ULong_t MRawEvtPixelIter::GetSumHiGainFadcSamples() const
     100{
     101    //
     102    // return the sum of the hi gain samples of the present pixel
     103    //
     104    Byte_t *ptr = fHiGainPos;
     105    const Byte_t *end = ptr + fData->GetNumHiGainSamples();
    99106
     107    ULong_t sum=0;
    100108
     109    do sum += *ptr++;
     110    while (ptr != end);
    101111
     112    return sum;
     113}
    102114
     115ULong_t MRawEvtPixelIter::GetSumLoGainFadcSamples() const
     116{
     117    //
     118    // return the sum of the lo gain samples of the present pixel
     119    //
     120    if (!IsLoGain())
     121        return 0;
    103122
     123    Byte_t *ptr = fLoGainPos;
     124    const Byte_t *end = ptr + fData->GetNumLoGainSamples();
     125
     126    ULong_t sum=0;
     127
     128    do sum += *ptr++;
     129    while (ptr != end);
     130
     131    return sum;
     132}
     133
Note: See TracChangeset for help on using the changeset viewer.