Ignore:
Timestamp:
02/03/07 20:07:52 (18 years ago)
Author:
tbretz
Message:
*** empty log message ***
Location:
trunk/MagicSoft/Mars/msignal
Files:
3 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
  • trunk/MagicSoft/Mars/msignal/MExtractTimeAndCharge.h

    r8192 r8297  
    5555  void Print(Option_t *o="") const; //*MENU*
    5656
    57   ClassDef(MExtractTimeAndCharge, 2)   // Time And Charge Extractor Base Class
     57  ClassDef(MExtractTimeAndCharge, 3)   // Time And Charge Extractor Base Class
    5858};
    5959
  • trunk/MagicSoft/Mars/msignal/MExtractTimeAndChargeSpline.cc

    r8166 r8297  
    11/* ======================================================================== *\
    2 ! $Name: not supported by cvs2svn $:$Id: MExtractTimeAndChargeSpline.cc,v 1.64 2006-10-25 18:41:47 tbretz Exp $
     2! $Name: not supported by cvs2svn $:$Id: MExtractTimeAndChargeSpline.cc,v 1.65 2007-02-03 20:07:52 tbretz Exp $
    33! --------------------------------------------------------------------------
    44!
     
    161161const Byte_t  MExtractTimeAndChargeSpline::fgLoGainLast       = 14;
    162162const Float_t MExtractTimeAndChargeSpline::fgResolution       = 0.05;
    163 const Float_t MExtractTimeAndChargeSpline::fgRiseTimeHiGain   = 0.7;
    164 const Float_t MExtractTimeAndChargeSpline::fgFallTimeHiGain   = 1.0;
     163const Float_t MExtractTimeAndChargeSpline::fgRiseTimeHiGain   = 0.64;
     164const Float_t MExtractTimeAndChargeSpline::fgFallTimeHiGain   = 0.76;
    165165const Float_t MExtractTimeAndChargeSpline::fgLoGainStretch    = 1.5;
    166166const Float_t MExtractTimeAndChargeSpline::fgOffsetLoGain     = 1.3;
     
    181181//
    182182MExtractTimeAndChargeSpline::MExtractTimeAndChargeSpline(const char *name, const char *title)
    183     : /*fRandomIter(0),*/ fExtractionType(kIntegral)
     183    : fExtractionType(kIntegral)
    184184{
    185185
Note: See TracChangeset for help on using the changeset viewer.