Changeset 4826 for trunk/MagicSoft/Mars/mhist
- Timestamp:
- 09/01/04 18:06:06 (20 years ago)
- Location:
- trunk/MagicSoft/Mars/mhist
- Files:
-
- 3 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/MagicSoft/Mars/mhist/MHAlpha.cc
r3779 r4826 138 138 const MHillasSrc *hil = dynamic_cast<const MHillasSrc*>(par); 139 139 if (!par) 140 { 141 *fLog << err << dbginf << "MHillasSrc not found... abort." << endl; 140 142 return kFALSE; 143 } 141 144 142 145 alpha = hil->GetAlpha(); -
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; -
trunk/MagicSoft/Mars/mhist/MHFalseSource.h
r3682 r4826 14 14 class MParList; 15 15 class MTime; 16 class MSrcPosCam; 16 17 class MPointingPos; 17 18 class MObservatory; … … 22 23 MTime *fTime; //! container to take the event time from 23 24 MPointingPos *fPointPos; //! container to take pointing position from 25 MSrcPosCam *fSrcPos; //! container for sopurce position in camera 24 26 MObservatory *fObservatory; //! conteiner to take observatory location from 25 27
Note:
See TracChangeset
for help on using the changeset viewer.