Changeset 5927 for trunk/MagicSoft/Mars


Ignore:
Timestamp:
01/21/05 13:13:56 (20 years ago)
Author:
mazin
Message:
*** empty log message ***
Location:
trunk/MagicSoft/Mars
Files:
5 edited

Legend:

Unmodified
Added
Removed
  • trunk/MagicSoft/Mars/Changelog

    r5924 r5927  
    2020
    2121                                                 -*-*- END OF LINE -*-*-
     22
     23 2005/01/21 Markus Gaug
     24
     25   * msignal/MExtractTimeAndChargeDigitalFilter.cc
     26     - use the max. bin content for low-gain extraction
    2227
    2328 2005/01/21 Florian Goebel
  • trunk/MagicSoft/Mars/msignal/MExtractTimeAndCharge.cc

    r5918 r5927  
    186186      Byte_t sathi=0;
    187187
    188       fMaxBinContent = 0;
     188      // Initialize fMaxBinContent for the case, it gets not set by the derived class
     189      fMaxBinContent = fMaxBinContentLimit + 1;
    189190
    190191      const Int_t pixidx = pixel.GetPixelId();
     
    211212      // Adapt the low-gain extraction range from the obtained high-gain time
    212213      //
    213       if (pixel.HasLoGain() && (fMaxBinContent < fMaxBinContentLimit) )
     214      if (pixel.HasLoGain() && (fMaxBinContent > fMaxBinContentLimit) )
    214215      {
    215216          deltasumlo  = 0; // make logain of MExtractedSignalPix valid
  • trunk/MagicSoft/Mars/msignal/MExtractTimeAndChargeDigitalFilter.cc

    r5867 r5927  
    260260  const Float_t pedmean[2] = { pedes + ABoffs, pedes - ABoffs };
    261261
     262  fMaxBinContent = 0;
    262263  //
    263264  // Check for saturation in all other slices
     
    274275          maxpos =  p-ptr;
    275276        }
     277
     278      if (*p > fMaxBinContent)
     279        fMaxBinContent = *p;
    276280
    277281      if (*p++ >= fSaturationLimit)
     
    296300            }
    297301         
     302          if (*logain > fMaxBinContent)
     303            fMaxBinContent = *logain;
     304
    298305          if (*logain++ >= fSaturationLimit)
    299306            if (!sat)
  • trunk/MagicSoft/Mars/msignal/MExtractTimeAndChargeSlidingWindow.cc

    r5747 r5927  
    217217
    218218  Float_t PedMean[2] = { pedes + ABoffs, pedes - ABoffs };
     219
     220  fMaxBinContent = 0;
    219221  //
    220222  // Check for saturation in all other slices
     
    229231      fHiGainSignal[count] = signal;
    230232     
     233      if (*p > fMaxBinContent)
     234        fMaxBinContent = *p;
     235
    231236      if (*p++ >= fSaturationLimit)
    232237        if (!sat)
     
    285290          sum                 += signal - fHiGainSignal[count];
    286291          fHiGainSignal[count + fWindowSizeHiGain] = signal;
     292
     293          if (*l > fMaxBinContent)
     294            fMaxBinContent = *logain;
     295
    287296          if (*l++ >= fSaturationLimit)
    288297            if (!sat)
  • trunk/MagicSoft/Mars/msignal/MExtractTimeAndChargeSpline.cc

    r5813 r5927  
    311311  const Float_t pedmean[2] = { pedes + ABoffs, pedes - ABoffs };
    312312
    313   fAbMax        = 0.;
    314   fAbMaxPos     = 0.;
    315   fHalfMax      = 0.;
    316   Int_t  maxpos = 0;
    317   Int_t  max    = 0;
     313  fAbMax         = 0.;
     314  fAbMaxPos      = 0.;
     315  fHalfMax       = 0.;
     316  fMaxBinContent = 0;
     317  Int_t  maxpos  = 0;
    318318
    319319  //
     
    327327      *sample++ = (Float_t)*p - pedmean[(ids++ + abflag) & 0x1];
    328328
    329       if (*p > max)
     329      if (*p > fMaxBinContent)
    330330        {
    331331          maxpos = ids-fHiGainFirst-1;
    332           max    = *p;
     332          fMaxBinContent = *p;
    333333        }
    334334
     
    349349          *sample++ = (Float_t)*logain - pedmean[(ids++ + abflag) & 0x1];
    350350
    351           if (*logain > max)
     351          if (*logain > fMaxBinContent)
    352352            {
    353353              maxpos = ids-fHiGainFirst-1;
    354               max    = *logain;
     354              fMaxBinContent = *logain;
    355355            }
    356356         
Note: See TracChangeset for help on using the changeset viewer.