Changeset 4818 for trunk/MagicSoft/Mars
- Timestamp:
- 08/31/04 13:05:43 (20 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/MagicSoft/Mars/mimage/MHillasCalc.cc
r4711 r4818 174 174 fNameConc(gsNameConc), fNameImagePar(gsNameImagePar), 175 175 fNameNewImagePar(gsNameNewImagePar), 176 fErrors( 5), fFlags(0xff), fIdxIsland(-1)176 fErrors(6), fFlags(0xff), fIdxIsland(-1) 177 177 { 178 178 fName = name ? name : gsDefName.Data(); … … 275 275 } 276 276 277 memset(fErrors.GetArray(), 0, sizeof(Char_t)*fErrors.GetSize());277 fErrors.Reset(); 278 278 279 279 Print(); … … 293 293 if (TestFlag(kCalcHillas)) 294 294 { 295 Int_t rc = fHillas->Calc(*fGeomCam, *fCerPhotEvt, fIdxIsland);295 const Int_t rc = fHillas->Calc(*fGeomCam, *fCerPhotEvt, fIdxIsland); 296 296 if (rc<0 || rc>4) 297 297 { … … 299 299 return kFALSE; 300 300 } 301 fErrors[rc]++;302 301 if (rc>0) 302 { 303 fErrors[rc]++; 303 304 return kCONTINUE; 305 } 304 306 } 305 307 306 308 if (TestFlag(kCalcHillasSrc)) 307 309 { 308 if (!fHillasSrc->Calc(*fHillas)) 309 { 310 fErrors[5]++; 310 const Int_t rc = fHillasSrc->Calc(*fHillas); 311 if (rc<0 || rc>2) 312 { 313 *fLog << err << dbginf << "MHillasSrc::Calc returned unknown error code!" << endl; 314 return kFALSE; 315 } 316 if (rc>0) 317 { 318 fErrors[rc]++; 311 319 return kCONTINUE; 312 320 } 313 321 } 322 fErrors[0]++; 314 323 315 324 if (TestFlag(kCalcHillasExt)) … … 364 373 } 365 374 if (TestBit(kCalcHillasSrc)) 375 { 366 376 PrintSkipped(5, "Dist==0"); 377 PrintSkipped(6, "Arg2==0"); 378 } 367 379 *fLog << " " << (int)fErrors[0] << " (" << (int)(100.*fErrors[0]/GetNumExecutions()) << "%) Evts survived Hillas calculation!" << endl; 368 380 *fLog << endl;
Note:
See TracChangeset
for help on using the changeset viewer.