Changeset 5293


Ignore:
Timestamp:
10/20/04 11:40:32 (20 years ago)
Author:
gaug
Message:
*** empty log message ***
Location:
trunk/MagicSoft/Mars
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • trunk/MagicSoft/Mars/Changelog

    r5291 r5293  
    1919
    2020                                                 -*-*- END OF LINE -*-*-
     21
     22 2004/10/20: Markus Gaug
     23
     24   * msignal/MExtractTimeAndChargeSpline.cc
     25     - fixed a small bug concerning the way the second derivatives are
     26       calculated. The effect is less than 1% on the time resolution
     27
    2128
    2229 2004/10/19: Abelardo Moralejo
  • 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.