Changeset 4732 for trunk/MagicSoft/Mars/msignal
- Timestamp:
- 08/25/04 17:30:31 (20 years ago)
- Location:
- trunk/MagicSoft/Mars/msignal
- Files:
-
- 4 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/MagicSoft/Mars/msignal/MExtractTime.cc
r4723 r4732 230 230 } 231 231 232 rc = MExtractor::ReadEnv(env, prefix, print) ? kTRUE : rc; 233 234 return rc; 232 return MExtractor::ReadEnv(env, prefix, print) ? kTRUE : rc; 235 233 } 236 234 … … 240 238 if (IsA()==MExtractTime::Class()) 241 239 *fLog << GetDescriptor() << ":" << endl; 242 *fLog << " Offset Lo-Gain =" << fOffsetLoGain << endl;240 *fLog << " Offset Lo-Gain: " << fOffsetLoGain << endl; 243 241 MExtractor::Print(o); 244 242 } -
trunk/MagicSoft/Mars/msignal/MExtractTimeFastSpline.cc
r4284 r4732 54 54 const Float_t MExtractTimeFastSpline::fgResolution = 0.003; 55 55 const Float_t MExtractTimeFastSpline::fgRiseTime = 1.5; 56 56 57 // -------------------------------------------------------------------------- 57 58 // … … 672 673 } 673 674 674 675 // -------------------------------------------------------------------------- 676 // 677 // In addition to the resources of the base-class MExtractor: 678 // MJPedestal.MExtractor.Resolution: 0.003 679 // MJPedestal.MExtractor.RiseTime: 1.5 680 // 681 Int_t MExtractTimeFastSpline::ReadEnv(const TEnv &env, TString prefix, Bool_t print) 682 { 683 Bool_t rc = kFALSE; 684 685 if (IsEnvDefined(env, prefix, "HiGainWindowSize", print)) 686 { 687 SetResolution(GetEnvValue(env, prefix, "Resolution", fResolution)); 688 rc = kTRUE; 689 } 690 if (IsEnvDefined(env, prefix, "LoGainWindowSize", print)) 691 { 692 SetRiseTime(GetEnvValue(env, prefix, "RiseTime", fRiseTime)); 693 rc = kTRUE; 694 } 695 696 return MExtractTime::ReadEnv(env, prefix, print) ? kTRUE : rc; 697 } 698 699 void MExtractTimeFastSpline::Print(Option_t *o) const 700 { 701 *fLog << all; 702 *fLog << GetDescriptor() << ":" << endl; 703 *fLog << " Resolution: " << fResolution << endl; 704 *fLog << " RiseTime: " << fRiseTime << endl; 705 MExtractTime::Print(o); 706 } -
trunk/MagicSoft/Mars/msignal/MExtractTimeFastSpline.h
r4723 r4732 18 18 static const Float_t fgRiseTime ; // Default for fRiseTime (now set to: 1.5 C 19 19 20 Float_t *fHiGainFirstDeriv; 21 Float_t *fLoGainFirstDeriv; 22 Float_t *fHiGainSecondDeriv; 23 Float_t *fLoGainSecondDeriv; 20 Float_t *fHiGainFirstDeriv; //! 21 Float_t *fLoGainFirstDeriv; //! 22 Float_t *fHiGainSecondDeriv; //! 23 Float_t *fLoGainSecondDeriv; //! 24 24 25 Float_t fResolution; 26 Float_t fRiseTime ; // The rise time of the pulse27 Byte_t fStartBeforeMax; 25 Float_t fResolution; // The time resolution in FADC units 26 Float_t fRiseTime ; // The rise time of the pulse 27 Byte_t fStartBeforeMax; // Slices to start searching for the halfmax before max 28 28 29 29 void FindTimeHiGain(Byte_t *first, Float_t &time, Float_t &dtime, Byte_t &sat, const MPedestalPix &ped) const; 30 30 void FindTimeLoGain(Byte_t *first, Float_t &time, Float_t &dtime, Byte_t &sat, const MPedestalPix &ped) const; 31 32 Int_t ReadEnv(const TEnv &env, TString prefix, Bool_t print); 31 33 32 34 public: … … 38 40 void SetResolution(Float_t f=fgResolution) { fResolution = f; } 39 41 void SetRiseTime (Float_t f=fgRiseTime ) { fRiseTime = f; fStartBeforeMax = (Int_t)(2*fRiseTime); } 42 43 void Print(Option_t *o) const; 40 44 41 ClassDef(MExtractTimeFastSpline, 0) // Task to Extract the Arrival Times using a Fast Spline45 ClassDef(MExtractTimeFastSpline, 1) // Task to Extract the Arrival Times using a Fast Spline 42 46 }; 43 47 -
trunk/MagicSoft/Mars/msignal/MExtractTimeHighestIntegral.cc
r4723 r4732 324 324 SetWindowSize(hw, lw); 325 325 326 rc = MExtractTime::ReadEnv(env, prefix, print) ? kTRUE : rc; 327 328 return rc; 326 return MExtractTime::ReadEnv(env, prefix, print) ? kTRUE : rc; 329 327 } 330 328
Note:
See TracChangeset
for help on using the changeset viewer.