Changeset 3276 for trunk/MagicSoft
- Timestamp:
- 02/24/04 16:07:43 (21 years ago)
- Location:
- trunk/MagicSoft/Mars/mcalib
- Files:
-
- 3 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/MagicSoft/Mars/mcalib/MExtractBlindPixel.cc
r3270 r3276 49 49 using namespace std; 50 50 51 const UInt_tMExtractBlindPixel::fgBlindPixelIdx = 559;51 const Int_t MExtractBlindPixel::fgBlindPixelIdx = 559; 52 52 const Byte_t MExtractBlindPixel::fgSaturationLimit = 254; 53 53 const Byte_t MExtractBlindPixel::fgFirst = 3; … … 113 113 114 114 fBlindPixel->SetUsedFADCSlices(fFirst, fLast); 115 fBlindPixel->SetBlindPixelIdx(fBlindPixelIdx); 115 116 116 117 return kTRUE; … … 131 132 pixel.Jump(fBlindPixelIdx); 132 133 133 UInt_t sat = 0;134 const UInt_t nhigain = pixel.GetNumHiGainSamples(); 134 135 135 136 Byte_t *ptr = pixel.GetHiGainSamples(); … … 141 142 UInt_t first = fFirst; 142 143 UInt_t last = fLast; 143 144 if (last > 15) 144 UInt_t sat = 0; 145 146 if (last > nhigain) 145 147 { 146 diff = last - 15;147 last = 15;148 diff = last - nhigain; 149 last = nhigain; 148 150 } 149 151 … … 186 188 *fLog << warn << "WARNING - saturation occurred in the Blind Pixel " << endl; 187 189 190 188 191 fBlindPixel->SetReadyToSave(); 189 192 -
trunk/MagicSoft/Mars/mcalib/MExtractBlindPixel.h
r3270 r3276 24 24 private: 25 25 26 static const UInt_tfgBlindPixelIdx;26 static const Int_t fgBlindPixelIdx; 27 27 static const Byte_t fgSaturationLimit; 28 28 static const Byte_t fgFirst; … … 41 41 Byte_t fSaturationLimit; 42 42 43 UInt_t fBlindPixelIdx;43 Int_t fBlindPixelIdx; 44 44 Int_t PreProcess(MParList *pList); 45 45 Int_t Process(); … … 54 54 void SetRange(const Byte_t first=fgFirst, const Byte_t last=fgLast); 55 55 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; } 57 57 58 58 ClassDef(MExtractBlindPixel, 0) // Task to fill the Extracted BlindPixel Containers from raw data -
trunk/MagicSoft/Mars/mcalib/MExtractedSignalBlindPixel.h
r3269 r3276 5 5 #include "MParContainer.h" 6 6 #endif 7 8 #include <TArrayI.h> 7 9 8 10 class MExtractedSignalBlindPixel : public MParContainer … … 21 23 Float_t fPedRmsErr; 22 24 25 Int_t fBlindPixelIdx; 26 23 27 public: 24 28 … … 29 33 30 34 // 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; } 33 37 void SetUsedFADCSlices( const Byte_t first, const Byte_t num); 34 38 void SetNumFADCSamples( const Byte_t num ) { fNumFADCSamples = num; } 39 35 40 void SetPed( const Float_t f ) { fPed = f; } 36 41 void SetPedErr( const Float_t f ) { fPedErr = f; } … … 38 43 void SetPedRmsErr(const Float_t f ) { fPedRmsErr = f; } 39 44 45 void SetBlindPixelIdx( const Int_t i) { fBlindPixelIdx = i; } 46 40 47 // Getter 41 48 UInt_t GetExtractedSignal() const { return fExtractedSignal; } 42 43 49 Byte_t GetNumFADCSamples() const { return fNumFADCSamples; } 44 50
Note:
See TracChangeset
for help on using the changeset viewer.