- Timestamp:
- 10/11/04 23:29:43 (20 years ago)
- Location:
- trunk/MagicSoft/Mars/msignal
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/MagicSoft/Mars/msignal/MExtractTimeAndChargeSpline.cc
r5230 r5231 380 380 } 381 381 382 if (*p >= fSaturationLimit)382 if (*p++ >= fSaturationLimit) 383 383 sat++; 384 384 385 p++;386 385 count++; 387 386 } … … 1046 1045 } 1047 1046 1047 // -------------------------------------------------------------------------- 1048 // 1049 // In addition to the resources of the base-class MExtractor: 1050 // MJPedestal.MExtractor.WindowSizeHiGain: 6 1051 // MJPedestal.MExtractor.WindowSizeLoGain: 6 1052 // 1053 Int_t MExtractTimeAndChargeSpline::ReadEnv(const TEnv &env, TString prefix, Bool_t print) 1054 { 1055 1056 Bool_t rc = kFALSE; 1057 1058 if (IsEnvDefined(env, prefix, "Resolution", print)) 1059 { 1060 SetResolution(GetEnvValue(env, prefix, "Resolution",fResolution)); 1061 rc = kTRUE; 1062 } 1063 if (IsEnvDefined(env, prefix, "RiseTime", print)) 1064 { 1065 SetRiseTime(GetEnvValue(env, prefix, "RiseTime", fRiseTime)); 1066 rc = kTRUE; 1067 } 1068 if (IsEnvDefined(env, prefix, "FallTime", print)) 1069 { 1070 SetFallTime(GetEnvValue(env, prefix, "FallTime", fFallTime)); 1071 rc = kTRUE; 1072 } 1073 1074 Bool_t b = kFALSE; 1075 1076 if (IsEnvDefined(env, prefix, "Amplitude", print)) 1077 { 1078 b = GetEnvValue(env, prefix, "Amplitude", IsExtractionType(kAmplitude)); 1079 if (b) 1080 SetChargeType(kAmplitude); 1081 rc = kTRUE; 1082 } 1083 if (IsEnvDefined(env, prefix, "Integral", print)) 1084 { 1085 b = GetEnvValue(env, prefix, "Integral", IsExtractionType(kIntegral)); 1086 if (b) 1087 SetChargeType(kIntegral); 1088 rc = kTRUE; 1089 } 1090 if (IsEnvDefined(env, prefix, "Maximum", print)) 1091 { 1092 b = GetEnvValue(env, prefix, "Maximum", IsExtractionType(kMaximum)); 1093 if (b) 1094 SetTimeType(kMaximum); 1095 rc = kTRUE; 1096 } 1097 if (IsEnvDefined(env, prefix, "HalfMaximum", print)) 1098 { 1099 b = GetEnvValue(env, prefix, "HalfMaximum", IsExtractionType(kHalfMaximum)); 1100 if (b) 1101 SetTimeType(kHalfMaximum); 1102 rc = kTRUE; 1103 } 1104 1105 return MExtractTimeAndCharge::ReadEnv(env, prefix, print) ? kTRUE : rc; 1106 1107 } -
trunk/MagicSoft/Mars/msignal/MExtractTimeAndChargeSpline.h
r5225 r5231 27 27 Float_t *fLoGainSecondDeriv; //! 28 28 29 Float_t fAbMax; //! Current maximum of the spline 30 Float_t fAbMaxPos; //! Current position of the maximum of the spline 31 Float_t fHalfMax; //! Current half maximum of the spline 32 29 33 Float_t fResolution; // The time resolution in FADC units 30 34 Float_t fRiseTime; // The usual rise time of the pulse 31 35 Float_t fFallTime; // The usual fall time of the pulse 32 36 33 Float_t fAbMax; // Current maximum of the spline34 Float_t fAbMaxPos; // Current position of the maximum of the spline35 Float_t fHalfMax; // Current half maximum of the spline36 37 37 Byte_t fFlags; // Bit-field to hold the time extraction types 38 38 39 Bool_t ReInit (MParList *pList);39 Bool_t ReInit( MParList *pList ); 40 40 41 41 void FindTimeAndChargeHiGain(Byte_t *first, Byte_t *logain, Float_t &sum, Float_t &dsum, … … 46 46 Byte_t &sat, const MPedestalPix &ped, const Bool_t abflag); 47 47 48 Int_t ReadEnv(const TEnv &env, TString prefix, Bool_t print); 49 48 50 public: 49 51
Note:
See TracChangeset
for help on using the changeset viewer.