Ignore:
Timestamp:
08/12/04 16:41:37 (20 years ago)
Author:
tbretz
Message:
*** empty log message ***
File:
1 edited

Legend:

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

    r4586 r4601  
    302302//   MJPedestal.MExtractor.SaturationLimit: 88
    303303//
    304 Bool_t MExtractor::ReadEnv(const TEnv &env, TString prefix, Bool_t print)
     304Int_t MExtractor::ReadEnv(const TEnv &env, TString prefix, Bool_t print)
    305305{
    306306    Byte_t hf = fHiGainFirst;
     
    309309    Byte_t ll = fLoGainLast;
    310310
     311    Bool_t rc = kFALSE;
     312
    311313    if (IsEnvDefined(env, prefix, "HiGainFirst", print))
     314    {
    312315        hf = GetEnvValue(env, prefix, "HiGainFirst", hf);
     316        rc = kTRUE;
     317    }
    313318    if (IsEnvDefined(env, prefix, "LoGainFirst", print))
     319    {
    314320        lf = GetEnvValue(env, prefix, "LoGainFirst", lf);
     321        rc = kTRUE;
     322    }
    315323
    316324    if (IsEnvDefined(env, prefix, "HiGainLast", print))
     325    {
    317326        hl = GetEnvValue(env, prefix, "HiGainLast", hl);
     327        rc = kTRUE;
     328    }
    318329    if (IsEnvDefined(env, prefix, "LoGainLast", print))
     330    {
    319331        ll = GetEnvValue(env, prefix, "LoGainLast", ll);
     332        rc = kTRUE;
     333    }
    320334
    321335    SetRange(hf, hl, lf, ll);
    322336
    323337    if (IsEnvDefined(env, prefix, "SaturationLimit", print))
     338    {
    324339        SetSaturationLimit(GetEnvValue(env, prefix, "SaturationLimit", fSaturationLimit));
    325 
    326     return kTRUE;
    327 }
     340        rc = kTRUE;
     341    }
     342
     343    return rc;
     344}
Note: See TracChangeset for help on using the changeset viewer.