Ignore:
Timestamp:
06/08/04 18:09:34 (20 years ago)
Author:
gaug
Message:
*** empty log message ***
Location:
trunk/MagicSoft/Mars/msignal
Files:
2 edited

Legend:

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

    r4279 r4284  
    5353const Byte_t  MExtractTimeFastSpline::fgLoGainLast   = 14;
    5454const Float_t MExtractTimeFastSpline::fgResolution   = 0.003;
     55const Float_t MExtractTimeFastSpline::fgRiseTime     = 1.5;
    5556// --------------------------------------------------------------------------
    5657//
     
    7273
    7374  SetResolution();
     75  SetRiseTime  ();
    7476  SetRange(fgHiGainFirst, fgHiGainLast, fgLoGainFirst, fgLoGainLast);
    7577
     
    144146
    145147    }
     148
    146149}
    147150
     
    154157                                        Byte_t &sat, const MPedestalPix &ped) const
    155158{
    156  
     159
    157160  const Int_t range = fHiGainLast - fHiGainFirst + 1;
    158161  const Byte_t *end = first + range;
     
    352355  //
    353356  klo   = maxpos;
    354   while (klo > maxpos-4)
     357  while (klo > maxpos-fStartBeforeMax)
    355358    {
    356359      if (*(first+klo) < (Byte_t)halfmax)
  • trunk/MagicSoft/Mars/msignal/MExtractTimeFastSpline.h

    r3971 r4284  
    1515  static const Byte_t  fgLoGainLast;     // Default for fLoGainLast   (now set to: 14)
    1616  static const Float_t fgResolution;     // Default for fResolution   (now set to: 0.003)
     17  static const Float_t fgRiseTime  ;     // Default for fRiseTime     (now set to: 1.5  C 
    1718
    1819  Float_t *fHiGainFirstDeriv;
     
    2223
    2324  Float_t fResolution;                        // The time resolution in FADC units
     25  Float_t fRiseTime  ;                        // The rise time of the pulse
     26  Byte_t  fStartBeforeMax;                    // Slices to start searching for the halfmax before max
    2427 
    2528  void FindTimeHiGain(Byte_t *first, Float_t &time, Float_t &dtime, Byte_t &sat, const MPedestalPix &ped) const;
     
    3336  void SetRange(Byte_t hifirst=0, Byte_t hilast=0, Byte_t lofirst=0, Byte_t lolast=0);     
    3437  void SetResolution(Float_t f=fgResolution)     { fResolution = f;  }
     38  void SetRiseTime  (Float_t f=fgRiseTime  )     { fRiseTime   = f; fStartBeforeMax = (Int_t)(2*fRiseTime); } 
    3539 
    3640  ClassDef(MExtractTimeFastSpline, 0)   // Task to Extract the Arrival Times using a Fast Spline
Note: See TracChangeset for help on using the changeset viewer.