Changeset 4284
- Timestamp:
- 06/08/04 18:09:34 (21 years ago)
- Location:
- trunk/MagicSoft/Mars/msignal
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/MagicSoft/Mars/msignal/MExtractTimeFastSpline.cc
r4279 r4284 53 53 const Byte_t MExtractTimeFastSpline::fgLoGainLast = 14; 54 54 const Float_t MExtractTimeFastSpline::fgResolution = 0.003; 55 const Float_t MExtractTimeFastSpline::fgRiseTime = 1.5; 55 56 // -------------------------------------------------------------------------- 56 57 // … … 72 73 73 74 SetResolution(); 75 SetRiseTime (); 74 76 SetRange(fgHiGainFirst, fgHiGainLast, fgLoGainFirst, fgLoGainLast); 75 77 … … 144 146 145 147 } 148 146 149 } 147 150 … … 154 157 Byte_t &sat, const MPedestalPix &ped) const 155 158 { 156 159 157 160 const Int_t range = fHiGainLast - fHiGainFirst + 1; 158 161 const Byte_t *end = first + range; … … 352 355 // 353 356 klo = maxpos; 354 while (klo > maxpos- 4)357 while (klo > maxpos-fStartBeforeMax) 355 358 { 356 359 if (*(first+klo) < (Byte_t)halfmax) -
trunk/MagicSoft/Mars/msignal/MExtractTimeFastSpline.h
r3971 r4284 15 15 static const Byte_t fgLoGainLast; // Default for fLoGainLast (now set to: 14) 16 16 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 17 18 18 19 Float_t *fHiGainFirstDeriv; … … 22 23 23 24 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 24 27 25 28 void FindTimeHiGain(Byte_t *first, Float_t &time, Float_t &dtime, Byte_t &sat, const MPedestalPix &ped) const; … … 33 36 void SetRange(Byte_t hifirst=0, Byte_t hilast=0, Byte_t lofirst=0, Byte_t lolast=0); 34 37 void SetResolution(Float_t f=fgResolution) { fResolution = f; } 38 void SetRiseTime (Float_t f=fgRiseTime ) { fRiseTime = f; fStartBeforeMax = (Int_t)(2*fRiseTime); } 35 39 36 40 ClassDef(MExtractTimeFastSpline, 0) // Task to Extract the Arrival Times using a Fast Spline
Note:
See TracChangeset
for help on using the changeset viewer.