Changeset 4527 for trunk/MagicSoft/Mars/mbadpixels/MBadPixelsCalc.cc
- Timestamp:
- 08/06/04 16:26:18 (20 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/MagicSoft/Mars/mbadpixels/MBadPixelsCalc.cc
r3476 r4527 35 35 // 36 36 // Check the pedestal RMS of every pixel with respect to the mean 37 // pedestal RMS of the camera (Sigmabar).37 // pedestal RMS of the camera. 38 38 // 39 39 // The pixels can be set as blind if the pedestalRMS is too big or 0. … … 48 48 // [MPedPhotCam] 49 49 // [MGeomCam] 50 // [MSigmabar]51 50 // 52 51 // Output Containers: … … 66 65 #include "MGeomPix.h" 67 66 68 #include "MSigmabar.h"67 //#include "MSigmabar.h" 69 68 70 69 #include "MPedPhotCam.h" … … 117 116 } 118 117 119 fSigmabar = (MSigmabar*)pList->FindObject(AddSerialNumber("MSigmabar"));118 /* fSigmabar = (MSigmabar*)pList->FindObject(AddSerialNumber("MSigmabar")); 120 119 if (!fSigmabar) 121 120 { … … 123 122 return kFALSE; 124 123 } 124 */ 125 125 } 126 126 return kTRUE; … … 138 138 // MBadPixelsCalc calc; 139 139 // calc.SetPedestalLevel(-1); 140 / /140 /* 141 141 void MBadPixelsCalc::CheckPedestalRMS() const 142 142 { … … 157 157 } 158 158 } 159 159 */ 160 160 // -------------------------------------------------------------------------- 161 161 // Check the pedestal Rms of the pixels: compute with 2 iterations the mean … … 233 233 const Byte_t aidx = (*fGeomCam)[i].GetAidx(); 234 234 235 if (rms>meanrms2[aidx]/ 3 && rms<=meanrms2[aidx]*3)235 if (rms>meanrms2[aidx]/fPedestalLevel && rms<=meanrms2[aidx]*fPedestalLevel) 236 236 continue; 237 237 … … 242 242 // Check if the number of pixels to blind is > 60% of total number of pixels 243 243 // 244 if (bads>0.6*entries)245 {246 //fErrors[2]++;247 return kFALSE;248 }244 // if (bads>0.6*entries) 245 // { 246 // fErrors[2]++; 247 // return kFALSE; 248 // } 249 249 250 250 return kTRUE; … … 262 262 return kTRUE; 263 263 } 264 265
Note:
See TracChangeset
for help on using the changeset viewer.