Ignore:
Timestamp:
08/25/04 17:30:31 (20 years ago)
Author:
tbretz
Message:
*** empty log message ***
File:
1 edited

Legend:

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

    r4284 r4732  
    5454const Float_t MExtractTimeFastSpline::fgResolution   = 0.003;
    5555const Float_t MExtractTimeFastSpline::fgRiseTime     = 1.5;
     56
    5657// --------------------------------------------------------------------------
    5758//
     
    672673}
    673674
    674 
     675// --------------------------------------------------------------------------
     676//
     677// In addition to the resources of the base-class MExtractor:
     678//   MJPedestal.MExtractor.Resolution: 0.003
     679//   MJPedestal.MExtractor.RiseTime:   1.5
     680//
     681Int_t MExtractTimeFastSpline::ReadEnv(const TEnv &env, TString prefix, Bool_t print)
     682{
     683    Bool_t rc = kFALSE;
     684
     685    if (IsEnvDefined(env, prefix, "HiGainWindowSize", print))
     686    {
     687        SetResolution(GetEnvValue(env, prefix, "Resolution", fResolution));
     688        rc = kTRUE;
     689    }
     690    if (IsEnvDefined(env, prefix, "LoGainWindowSize", print))
     691    {
     692        SetRiseTime(GetEnvValue(env, prefix, "RiseTime", fRiseTime));
     693        rc = kTRUE;
     694    }
     695
     696    return MExtractTime::ReadEnv(env, prefix, print) ? kTRUE : rc;
     697}
     698
     699void MExtractTimeFastSpline::Print(Option_t *o) const
     700{
     701    *fLog << all;
     702    *fLog << GetDescriptor() << ":" << endl;
     703    *fLog << " Resolution:     " << fResolution << endl;
     704    *fLog << " RiseTime:       " << fRiseTime << endl;
     705    MExtractTime::Print(o);
     706}
Note: See TracChangeset for help on using the changeset viewer.