Changeset 4669 for trunk/MagicSoft/Mars/msignal
- Timestamp:
- 08/17/04 23:31:30 (20 years ago)
- Location:
- trunk/MagicSoft/Mars/msignal
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/MagicSoft/Mars/msignal/MExtractBlindPixel.cc
r4606 r4669 70 70 using namespace std; 71 71 72 const Int_t MExtractBlindPixel::fgNumBlindPixels = 2;73 const UInt_t MExtractBlindPixel::fgBlindPixelIds[3] = { 559, 560, 561 };74 72 const UInt_t MExtractBlindPixel::fgBlindPixelIdx = 559; 75 73 const Byte_t MExtractBlindPixel::fgHiGainFirst = 10; … … 140 138 // 141 139 // Initializes: 142 // - fModified to kFALSE143 140 // - fBlindPixelIdx to 0 144 141 // - fExtractionType to 0 … … 155 152 { 156 153 157 fModified = kFALSE;158 154 fExtractionType = 0; 159 155 … … 244 240 delete [] fHiGainSecondDeriv; 245 241 246 if (fModified) 247 { 248 for (Int_t i=0;i<fNumBlindPixels;i++) 249 { 250 SetBlindPixelIdx(fgBlindPixelIds[i],i); 251 fBlindPixel->SetBlindPixelIdx(fgBlindPixelIds[i],i); 252 } 253 } 254 else 255 fBlindPixel->SetBlindPixelIdx(fBlindPixelIdx.At(0)); 242 for (Int_t i=0;i<fNumBlindPixels;i++) 243 fBlindPixel->SetBlindPixelIdx(fBlindPixelIdx.At(i),i); 256 244 257 245 fBlindPixel->SetExtractionType(fExtractionType); -
trunk/MagicSoft/Mars/msignal/MExtractBlindPixel.h
r4605 r4669 15 15 private: 16 16 17 static const Int_t fgNumBlindPixels; //! Default number of blind pixels after modification run18 static const UInt_t fgBlindPixelIds[3]; //! Default blind pixel indices after modification run19 17 static const UInt_t fgBlindPixelIdx; //! Default blind pixels index before modification run 20 18 static const Byte_t fgHiGainFirst; //! Default First FADC slice Hi-Gain Signal (currently set to: 10 ) … … 38 36 Int_t fNSBFilterLimit; // Limit of sum of FADC slices for filter part 39 37 40 Bool_t fModified; // Is the run taken after the modifications?41 38 Byte_t fExtractionType; // What extraction type has been chosen? 42 43 39 Int_t fNumBlindPixels; // Current number of blind pixels 44 40 … … 73 69 void SetExtractionType( const ExtractionType_t typ=kAmplitude ); 74 70 void SetNSBFilterLimit( const Int_t lim=fgNSBFilterLimit ) { fNSBFilterLimit = lim; } 75 void SetModified ( const Bool_t b=kTRUE) { fModified = b; }76 71 77 void SetNumBlindPixels( const Int_t num= fgNumBlindPixels) { fNumBlindPixels = num; }72 void SetNumBlindPixels( const Int_t num=1 ) { fNumBlindPixels = num; } 78 73 79 74 void SetRange ( const Byte_t hifirst=0, const Byte_t hilast=0,
Note:
See TracChangeset
for help on using the changeset viewer.