Changeset 3385 for trunk/MagicSoft/Mars


Ignore:
Timestamp:
03/03/04 09:05:07 (21 years ago)
Author:
raducci
Message:
*** empty log message ***
Location:
trunk/MagicSoft/Mars
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • trunk/MagicSoft/Mars/Changelog

    r3383 r3385  
    44
    55                                                 -*-*- END OF LINE -*-*-
     6 2004/03/03: Sebastian Raducci
     7   * msignal/MArrivalTime.cc
     8     - The calculation of the arrival times is made only when needed
     9       (when the HalfMax is over the pedestal)
    610
    711 2004/03/03: Abelardo Moralejo
  • trunk/MagicSoft/Mars/msignal/MArrivalTimeCalc.cc

    r3368 r3385  
    199199    Double_t maximum = spline->EvalMax();
    200200    const MPedestalPix &ped = (*fPedestals)[idx];
    201     const Float_t halfMax = (maximum - ped.GetPedestal())/2;
    202     return (halfMax > 0.0) ? (Float_t ) spline->FindVal(halfMax,abMaximum,'l'): 0.0;
     201    const Double_t pedestal = ped.GetPedestal();
     202    const Double_t halfMax = (maximum - pedestal)/2.;
     203    return (halfMax > pedestal) ? (Float_t ) spline->FindVal(halfMax,abMaximum,'l'): 0.0;
    203204   
    204205}
Note: See TracChangeset for help on using the changeset viewer.