Ignore:
Timestamp:
01/21/05 13:39:16 (20 years ago)
Author:
mazin
Message:
*** empty log message ***
File:
1 edited

Legend:

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

    r5929 r5930  
    8686
    8787const Float_t MExtractTimeAndCharge::fgLoGainStartShift = -2.8;
    88 const Byte_t  MExtractTimeAndCharge::fgMaxBinContentLimit = 100;
     88const Byte_t  MExtractTimeAndCharge::fgLoGainSwitch = 100;
    8989// --------------------------------------------------------------------------
    9090//
     
    9595// - fWindowSizeHiGain and fWindowSizeLoGain to 0
    9696// - fLoGainStartShift to fgLoGainStartShift+fgOffsetLoGain
    97 // - fMaxBinContentLimt to fgMaxBinContentLimit
     97// - fLoGainSwitch     to fgLoGainSwitch
    9898//
    9999MExtractTimeAndCharge::MExtractTimeAndCharge(const char *name, const char *title)
     
    104104
    105105    SetLoGainStartShift();
    106     SetMaxBinContentLimit();
     106    SetLoGainSwitch();
    107107}
    108108
     
    187187
    188188      // Initialize fMaxBinContent for the case, it gets not set by the derived class
    189       fMaxBinContent = fMaxBinContentLimit + 1;
     189      fMaxBinContent = fLoGainSwitch + 1;
    190190
    191191      const Int_t pixidx = pixel.GetPixelId();
     
    212212      // Adapt the low-gain extraction range from the obtained high-gain time
    213213      //
    214       if (pixel.HasLoGain() && (fMaxBinContent > fMaxBinContentLimit) )
     214      if (pixel.HasLoGain() && (fMaxBinContent > fLoGainSwitch) )
    215215      {
    216216          deltasumlo  = 0; // make logain of MExtractedSignalPix valid
     
    273273    }
    274274
    275     if (IsEnvDefined(env, prefix, "MaxBinContentLimit", print))
     275    if (IsEnvDefined(env, prefix, "LoGainSwitch", print))
    276276    {
    277         fMaxBinContentLimit = GetEnvValue(env, prefix, "MaxBinContentLimit", fMaxBinContentLimit);
     277        fLoGainSwitch = GetEnvValue(env, prefix, "LoGainSwitch", fLoGainSwitch);
    278278        rc = kTRUE;
    279279    }
     
    296296 
    297297  *fLog << " LoGainStartShift:   " << fLoGainStartShift << endl;
    298   *fLog << " MaxBinContentLimit: " << (Int_t)fMaxBinContentLimit << endl;
     298  *fLog << " LoGainSwitch:       " << (Int_t)fLoGainSwitch << endl;
    299299  MExtractTime::Print(o);
    300300}
Note: See TracChangeset for help on using the changeset viewer.