Changeset 3276 for trunk/MagicSoft


Ignore:
Timestamp:
02/24/04 16:07:43 (21 years ago)
Author:
gaug
Message:
*** empty log message ***
Location:
trunk/MagicSoft/Mars/mcalib
Files:
3 edited

Legend:

Unmodified
Added
Removed
  • trunk/MagicSoft/Mars/mcalib/MExtractBlindPixel.cc

    r3270 r3276  
    4949using namespace std;
    5050
    51 const UInt_t MExtractBlindPixel::fgBlindPixelIdx   = 559;
     51const Int_t MExtractBlindPixel::fgBlindPixelIdx   = 559;
    5252const Byte_t MExtractBlindPixel::fgSaturationLimit = 254;
    5353const Byte_t MExtractBlindPixel::fgFirst =  3;
     
    113113
    114114    fBlindPixel->SetUsedFADCSlices(fFirst, fLast);
     115    fBlindPixel->SetBlindPixelIdx(fBlindPixelIdx);
    115116
    116117    return kTRUE;
     
    131132    pixel.Jump(fBlindPixelIdx);
    132133 
    133     UInt_t sat  = 0;
     134    const UInt_t nhigain = pixel.GetNumHiGainSamples();
    134135
    135136    Byte_t *ptr = pixel.GetHiGainSamples();
     
    141142    UInt_t first = fFirst;
    142143    UInt_t last  = fLast;
    143 
    144     if (last > 15)
     144    UInt_t sat  = 0;
     145
     146    if (last > nhigain)
    145147      {
    146         diff = last - 15;
    147         last = 15;
     148        diff = last - nhigain;
     149        last = nhigain;
    148150      }
    149151   
     
    186188      *fLog << warn << "WARNING - saturation occurred in the Blind Pixel " << endl;
    187189
     190
    188191    fBlindPixel->SetReadyToSave();
    189192
  • trunk/MagicSoft/Mars/mcalib/MExtractBlindPixel.h

    r3270 r3276  
    2424private:
    2525
    26   static const UInt_t fgBlindPixelIdx; 
     26  static const Int_t fgBlindPixelIdx; 
    2727  static const Byte_t fgSaturationLimit;
    2828  static const Byte_t fgFirst;
     
    4141  Byte_t  fSaturationLimit;
    4242
    43   UInt_t  fBlindPixelIdx;
     43  Int_t  fBlindPixelIdx;
    4444  Int_t  PreProcess(MParList *pList);
    4545  Int_t  Process();
     
    5454  void SetRange(const Byte_t first=fgFirst, const Byte_t last=fgLast);
    5555  void SetSaturationLimit(const Byte_t lim=fgSaturationLimit) { fSaturationLimit = lim; }
    56   void SetBlindPixelIdx(  const UInt_t idx=fgBlindPixelIdx  ) { fBlindPixelIdx   = idx; } 
     56  void SetBlindPixelIdx(  const  Int_t idx=fgBlindPixelIdx  ) { fBlindPixelIdx   = idx; } 
    5757
    5858  ClassDef(MExtractBlindPixel, 0) // Task to fill the Extracted BlindPixel Containers from raw data
  • trunk/MagicSoft/Mars/mcalib/MExtractedSignalBlindPixel.h

    r3269 r3276  
    55#include "MParContainer.h"
    66#endif
     7
     8#include <TArrayI.h>
    79
    810class MExtractedSignalBlindPixel : public MParContainer
     
    2123  Float_t fPedRmsErr;
    2224
     25  Int_t fBlindPixelIdx;
     26
    2327public:
    2428
     
    2933 
    3034  // Setter
    31   void SetExtractedSignal(const UInt_t sig)          { fExtractedSignal = sig;  }
    32   void SetNumSaturated(   const Byte_t numsat)       { fNumSaturated    = numsat;  }
     35  void SetExtractedSignal(const UInt_t sig    )    { fExtractedSignal = sig;     }
     36  void SetNumSaturated(   const Byte_t numsat )    { fNumSaturated    = numsat;  }
    3337  void SetUsedFADCSlices( const Byte_t first, const Byte_t num);
    34    
     38  void SetNumFADCSamples( const Byte_t num    )    { fNumFADCSamples  = num;     }   
     39
    3540  void SetPed(      const Float_t f )     { fPed       = f; }
    3641  void SetPedErr(   const Float_t f )     { fPedErr    = f; }
     
    3843  void SetPedRmsErr(const Float_t f )     { fPedRmsErr = f; }
    3944
     45  void SetBlindPixelIdx( const Int_t i)   { fBlindPixelIdx = i; }
     46
    4047    // Getter
    4148  UInt_t GetExtractedSignal()    const { return fExtractedSignal; }
    42 
    4349  Byte_t GetNumFADCSamples()     const { return fNumFADCSamples;  }
    4450 
Note: See TracChangeset for help on using the changeset viewer.