Ignore:
Timestamp:
08/26/04 15:28:53 (20 years ago)
Author:
wittek
Message:
*** empty log message ***
Location:
trunk/MagicSoft/Mars/mtemp
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • trunk/MagicSoft/Mars/mtemp/MTelAxisFromStars.cc

    r4741 r4744  
    137137
    138138   //-----------------------------------------------------------------
    139     fSrcPos = (MSrcPosCam*)pList->FindCreateObj(AddSerialNumber("MSrcPosCam"));
     139    fSrcPos = (MSrcPosCam*)pList->FindCreateObj(AddSerialNumber("MSrcPosCam"), "MSrcPosCam");
    140140    if (!fSrcPos)
    141141    {
    142142        *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;
    143150        return kFALSE;
    144151    }
     
    446453                              fNumStars, fNumIter, fNdof, fChi2, fChi2Prob);
    447454  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();       
    448463
    449464
     
    469484
    470485  SetSourcePosition(fStarCamTrans, fPointPos, fSourcePos, fSrcPos);
    471   //fSrcPos->SetXY(fD[0], fD[1]);
    472   //fSrcPos->SetReadyToSave();       
     486
    473487  *fLog << "after calling SetSourcePosition : , X, Y ,fD = "
    474488        << fSrcPos->GetX() << ",  " << fSrcPos->GetY() << ",  "
  • trunk/MagicSoft/Mars/mtemp/MTelAxisFromStars.h

    r4741 r4744  
    3838    MPointingPos        *fSourcePos;      //!
    3939    MSrcPosCam          *fSrcPos;         //!
     40    MSrcPosCam          *fPntPos;         //!
    4041    MSkyCamTrans        *fSkyCamTrans;    //!
    4142    MStarCamTrans       *fStarCamTrans;   //!
Note: See TracChangeset for help on using the changeset viewer.