- Timestamp:
- 06/15/04 10:10:09 (20 years ago)
- Location:
- trunk/MagicSoft/Mars/mtemp/mifae
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/MagicSoft/Mars/mtemp/mifae/Changelog
r4287 r4293 25 25 islands 26 26 27 * library/MIslands.[h,cc],MIslandCalc. cc27 * library/MIslands.[h,cc],MIslandCalc.[h,cc], MIslandCleaning.[h,cc] 28 28 - add a new island cleaning which consists in removing all the 29 29 islands except the larger one -
trunk/MagicSoft/Mars/mtemp/mifae/library/MIslandClean.cc
r3976 r4293 26 26 // islands are supposed to be eliminated. 27 27 // 28 // Other cleanings that are allowed in this code are: 29 // 30 // - Resting only with the continent, i.e. the larger island 28 31 // 29 32 // Example: … … 164 167 165 168 // 166 //eliminates the island with a signal-to-noise167 // lower than a given limit169 //eliminates the island with a time spread 170 //higher than a given limit 168 171 // 169 172 //else if( fIslandCleaningMethod == kTiming ){ … … 188 191 } 189 192 } 193 194 // 195 //eliminates all the islands except the continent, 196 //i.e. the larger island in the event 197 // 198 else if( fIslandCleaningMethod == 3 ){ 199 Int_t nisl = fIsl->GetIslNum(); 200 201 Int_t max = -1000; 202 Int_t idMax; 203 204 for(Int_t isl = 0; isl<nisl ; isl++) 205 { 206 if (fIsl->GetPixNum(isl)>max) 207 { 208 max = fIsl->GetPixNum(isl); 209 idMax = isl; 210 } 211 } 212 213 for(Int_t isl = 0; isl<nisl ; isl++) 214 { 215 if (isl != idMax) 216 { 217 for(Int_t idx = 0;idx<577; idx++) 218 { 219 MCerPhotPix &pix = (*fEvt)[idx]; 220 221 if (fIsl->GetIslId(idx) == isl) 222 pix.SetPixelUnused(); 223 } 224 } 225 } 226 } 190 227 191 228 fEvt->SetReadyToSave();
Note:
See TracChangeset
for help on using the changeset viewer.