Changeset 6477 for trunk/MagicSoft/Mars/msignal
- Timestamp:
- 02/15/05 10:42:35 (20 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/MagicSoft/Mars/msignal/MExtractTimeAndChargeSpline.cc
r6391 r6477 1182 1182 // 1183 1183 // In addition to the resources of the base-class MExtractor: 1184 // MJPedestal.MExtractor.WindowSizeHiGain: 6 1185 // MJPedestal.MExtractor.WindowSizeLoGain: 6 1184 // Resolution 1185 // RiseTimeHiGain 1186 // FallTimeHiGain 1187 // LoGainStretch 1188 // ExtractionType: amplitude, integral 1186 1189 // 1187 1190 Int_t MExtractTimeAndChargeSpline::ReadEnv(const TEnv &env, TString prefix, Bool_t print) … … 1214 1217 1215 1218 if (IsEnvDefined(env, prefix, "Amplitude", print)) 1216 1219 { 1217 1220 b = GetEnvValue(env, prefix, "Amplitude", IsExtractionType(kAmplitude)); 1218 if (b) 1219 SetChargeType(kAmplitude);1221 if (b) 1222 SetChargeType(kAmplitude); 1220 1223 rc = kTRUE; 1221 1224 } 1222 1225 if (IsEnvDefined(env, prefix, "Integral", print)) 1223 1226 { 1224 1227 b = GetEnvValue(env, prefix, "Integral", IsExtractionType(kIntegral)); 1225 if (b) 1226 SetChargeType(kIntegral);1228 if (b) 1229 SetChargeType(kIntegral); 1227 1230 rc = kTRUE; 1228 } 1231 } 1232 1233 if (IsEnvDefined(env, prefix, "ExtractionType", print)) 1234 { 1235 TString type = GetEnvValue(env, prefix, "ExtractionType", ""); 1236 type.ToLower(); 1237 type = type.Strip(TString::kBoth); 1238 if (type==(TString)"amplitude") 1239 SetChargeType(kAmplitude); 1240 if (type==(TString)"integral") 1241 SetChargeType(kIntegral); 1242 if (type==(TString)"maximum") 1243 SetChargeType(kMaximum); 1244 if (type==(TString)"halfmaximum") 1245 SetChargeType(kHalfMaximum); 1246 rc=kTRUE; 1247 } 1248 1249 1250 1229 1251 1230 1252 return MExtractTimeAndCharge::ReadEnv(env, prefix, print) ? kTRUE : rc;
Note:
See TracChangeset
for help on using the changeset viewer.