Changeset 18286 for trunk/Mars/mimage
- Timestamp:
- 08/22/15 00:26:37 (9 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/Mars/mimage/MImgCleanTime.cc
r17860 r18286 99 99 const Float_t time1 = pix1.GetArrivalTime(); 100 100 101 if (pix1.IsPixelUnmapped()) 102 return Island(0,time1); 103 101 104 Island island(pix1.GetNumPhotons(), time1); 102 105 … … 106 109 107 110 MSignalPix &pix2 = (*fEvt)[idx2]; 111 if (pix2.IsPixelUnmapped()) 112 continue; 108 113 109 114 const Int_t island2 = pix2.GetIdxIsland(); … … 137 142 Int_t MImgCleanTime::Process() 138 143 { 139 // The assumption is that all pixels contain valid data144 // The assumption is that all mapped pixels contain valid data 140 145 const UInt_t npix = fEvt->GetNumPixels(); 141 146 for (UInt_t i=0; i<npix; i++) 142 147 { 143 148 MSignalPix &pix = (*fEvt)[i]; 144 pix.SetPixelUnused(); 149 if (!pix.IsPixelUnmapped()) 150 pix.SetPixelUnused(); 145 151 pix.SetPixelCore(kFALSE); 146 152 pix.SetIdxIsland(-1); … … 182 188 // The ideal cut would be to allow that a single 183 189 // pixel still can connect two clusters 184 if (I1.count==1 || I 1.count==1)190 if (I1.count==1 || I2.count==1) 185 191 continue; 186 192
Note:
See TracChangeset
for help on using the changeset viewer.