Changeset 1540 for trunk/MagicSoft/Mars/manalysis/MHillas.cc
- Timestamp:
- 10/15/02 17:02:46 (22 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/MagicSoft/Mars/manalysis/MHillas.cc
r1528 r1540 220 220 // In case you don't call Calc from within an eventloop make sure, that 221 221 // you call the Reset member function before. 222 // 223 Bool_t MHillas::Calc(const MGeomCam &geom, const MCerPhotEvt &evt) 222 // Returns: 223 // 0 no error 224 // 1 number of pixels < 3 225 // 2 size==0 226 // 3 number of used pixel < 3 227 // 4 CorrXY == 0 228 // 229 Int_t MHillas::Calc(const MGeomCam &geom, const MCerPhotEvt &evt) 224 230 { 225 231 const UInt_t npixevt = evt.GetNumPixels(); … … 228 234 // sanity check 229 235 // 230 if (npixevt < = 2)231 { 232 *fLog << warn << "MHillas::Calc: Event has less than twopixels... skipped." << endl;233 return kFALSE;236 if (npixevt < 3) 237 { 238 //*fLog << warn << "MHillas::Calc: Event has less than three pixels... skipped." << endl; 239 return 1; 234 240 } 235 241 … … 280 286 { 281 287 //*fLog << inf << GetDescriptor() << ": Event has zero cerenkov photons... skipped." << endl; 282 return kFALSE;288 return 2; 283 289 } 284 290 … … 286 292 { 287 293 //*fLog << inf << GetDescriptor() << ": Event has less than 3 used pixels... skipped." << endl; 288 return kFALSE;294 return 3; 289 295 } 290 296 … … 334 340 if (corrxy==0) 335 341 { 336 *fLog << inf << GetDescriptor() << ": Event has CorrXY==0... skipped." << endl;337 return kFALSE;342 //*fLog << inf << GetDescriptor() << ": Event has CorrXY==0... skipped." << endl; 343 return 4; 338 344 } 339 345 … … 375 381 SetReadyToSave(); 376 382 377 return kTRUE;383 return 0; 378 384 } 379 385
Note:
See TracChangeset
for help on using the changeset viewer.