Ignore:
Timestamp:
06/21/04 17:46:54 (20 years ago)
Author:
gaug
Message:
*** empty log message ***
File:
1 edited

Legend:

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

    r4274 r4311  
    66#endif
    77
     8#ifndef ROOT_TArrayI
    89#include <TArrayI.h>
     10#endif
     11
     12#ifndef ROOT_TArrayF
     13#include <TArrayF.h>
     14#endif
    915
    1016class MExtractedSignalBlindPixel : public MParContainer
     
    1218private:
    1319
    14   Int_t fExtractedSignal;    // mean value of the extracted signal
     20  static const UInt_t gkNumBlindPixels;  //! Current Number of blind pixels in the camera 
     21 
     22  TArrayI fBlindPixelIdx;                // Array Blind Pixel IDs
     23  TArrayF fExtractedSignal;              // Array Extracted signals per Blind Pixel ID
     24  TArrayI fNumSaturated;                 // Array Number of saturated slices per Blind Pixel ID
     25 
     26  TArrayF fPed;                          // Array Pedestal per Blind Pixel IDs                               
     27  TArrayF fPedErr;                       // Array Pedestal Error per Blind Pixel ID         
     28  TArrayF fPedRms;                       // Array Pedestal RMS per Blind Pixel ID
     29  TArrayF fPedRmsErr;                    // Array Pedestal RMS Error per Blind Pixel ID
    1530
    16   Byte_t fFirst;
    17   Byte_t fNumFADCSamples;
    18   Byte_t fNumSaturated;
     31  Byte_t  fFirst;                        // First FADC extraction slice
     32  Byte_t  fNumFADCSamples;               // Number of summed FADC slices
    1933
    20   Float_t fPed;
    21   Float_t fPedErr;
    22   Float_t fPedRms;
    23   Float_t fPedRmsErr;
    24 
    25   Int_t fBlindPixelIdx;
    26 
     34 
    2735public:
    2836
     
    3240  void Print(Option_t *o="") const;
    3341 
     42  // Getters
     43  Int_t   GetBlindPixelIdx   ( const Int_t i=0 )  const { return fBlindPixelIdx.At(i)  ; } 
     44  Float_t GetExtractedSignal ( const Int_t i=0 )  const { return fExtractedSignal.At(i); }
     45  Int_t   GetNumSaturated    ( const Int_t i=0 )  const { return fNumSaturated.At(i)   ; }
     46  Byte_t  GetNumFADCSamples  ()                   const { return fNumFADCSamples      ; }
     47
     48  Bool_t IsValid       ( const Int_t i=0 )  const;   
     49
     50  Float_t GetPed       ( const Int_t i=0 )  const { return fPed.At(i);       }
     51  Float_t GetPedErr    ( const Int_t i=0 )  const { return fPedErr.At(i);    }
     52  Float_t GetPedRms    ( const Int_t i=0 )  const { return fPedRms.At(i);    }
     53  Float_t GetPedRmsErr ( const Int_t i=0 )  const { return fPedRmsErr.At(i); }
     54
    3455  // Setter
    35   void SetExtractedSignal(const Int_t sig    )    { fExtractedSignal = sig;     }
    36   void SetNumSaturated(   const Byte_t numsat )    { fNumSaturated    = numsat;  }
    3756  void SetUsedFADCSlices( const Byte_t first, const Byte_t num);
    38   void SetNumFADCSamples( const Byte_t num    )    { fNumFADCSamples  = num;     }   
     57  void SetNumFADCSamples( const Byte_t num )    { fNumFADCSamples  = num;     }   
    3958
    40   void SetPed(      const Float_t f )     { fPed       = f; }
    41   void SetPedErr(   const Float_t f )     { fPedErr    = f; }
    42   void SetPedRms(   const Float_t f )     { fPedRms    = f; }
    43   void SetPedRmsErr(const Float_t f )     { fPedRmsErr = f; }
     59  void SetBlindPixelIdx  ( const Int_t i,   const Int_t nr=0)      {
     60    if (nr>fBlindPixelIdx.GetSize()-1)
     61      fBlindPixelIdx.Set(nr+1);
     62    fBlindPixelIdx.AddAt(i,nr); }
     63  void SetExtractedSignal( const Float_t f, const Int_t nr=0 )     {
     64    if (nr>fExtractedSignal.GetSize()-1)
     65      fExtractedSignal.Set(nr+1);
     66    fExtractedSignal.AddAt(f,nr); }
     67  void SetNumSaturated   ( const Int_t i,   const Int_t nr=0 )     {
     68    if (nr>fNumSaturated.GetSize()-1)
     69      fNumSaturated.Set(nr+1);
     70    fNumSaturated.AddAt(i,nr); }
     71  void SetPed            ( const Float_t f, const Int_t nr=0 )     {
     72    if (nr>fPed.GetSize()-1)
     73      fPed.Set(nr+1);
     74    fPed.AddAt(f,nr); }
     75  void SetPedErr         ( const Float_t f, const Int_t nr=0 )     {
     76    if (nr>fPedErr.GetSize()-1)
     77      fPedErr.Set(nr+1);
     78    fPedErr.AddAt(f,nr); }
     79  void SetPedRms         ( const Float_t f, const Int_t nr=0 )     {
     80    if (nr>fPedRms.GetSize()-1)
     81      fPedRms.Set(nr+1);
     82    fPedRms.AddAt(f,nr); }
     83  void SetPedRmsErr      ( const Float_t f, const Int_t nr=0 )     {
     84    if (nr>fPedRmsErr.GetSize()-1)
     85      fPedRmsErr.Set(nr+1);
     86    fPedRmsErr.AddAt(f,nr); }
    4487
    45   void SetBlindPixelIdx( const Int_t i)   { fBlindPixelIdx = i; }
    46 
    47     // Getter
    48   Int_t  GetExtractedSignal()    const { return fExtractedSignal; }
    49   Byte_t GetNumFADCSamples()     const { return fNumFADCSamples;  }
    50   Int_t  GetBlindPixelIdx()      const { return fBlindPixelIdx; } 
    51 
    52   Bool_t IsValid() const;   
    53 
    54   Float_t GetPed()       const { return fPed;       }
    55   Float_t GetPedErr()    const { return fPedErr;    }
    56   Float_t GetPedRms()    const { return fPedRms;    }
    57   Float_t GetPedRmsErr() const { return fPedRmsErr; }
    58 
    59   ClassDef(MExtractedSignalBlindPixel, 1)       // Storage Container for Extracted Signal of the blind pixel
     88  ClassDef(MExtractedSignalBlindPixel, 2)       // Storage Container for extracted signal of Blind Pixel
    6089};
    6190
Note: See TracChangeset for help on using the changeset viewer.