Changeset 5229


Ignore:
Timestamp:
10/11/04 21:51:00 (20 years ago)
Author:
gaug
Message:
*** empty log message ***
File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/MagicSoft/Mars/msignal/MExtractTimeAndChargeSpline.cc

    r5228 r5229  
    272272    {
    273273      fNumHiGainSamples = 1.;
    274       fNumLoGainSamples = 1.;
     274      fNumLoGainSamples = fLoGainLast ? 1. : 0.;
    275275      fSqrtHiGainSamples = 1.;
    276276      fSqrtLoGainSamples = 1.;
     
    280280    {
    281281      fNumHiGainSamples  = TMath::Floor(fRiseTime + fFallTime);
    282       fNumLoGainSamples  = fNumHiGainSamples + 1.;
     282      fNumLoGainSamples  = fLoGainLast ? fNumHiGainSamples + 1. : 0.;
    283283      fSqrtHiGainSamples = TMath::Sqrt(fNumHiGainSamples);
    284284      fSqrtLoGainSamples = TMath::Sqrt(fNumLoGainSamples);
Note: See TracChangeset for help on using the changeset viewer.