Changeset 4341 for trunk/MagicSoft


Ignore:
Timestamp:
06/23/04 02:07:40 (20 years ago)
Author:
gaug
Message:
*** empty log message ***
File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/MagicSoft/Mars/msignal/MExtractBlindPixel.h

    r3962 r4341  
    1515#endif
    1616
     17#ifndef ROOT_TArrayI
     18#include <TArrayI.h>
     19#endif
     20
    1721class MExtractedSignalBlindPixel;
    1822class MExtractBlindPixel : public MExtractor
     
    2630  static const Byte_t fgLoGainFirst;     // First FADC slice Lo-Gain (currently set to: 0)
    2731  static const Byte_t fgLoGainLast;      // Last FADC slice Lo-Gain (currently set to:  2)
    28 
     32  static const Float_t fgResolution;     // Default for fResolution   (now set to: 0.003)
     33 
    2934  MExtractedSignalBlindPixel  *fBlindPixel;   // Extracted signal of the Blind Pixel
    3035
    31   Int_t   fBlindPixelIdx;
     36  Byte_t  fHiLoFirst;
     37  Float_t *fHiGainSignal;                     // Need fast access to the signals in a float way
     38  Float_t *fHiGainFirstDeriv;
     39  Float_t *fHiGainSecondDeriv;
     40
     41  Float_t fResolution;                        // The time resolution in FADC units
     42  TArrayI fBlindPixelIdx;
    3243  Int_t   fNSBFilterLimit; 
    3344
    34   void FindSignalHiGain(Byte_t *firstused, Byte_t *lowgain, Int_t &sum, Byte_t &sat) const;
     45  void FindSignalPhe(Byte_t *firstused, Byte_t *lowgain, Float_t &sum, Byte_t &sat) const;
    3546  void FindSignalFilter(Byte_t *ptr, Int_t &sum, Byte_t &sat) const;
    3647 
    3748  Int_t  PreProcess(MParList *pList);
     49  Bool_t ReInit(MParList *pList);
    3850  Int_t  Process();
    3951
     
    4153
    4254  MExtractBlindPixel(const char *name=NULL, const char *title=NULL);
    43 
     55  ~MExtractBlindPixel();
     56 
    4457  // Setters
    4558  void SetRange(Byte_t hifirst=0, Byte_t hilast=0, Byte_t lofirst=0, Byte_t lolast=0);
    46   void SetBlindPixelIdx(  const  Int_t idx=fgBlindPixelIdx  ) { fBlindPixelIdx   = idx; }
     59  void SetBlindPixelIdx(  const  Int_t idx=fgBlindPixelIdx, const Int_t nr=0) {
     60    if (nr>fBlindPixelIdx.GetSize()+1)
     61      fBlindPixelIdx.Set(nr+1);
     62    fBlindPixelIdx.AddAt(idx,nr); }
    4763  void SetNSBFilterLimit(  const  Int_t lim=fgNSBFilterLimit ) { fNSBFilterLimit     = lim; }   
    48 
     64  void SetResolution(Float_t f=fgResolution)     { fResolution = f;  }
     65 
    4966  ClassDef(MExtractBlindPixel, 0) // Signal Extractor for the Blind Pixel
    5067};
Note: See TracChangeset for help on using the changeset viewer.