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

Legend:

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

    r5240 r5293  
    341341// --------------------------------------------------------------------------
    342342//
    343 // Calculates the arrival time for each pixel
     343// Calculates the arrival time and charge for each pixel
    344344//
    345345void MExtractTimeAndChargeSpline::FindTimeAndChargeHiGain(Byte_t *first, Byte_t *logain, Float_t &sum, Float_t &dsum,
     
    443443
    444444  for (Int_t k=range-2;k>=0;k--)
    445     fHiGainSecondDeriv[k] = (fHiGainSecondDeriv[k]*fHiGainSecondDeriv[k+1] + fHiGainFirstDeriv[k])/6.;
     445    fHiGainSecondDeriv[k] = fHiGainSecondDeriv[k]*fHiGainSecondDeriv[k+1] + fHiGainFirstDeriv[k];
     446  for (Int_t k=range-2;k>=0;k--)
     447    fHiGainSecondDeriv[k] /= 6.;
    446448 
    447449  //
     
    711713// --------------------------------------------------------------------------
    712714//
    713 // Calculates the arrival time for each pixel
     715// Calculates the arrival time and charge for each pixel
    714716//
    715717void MExtractTimeAndChargeSpline::FindTimeAndChargeLoGain(Byte_t *first, Float_t &sum, Float_t &dsum,
     
    791793  fLoGainSecondDeriv[range-1] = 0.;
    792794  for (Int_t k=range-2;k>=0;k--)
    793     fLoGainSecondDeriv[k] = (fLoGainSecondDeriv[k]*fLoGainSecondDeriv[k+1] + fLoGainFirstDeriv[k])/6.;
     795    fLoGainSecondDeriv[k] = fLoGainSecondDeriv[k]*fLoGainSecondDeriv[k+1] + fLoGainFirstDeriv[k];
     796  for (Int_t k=range-2;k>=0;k--)
     797    fLoGainSecondDeriv[k] /= 6.;
    794798 
    795799  //
Note: See TracChangeset for help on using the changeset viewer.