Ignore:
Timestamp:
02/03/07 20:07:52 (18 years ago)
Author:
tbretz
Message:
*** empty log message ***
File:
1 edited

Legend:

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

    r8294 r8297  
    11/* ======================================================================== *\
    2 ! $Name: not supported by cvs2svn $:$Id: MExtractTimeAndCharge.cc,v 1.61 2007-02-03 15:10:14 tbretz Exp $
     2! $Name: not supported by cvs2svn $:$Id: MExtractTimeAndCharge.cc,v 1.62 2007-02-03 20:05:35 tbretz Exp $
    33! --------------------------------------------------------------------------
    44!
     
    3232//   Base class for the signal extractors which extract the arrival time
    3333//   and the signal at the same time. Uses the functions
    34 //   FindTimeAndChargeHiGain() and FindTimeAndChargeLoGain() to extract the signal and
    35 //   substract the pedestal value.
     34//   FindTimeAndChargeHiGain() and FindTimeAndChargeLoGain() to extract
     35//   the signal.
    3636//
    3737//   The following figure gives and example of possible inheritance trees.
     
    5353//   - fSqrtHiGainSamples
    5454//   - fSqrtLoGainSamples
     55//
     56//
     57// Class Version 3:
     58// ----------------
     59//   - Byte_t fMaxBinContent;
     60//
    5561//
    5662// Input Containers:
     
    243249        // For extractors like the digital filter and the spline
    244250        // we allow extracpolation by one slice.
     251        // FIXME: Defined Out-Of-Range better so that the extractors
     252        //        know what to return!
    245253        if (deltatimehi>-0.5 && (timehi<-1 || timehi>=rangehi))
    246254        {
    247255            // Flag this as unreliable!
    248256            timehi = gRandom->Uniform(rangehi+1)-1;
    249             // deltatimehi=-1;
     257            // deltatimehi=-1; // Set PIXEL to UNRELIABLE?
    250258        }
    251259
     
    323331            numsatlo = fSignal->GetSaturation(pixidx, fSaturationLimit, satlo0, satlo1);
    324332
     333            //if (satlo0>first && satlo1<last && numsatlo>2)
     334            //{
     335            //    fSignal->InterpolateSaturation(pixidx, fSaturationLimit, satlo0, satlo1);
     336            //    numsatlo = 0;
     337            //}
     338
    325339            const Int_t rangelo = last-first+1;
    326340            FindTimeAndChargeLoGain2(sig+first, rangelo,
     
    345359                // Flag this as unreliable!
    346360                timelo = gRandom->Uniform(rangelo+1)-1;
    347                 //deltatimelo=-1;
     361                //deltatimelo=-1; // Set PIXEL to UNRELIABLE?
    348362            }
    349363
     
    356370                deltasumlo=deltatimelo=-1;
    357371
     372            // The extracted lo-gain signal cannot be zero or
     373            // negative at all, so it must be wrong
     374            if (sumlo<=0)
     375                deltasumlo=-1;
     376
    358377            //if (TMath::Abs(timelo-fOffsetLoGain - timehi)>1.0)
    359378            //    deltatimelo = -1;
    360379        }
    361 
    362380
    363381        // Now store the result in the corresponding containers
Note: See TracChangeset for help on using the changeset viewer.