Ignore:
Timestamp:
10/25/06 19:36:26 (18 years ago)
Author:
tbretz
Message:
*** empty log message ***
Location:
trunk/MagicSoft/Mars/mextralgo
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • trunk/MagicSoft/Mars/mextralgo/MExtralgoDigitalFilter.cc

    r8154 r8165  
    210210    // Take also a possible offset from timefineadjust into account
    211211    //  Sould it be: fTime += fWindowSize/2; ???
     212
     213    // HERE we should add the distance from the beginning of the
     214    // extraction window to the leading edge!
    212215    fTime += 0.5 + 0.5/fWeightsPerBin;
    213     // In the ideal case the would never get <0
    214     // But timefineadjust can be >0.05 (in 60% of the cases)
    215 
    216216    // Define in each extractor a lowest and highest extracted value!
    217217
    218     // here, the first high-gain slice is already included
    219     // in the fTimeShiftHiGain this shifts the time to the
    220     // start of the rising edge
    221 
    222     // This is from MExtractTimeAndChargeDigitalFilter
    223     // fTime += 0.5 + 1./fWeightsPerBin;
    224 
    225     // Now there is a difference between the rising edge and
    226     // the extracted time. This must be applied after
    227     // the randomization in case of wrog values
    228 
    229218    const Float_t timefineadjust = sumtime/sumamp;
    230 
    231     // FIXME: Is 3 a good value?
    232     //if (TMath::Abs(timefineadjust)*fWeightsPerBin < 3.)
    233     //    fTime -= timefineadjust;
    234 
    235     //    if (TMath::FloorNint(timefineadjust+0.5)==0)
    236219
    237220    //if (TMath::Abs(timefineadjust) < 0.2)
  • trunk/MagicSoft/Mars/mextralgo/MExtralgoSpline.cc

    r8158 r8165  
    6969void MExtralgoSpline::InitDerivatives() const
    7070{
     71    if (fNum<2)
     72        return;
     73
    7174    fDer1[0] = 0.;
    7275    fDer2[0] = 0.;
     
    211214Float_t MExtralgoSpline::ExtractNoise(/*Int_t iter*/)
    212215{
     216    if (fNum<5)
     217        return 0;
     218
    213219    // FIXME: Shell we keep the extraction inside one slice
    214220    // or randomize it along the extraction window?
     
    216222
    217223    if (fExtractionType == kAmplitude)
    218         return Eval(1, nsx);
     224        return Eval(2, nsx);
    219225    else
    220         return CalcIntegral(2. + nsx);
     226        return CalcIntegral(2 + nsx);
    221227}
    222228
     
    227233    fSignalDev = -1;
    228234    fTimeDev   = -1;
     235
     236    if (fNum<2)
     237        return;
    229238/*
    230239    //
     
    373382
    374383    Float_t maxpos, maxval;
    375     // FIXME: Check the dfeault if no maximum found!!!
     384    // FIXME: Check the default if no maximum found!!!
    376385    GetMaxAroundI(maxbin, maxpos, maxval);
    377386
Note: See TracChangeset for help on using the changeset viewer.