Changeset 2649 for trunk/MagicSoft/Mars


Ignore:
Timestamp:
12/11/03 15:26:26 (21 years ago)
Author:
raducci
Message:
*** empty log message ***
Location:
trunk/MagicSoft/Mars/mraw
Files:
2 edited

Legend:

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

    r2645 r2649  
    259259// --------------------------------------------------------------------------
    260260//
     261// Returns the index of the maximum FADC slice from high gain at first. If
     262// high gain is saturated it returns the low gain one.
     263// Att! Here the index range is from 1 to 15.
     264// 0 means that an error occured (hi-gain saturated and no lo-gain available).
     265//
     266
     267Byte_t MRawEvtPixelIter::GetIdxMaxHiLoGainSample() const
     268{
     269    Byte_t maxi = 0;
     270
     271    if (this.GetMaxHiGainSample() == 255)
     272    {
     273         if (this.HasLoGain())
     274            maxi = this.GetIdxMaxLoGainSample();
     275    }
     276    else
     277         maxi = this.GetIdxMaxHiGainSample();
     278
     279    return maxi+1;
     280}
     281
     282// --------------------------------------------------------------------------
     283//
    261284// Returns the maximum signal of all sliced in the hi gain samples
    262285//
  • trunk/MagicSoft/Mars/mraw/MRawEvtPixelIter.h

    r2645 r2649  
    8787    Byte_t GetMaxHiGainSample() const;
    8888    Byte_t GetMaxLoGainSample() const;
     89    Byte_t GetIdxMaxHiLoGainSample() const;
    8990
    9091    Bool_t HasLoGain() const
Note: See TracChangeset for help on using the changeset viewer.