Changeset 6477 for trunk/MagicSoft/Mars
- Timestamp:
- 02/15/05 10:42:35 (20 years ago)
- Location:
- trunk/MagicSoft/Mars
- Files:
-
- 3 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/MagicSoft/Mars/Changelog
r6476 r6477 21 21 22 22 -*-*- END OF LINE -*-*- 23 24 2005/02/15 Thomas Bretz 25 26 * callisto.rc: 27 - replaced mutal exclusive options (Integral, Amplitude) by 28 a one-line resource 29 30 * msignal/MExtractTimeAndChargeSpline.cc: 31 - replaced mutal exclusive options (Integral, Amplitude) by 32 a one-line resource "ExtractionType" (old code still works) 33 34 23 35 24 36 2005/02/15 Markus Gaug -
trunk/MagicSoft/Mars/callisto.rc
r6391 r6477 80 80 #MJPedestalC1.ExtractSignal.FallTimeHiGain: 1.5 81 81 #MJPedestalC1.ExtractSignal.LoGainStretch: 1.5 82 #MJPedestalC1.ExtractSignal. Integral: (default)83 #MJPedestalC1.ExtractSignal. Amplitude: (not default)82 #MJPedestalC1.ExtractSignal.ExtractionType: Integral <default> 83 #MJPedestalC1.ExtractSignal.ExtractionType: Amplitude 84 84 # ------------------------------------------------------------------------- 85 85 # Define here parameters valid for the sliding window: -
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.