Changeset 4826 for trunk/MagicSoft/Mars/mhist/MHFalseSource.cc
- Timestamp:
- 09/01/04 18:06:06 (20 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/MagicSoft/Mars/mhist/MHFalseSource.cc
r4704 r4826 276 276 *fLog << warn << "MTime not found... no derotation." << endl; 277 277 278 fSrcPos = (MSrcPosCam*)plist->FindObject(AddSerialNumber("MSrcPosCam")); 279 if (!fSrcPos) 280 *fLog << warn << "MSrcPosCam not found... no translation." << endl; 281 278 282 fObservatory = (MObservatory*)plist->FindObject(AddSerialNumber("MObservatory")); 279 283 if (!fObservatory) … … 341 345 // convert degrees to millimeters 342 346 v *= 1./fMm2Deg; 347 348 if (fSrcPos) 349 v += fSrcPos->GetXY(); 350 343 351 src.SetXY(v); 344 352 345 353 // Source dependant hillas parameters 346 if ( !hsrc.Calc(*hil))354 if (hsrc.Calc(*hil)>0) 347 355 { 348 356 *fLog << warn << "Calculation of MHillasSrc failed for x=" << cx[ix] << " y=" << cy[iy] << endl; … … 498 506 if ((h5 = (TH2D*)gPad->FindObject("Alpha_yx_diff"))) 499 507 { 500 h5->Add(h 3, h2, -1);508 h5->Add(h2, h3, -1); 501 509 MakeSymmetric(h5); 502 510 } … … 575 583 *fLog << err << "FIXME - The catalog will never be deleted, because this crashes!" << endl; 576 584 577 stars->SetBit(kCanDelete);585 // stars->SetBit(kCanDelete); 578 586 579 587 return stars;
Note:
See TracChangeset
for help on using the changeset viewer.