Ignore:
Timestamp:
12/11/03 14:36:04 (21 years ago)
Author:
gaug
Message:
*** empty log message ***
Location:
trunk/MagicSoft/Mars/manalysis
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • trunk/MagicSoft/Mars/manalysis/MExtractSignal.cc

    r2642 r2646  
    5757//
    5858MExtractSignal::MExtractSignal(const char *name, const char *title)
    59   : fBefore(2), fAfter(4), fSaturationLimit(254), fConversionHiLo(10.)
     59  : fNumHiGainSamples(0), fNumLoGainSamples(0),
     60    fSqrtHiGainSamples(0), fSqrtLoGainSamples(0),
     61    fBefore(2), fAfter(4),
     62    fSaturationLimit(254), fConversionHiLo(10.)
    6063{
    6164
     
    174177        const Float_t pedes   = ped.GetPedestal();
    175178        const Float_t pedrms  = ped.GetPedestalRms();
     179
    176180
    177181        if (max-3 < ptr)
     
    245249      } /* while (pixel.Next()) */
    246250
    247 
    248251    fSignals->SetNumUsedFADCSlices(fNumHiGainSamples,fNumLoGainSamples);
    249252    fSignals->SetReadyToSave();
  • trunk/MagicSoft/Mars/manalysis/MPedCalcPedRun.cc

    r2629 r2646  
    208208Float_t MPedCalcPedRun::CalcHiGainRms(Byte_t *ptr, const Byte_t *end, Float_t higainped) const
    209209{
     210    Float_t val=0;
     211    Float_t val2=0;
    210212    Float_t rms = 0;
    211213    Byte_t EvenNumSamples=(fNumHiGainSamples/2*2==fNumHiGainSamples) ? fNumHiGainSamples:fNumHiGainSamples-1;
     
    218220    } while (++ptr != end);
    219221
    220     return sqrt(rms/EvenNumSamples);
     222    return sqrt(rms/(EvenNumSamples-1));
    221223}
    222224
Note: See TracChangeset for help on using the changeset viewer.