Changeset 2465 for trunk/MagicSoft/Mars/mimage
- Timestamp:
- 11/04/03 11:38:48 (21 years ago)
- Location:
- trunk/MagicSoft/Mars/mimage
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/MagicSoft/Mars/mimage/MImgCleanStd.cc
r2445 r2465 343 343 // fact that pixels have different size (see TDAS 02-14). 344 344 // 345 const Double_t factor = TMath::Sqrt(fCam->GetPixRatio(idx));345 const Double_t factor = fCam->GetPixRatioSqrt(idx); 346 346 347 347 // COBB: '<=' to skip entry=noise=0 … … 509 509 // fact that pixels have different size (see TDAS 02-14). 510 510 // 511 const Double_t factor = TMath::Sqrt(fCam->GetPixRatio(idx));511 const Double_t factor = fCam->GetPixRatioSqrt(idx); 512 512 513 513 return (entry * factor <= fCleanLvl2 * noise); -
trunk/MagicSoft/Mars/mimage/MImgCleanTGB.cc
r2422 r2465 253 253 MCerPhotPix &pix = (*fEvt)[i]; 254 254 255 const Double_t entry = pix.GetNumPhotons(); 256 const Double_t factor = fCam->GetPixRatio(pix.GetPixId()); 257 const Float_t noise = (*fPed)[pix.GetPixId()].GetPedestalRms(); 258 259 if (entry * TMath::Sqrt(factor) <= fCleanLvl2 * noise) 255 const Int_t idx = pix.GetPixId(); 256 const Double_t entry = pix.GetNumPhotons(); 257 const Double_t factor = fCam->GetPixRatio(idx); 258 const Double_t factorsqrt = fCam->GetPixRatioSqrt(idx); 259 const Float_t noise = (*fPed)[idx].GetPedestalRms(); 260 261 if (entry * factorsqrt <= fCleanLvl2 * noise) 260 262 { 261 263 sum += entry*factor;
Note:
See TracChangeset
for help on using the changeset viewer.