Ignore:
Timestamp:
02/15/05 10:42:35 (20 years ago)
Author:
tbretz
Message:
*** empty log message ***
File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/MagicSoft/Mars/msignal/MExtractTimeAndChargeSpline.cc

    r6391 r6477  
    11821182//
    11831183// 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
    11861189//
    11871190Int_t MExtractTimeAndChargeSpline::ReadEnv(const TEnv &env, TString prefix, Bool_t print)
     
    12141217
    12151218  if (IsEnvDefined(env, prefix, "Amplitude", print))
    1216     {
     1219  {
    12171220      b = GetEnvValue(env, prefix, "Amplitude", IsExtractionType(kAmplitude));
    1218       if (b) 
    1219         SetChargeType(kAmplitude);
     1221      if (b)
     1222          SetChargeType(kAmplitude);
    12201223      rc = kTRUE;
    1221     }
     1224  }
    12221225  if (IsEnvDefined(env, prefix, "Integral", print))
    1223     {
     1226  {
    12241227      b = GetEnvValue(env, prefix, "Integral", IsExtractionType(kIntegral));
    1225       if (b) 
    1226         SetChargeType(kIntegral);
     1228      if (b)
     1229          SetChargeType(kIntegral);
    12271230      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
    12291251
    12301252  return MExtractTimeAndCharge::ReadEnv(env, prefix, print) ? kTRUE : rc;
Note: See TracChangeset for help on using the changeset viewer.