Changeset 6532 for trunk/MagicSoft


Ignore:
Timestamp:
02/16/05 16:22:18 (20 years ago)
Author:
gaug
Message:
*** empty log message ***
Location:
trunk/MagicSoft/Mars
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • trunk/MagicSoft/Mars/Changelog

    r6531 r6532  
    3232       in newer root versions
    3333
     34   * msignal/MExtractTimeAndCharge.cc
     35     - initialize fLoGainStartShift correctly if read from conf. file
     36       and modified fOffsetLoGain exists.
    3437
    3538
  • trunk/MagicSoft/Mars/msignal/MExtractTimeAndCharge.cc

    r6469 r6532  
    223223          fLoGainFirst = logainstart > fLoGainFirstSave ? logainstart : fLoGainFirstSave;
    224224
     225          // *fLog << err << (Int_t)fLoGainFirst << endl;
     226
    225227          if ( fLoGainFirst < fLoGainLast )
    226228            {
     
    264266Int_t MExtractTimeAndCharge::ReadEnv(const TEnv &env, TString prefix, Bool_t print)
    265267{
    266     Bool_t rc = kFALSE;
     268
     269    Bool_t rc = MExtractTime::ReadEnv(env, prefix, print);
     270
     271    if (rc)
     272      SetLoGainStartShift();
    267273
    268274    if (IsEnvDefined(env, prefix, "LoGainStartShift", print))
    269275    {
    270         fLoGainStartShift = GetEnvValue(env, prefix, "LoGainStartShift", fLoGainStartShift);
     276        fLoGainStartShift = GetEnvValue(env, prefix, "LoGainStartShift", fgLoGainStartShift);
     277        SetLoGainStartShift(fLoGainStartShift);
    271278        rc = kTRUE;
    272279    }
     
    278285    }
    279286
    280     return MExtractTime::ReadEnv(env, prefix, print) ? kTRUE : rc;
     287    return rc;
    281288}
    282289
Note: See TracChangeset for help on using the changeset viewer.