Changeset 7117 for trunk/MagicSoft
- Timestamp:
- 05/31/05 17:49:08 (19 years ago)
- Location:
- trunk/MagicSoft/Mars
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/MagicSoft/Mars/Changelog
r7116 r7117 63 63 * merpp.cc: 64 64 - new options: --auto-time-start --auto-time-stop 65 66 * mbadpixels/MBadPixelsTreat.cc: 67 - removed the checks in the algorithm whether the current pixel 68 is NULL. MSignalCam doesn't support zero supression anymore. 69 GetPixById has been replaced by the []-operator 65 70 66 71 -
trunk/MagicSoft/Mars/mbadpixels/MBadPixelsTreat.cc
r6948 r7117 228 228 for (UShort_t i=0; i<entries; i++) 229 229 { 230 MSignalPix *pix = fEvt->GetPixById(i);231 232 230 // 233 231 // Check whether pixel with idx i is blind 234 232 // 235 if ( pix &&!IsPixelBad(i))233 if (!IsPixelBad(i)) 236 234 continue; 237 235 238 236 // 239 // Get a pointer to this pixel. If it is not yet existing240 // create a new entry for this pixel in MSignalCam241 //242 if (!pix)243 {244 pix = fEvt->AddPixel(i, 0, 0);245 (*fBadPixels)[i].SetUnsuitable(MBadPixelsPix::kUnsuitableEvt);246 }247 248 //249 237 // Get the corresponding geometry and pedestal 250 238 // 239 MSignalPix &pix = (*fEvt)[i]; 251 240 const MGeomPix &gpix = (*fGeomCam)[i]; 252 241 … … 256 245 Int_t num = nucp ? 0 : 1; 257 246 258 nphot[i] = nucp ? 0 : pix ->GetNumPhotons();259 perr[i] = nucp ? 0 : Pow2(pix ->GetErrorPhot());247 nphot[i] = nucp ? 0 : pix.GetNumPhotons(); 248 perr[i] = nucp ? 0 : Pow2(pix.GetErrorPhot()); 260 249 261 250 // … … 282 271 283 272 // 284 // Check whether the neighbor has a signal stored285 //286 const MSignalPix *evtpix = fEvt->GetPixById(nidx);287 if (!evtpix)288 continue;289 290 //291 273 // Get the geometry for the neighbor 292 274 // … … 296 278 //The error is calculated as the quadratic sum of the errors 297 279 // 298 nphot[i] += nratio*evtpix->GetNumPhotons(); 299 perr[i] += nratio* Pow2(evtpix->GetErrorPhot()); 280 const MSignalPix &evtpix = (*fEvt)[nidx]; 281 282 nphot[i] += nratio*evtpix.GetNumPhotons(); 283 perr[i] += nratio*Pow2(evtpix.GetErrorPhot()); 300 284 301 285 num++; … … 307 291 if (num<fNumMinNeighbors) 308 292 { 309 pix ->SetPixelUnmapped();293 pix.SetPixelUnmapped(); 310 294 continue; 311 295 } … … 318 302 perr[i] = TMath::Sqrt(perr[i]/(num*ratio)); 319 303 320 pix ->Set(nphot[i], perr[i]);304 pix.Set(nphot[i], perr[i]); 321 305 } 322 306 }
Note:
See TracChangeset
for help on using the changeset viewer.