Changeset 6477 for trunk/MagicSoft


Ignore:
Timestamp:
02/15/05 10:42:35 (20 years ago)
Author:
tbretz
Message:
*** empty log message ***
Location:
trunk/MagicSoft/Mars
Files:
3 edited

Legend:

Unmodified
Added
Removed
  • trunk/MagicSoft/Mars/Changelog

    r6476 r6477  
    2121
    2222                                                 -*-*- 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
    2335
    2436 2005/02/15 Markus Gaug
  • trunk/MagicSoft/Mars/callisto.rc

    r6391 r6477  
    8080#MJPedestalC1.ExtractSignal.FallTimeHiGain:    1.5
    8181#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
    8484# -------------------------------------------------------------------------
    8585# Define here parameters valid for the sliding window:
  • 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.