Changeset 4744 for trunk/MagicSoft/Mars/mtemp
- Timestamp:
- 08/26/04 15:28:53 (20 years ago)
- Location:
- trunk/MagicSoft/Mars/mtemp
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/MagicSoft/Mars/mtemp/MTelAxisFromStars.cc
r4741 r4744 137 137 138 138 //----------------------------------------------------------------- 139 fSrcPos = (MSrcPosCam*)pList->FindCreateObj(AddSerialNumber("MSrcPosCam") );139 fSrcPos = (MSrcPosCam*)pList->FindCreateObj(AddSerialNumber("MSrcPosCam"), "MSrcPosCam"); 140 140 if (!fSrcPos) 141 141 { 142 142 *fLog << err << "MTelAxisFromStars::PreProcess; MSrcPosCam not found... aborting" << endl; 143 return kFALSE; 144 } 145 146 fPntPos = (MSrcPosCam*)pList->FindCreateObj(AddSerialNumber("MSrcPosCam"), "MPntPosCam"); 147 if (!fPntPos) 148 { 149 *fLog << err << "MTelAxisFromStars::PreProcess; MPntPosCam not found... aborting" << endl; 143 150 return kFALSE; 144 151 } … … 446 453 fNumStars, fNumIter, fNdof, fChi2, fChi2Prob); 447 454 fSkyCamTrans->SetReadyToSave(); 455 456 //-------------------------------------- 457 // Put the camera position (X, Y) 458 // obtained by transforming the camera center (0, 0) 459 // into MPntPosCam[MSrcPosCam] 460 461 fPntPos->SetXY(fD[0], fD[1]); 462 fPntPos->SetReadyToSave(); 448 463 449 464 … … 469 484 470 485 SetSourcePosition(fStarCamTrans, fPointPos, fSourcePos, fSrcPos); 471 //fSrcPos->SetXY(fD[0], fD[1]); 472 //fSrcPos->SetReadyToSave(); 486 473 487 *fLog << "after calling SetSourcePosition : , X, Y ,fD = " 474 488 << fSrcPos->GetX() << ", " << fSrcPos->GetY() << ", " -
trunk/MagicSoft/Mars/mtemp/MTelAxisFromStars.h
r4741 r4744 38 38 MPointingPos *fSourcePos; //! 39 39 MSrcPosCam *fSrcPos; //! 40 MSrcPosCam *fPntPos; //! 40 41 MSkyCamTrans *fSkyCamTrans; //! 41 42 MStarCamTrans *fStarCamTrans; //!
Note:
See TracChangeset
for help on using the changeset viewer.