Changeset 7035 for trunk/MagicSoft/Mars/mbadpixels
- Timestamp:
- 05/13/05 21:25:26 (20 years ago)
- Location:
- trunk/MagicSoft/Mars/mbadpixels
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/MagicSoft/Mars/mbadpixels/MBadPixelsCalc.cc
r7033 r7035 176 176 for (Int_t i=0; i<entries; i++) 177 177 { 178 if ((*fBadPixels)[i].IsUnsuitable()) 179 continue; 180 178 181 const Double_t rms = (*fPedPhotCam)[i].GetRms(); 179 182 … … 204 207 for (Int_t i=0; i<entries; i++) 205 208 { 209 if ((*fBadPixels)[i].IsUnsuitable()) 210 continue; 211 206 212 const Double_t rms = (*fPedPhotCam)[i].GetRms(); 207 213 const Byte_t aidx = (*fGeomCam)[i].GetAidx(); 208 214 209 215 //Calculate the corrected means: 210 if (rms<= 0.5*meanrms[aidx] || rms>=1.5*meanrms[aidx])216 if (rms<=meanrms[aidx]/1.5 || rms>=meanrms[aidx]*1.5) 211 217 continue; 212 218 … … 250 256 for (Int_t i=0; i<entries; i++) 251 257 { 258 if ((*fBadPixels)[i].IsUnsuitable()) 259 continue; 260 252 261 const Double_t rms = (*fPedPhotCam)[i].GetRms(); 253 262 const Byte_t aidx = (*fGeomCam)[i].GetAidx(); -
trunk/MagicSoft/Mars/mbadpixels/MBadPixelsCam.cc
r7012 r7035 614 614 // 23: MBadPixelsPix::IsUncalibrated(MBadPixelsPix::kHiGainOverFlow ) 615 615 // 24: MBadPixelsPix::IsUncalibrated(MBadPixelsPix::kLoGainOverFlow ) 616 // 102: MBadPixelsPix::IsUnsuitable() 616 617 // 617 618 Bool_t MBadPixelsCam::GetPixelContent(Double_t &val, Int_t idx, const MGeomCam &cam, Int_t type) const … … 747 748 val = 1; 748 749 break; 750 case 102: 751 if (!(*this)[idx].IsUnsuitable()) 752 return kFALSE; 753 val = 1; 754 break; 749 755 default: 750 756 return kFALSE;
Note:
See TracChangeset
for help on using the changeset viewer.