Ignore:
Timestamp:
06/26/03 16:21:57 (21 years ago)
Author:
tbretz
Message:
*** empty log message ***
File:
1 edited

Legend:

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

    r2229 r2236  
    228228// --------------------------------------------------------------------------
    229229//
     230// Returns the index of the FADC slice the maximum signal in
     231//
     232Byte_t MRawEvtPixelIter::GetNumMaxLoGainSample() const
     233{
     234    Byte_t max  = 0;
     235    Byte_t maxi = 0;
     236
     237    for (int i=0; i<fNumLoGainSamples; i++)
     238        if (fLoGainPos[i]>max)
     239        {
     240            max = fLoGainPos[i];
     241            maxi = i;
     242        }
     243
     244    return maxi;
     245}
     246
     247// --------------------------------------------------------------------------
     248//
    230249// returns the sum of all lo gain fadc samples of the actual pixel.
    231250// if no lo gain information is available 0 is returned.
Note: See TracChangeset for help on using the changeset viewer.