Ignore:
Timestamp:
08/25/04 17:30:31 (20 years ago)
Author:
tbretz
Message:
*** empty log message ***
Location:
trunk/MagicSoft/Mars/msignal
Files:
4 edited

Legend:

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

    r4723 r4732  
    230230    }
    231231
    232     rc = MExtractor::ReadEnv(env, prefix, print) ? kTRUE : rc;
    233 
    234     return rc;
     232    return MExtractor::ReadEnv(env, prefix, print) ? kTRUE : rc;
    235233}
    236234
     
    240238    if (IsA()==MExtractTime::Class())
    241239        *fLog << GetDescriptor() << ":" << endl;
    242     *fLog << " Offset Lo-Gain=" << fOffsetLoGain << endl;
     240    *fLog << " Offset Lo-Gain: " << fOffsetLoGain << endl;
    243241    MExtractor::Print(o);
    244242}
  • 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}
  • trunk/MagicSoft/Mars/msignal/MExtractTimeFastSpline.h

    r4723 r4732  
    1818  static const Float_t fgRiseTime  ;     // Default for fRiseTime     (now set to: 1.5  C 
    1919
    20   Float_t *fHiGainFirstDeriv;
    21   Float_t *fLoGainFirstDeriv; 
    22   Float_t *fHiGainSecondDeriv;
    23   Float_t *fLoGainSecondDeriv; 
     20  Float_t *fHiGainFirstDeriv;            //!
     21  Float_t *fLoGainFirstDeriv;            //!
     22  Float_t *fHiGainSecondDeriv;           //!
     23  Float_t *fLoGainSecondDeriv;           //!
    2424
    25   Float_t fResolution;                        // The time resolution in FADC units
    26   Float_t fRiseTime  ;                        // The rise time of the pulse
    27   Byte_t  fStartBeforeMax;                    // Slices to start searching for the halfmax before max
     25  Float_t fResolution;                   // The time resolution in FADC units
     26  Float_t fRiseTime  ;                   // The rise time of the pulse
     27  Byte_t  fStartBeforeMax;               // Slices to start searching for the halfmax before max
    2828 
    2929  void FindTimeHiGain(Byte_t *first, Float_t &time, Float_t &dtime, Byte_t &sat, const MPedestalPix &ped) const;
    3030  void FindTimeLoGain(Byte_t *first, Float_t &time, Float_t &dtime, Byte_t &sat, const MPedestalPix &ped) const;
     31
     32  Int_t ReadEnv(const TEnv &env, TString prefix, Bool_t print);
    3133 
    3234public:
     
    3840  void SetResolution(Float_t f=fgResolution)     { fResolution = f;  }
    3941  void SetRiseTime  (Float_t f=fgRiseTime  )     { fRiseTime   = f; fStartBeforeMax = (Int_t)(2*fRiseTime); } 
     42
     43  void Print(Option_t *o) const;
    4044 
    41   ClassDef(MExtractTimeFastSpline, 0)   // Task to Extract the Arrival Times using a Fast Spline
     45  ClassDef(MExtractTimeFastSpline, 1)   // Task to Extract the Arrival Times using a Fast Spline
    4246};
    4347
  • trunk/MagicSoft/Mars/msignal/MExtractTimeHighestIntegral.cc

    r4723 r4732  
    324324        SetWindowSize(hw, lw);
    325325
    326     rc = MExtractTime::ReadEnv(env, prefix, print) ? kTRUE : rc;
    327 
    328     return rc;
     326    return MExtractTime::ReadEnv(env, prefix, print) ? kTRUE : rc;
    329327}
    330328
Note: See TracChangeset for help on using the changeset viewer.