Changeset 4796 for trunk


Ignore:
Timestamp:
08/30/04 06:30:45 (20 years ago)
Author:
wittek
Message:
*** empty log message ***
File:
1 edited

Legend:

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

    r4750 r4796  
    179179   }
    180180
     181   //-----------------------------------------------------------------
    181182    fStarCamTrans = new MStarCamTrans(*geom, *obs);
     183
     184   *fLog << all   << "MTelAxisFromStars::Preprocess; the optical aberration factor is set equal to : "
     185         << fAberr ;
     186
     187   *fLog << all   << "MTelAxisFromStars::Preprocess; input type is set equal to : "
     188         << fInputType ;
     189   if (fInputType == 0)
     190     *fLog << " (calculated star positions)" << endl;
     191   else
     192     *fLog << " (fitted star positions)" << endl;
     193
     194   *fLog << all << "MTelAxisFromStars::Preprocess; scale factor will be fixed at : "
     195         << fFixedScaleFactor << endl;
     196
     197   *fLog << all << "MTelAxisFromStars::Preprocess; rotation angle will be fixed at : "
     198         << fFixedRotationAngle << endl;
    182199
    183200    return kTRUE;
     
    196213void MTelAxisFromStars::SetOpticalAberr(Double_t aberr)
    197214{
    198   *fLog << all   << "MTelAxisFromStars::SetOpticalAberr; the optical aberration factor is set equal to : "
    199         << aberr ;
    200 
    201215  fAberr = aberr;
    202216}
     
    211225void MTelAxisFromStars::SetInputType(Int_t type)
    212226{
    213   *fLog << all   << "MTelAxisFromStars::SetInputType; input type is set equal to : "
    214         << type ;
    215   if (type == 0)
    216     *fLog << " (calculated star positions)" << endl;
    217   else
    218     *fLog << " (fitted star positions)" << endl;
    219 
    220227  fInputType = type;
    221228}
     
    228235void MTelAxisFromStars::FixScaleFactorAt(Double_t lambda)
    229236{
    230   *fLog << all << "MTelAxisFromStars::FixScaleFactorAt; scale factor will be fixed at : "
    231         << lambda << endl;
    232 
    233237  fFixedScaleFactor = lambda;
    234238}
     
    242246void MTelAxisFromStars::FixRotationAngleAt(Double_t alfa)
    243247{
    244   *fLog << all << "MTelAxisFromStars::FixRotationAngleAt; rotation angle will be fixed at : "
    245         << alfa << endl;
    246 
    247248  fFixedRotationAngle = alfa;    // [degrees]
    248249}
     
    405406  if (fNStars < 1)
    406407  {
    407     *fLog << "MTelAxisFromStars::Process; no star for MTelAxisFromStars"
    408           << endl;
     408    //*fLog << "MTelAxisFromStars::Process; no star for MTelAxisFromStars"
     409    //      << endl;
    409410    fitOK = kFALSE;
    410411  }
     
    417418  }
    418419
    419   if (!fitOK)
     420  if (!fitOK  &&  fNStars >= 1)
    420421  {
    421422    *fLog << err
     
    423424          << endl;
    424425   
    425     if (fNStars > 0)
    426     {
    427       *fLog << err
    428             << "    fNumIter, fNdof, fChi2, fChi2Prob = " << fNumIter
    429             << ",  " << fNdof << ",  " << fChi2 << ",  " << fChi2Prob << endl;
    430     }
     426    //if (fNStars > 0)
     427    //{
     428    //  *fLog << err
     429    //        << "    fNumIter, fNdof, fChi2, fChi2Prob = " << fNumIter
     430    //        << ",  " << fNdof << ",  " << fChi2 << ",  " << fChi2Prob << endl;
     431    //}
    431432
    432433    return kTRUE;
     
    472473  SetSourcePosition(fStarCamTrans, fPointPos, fSourcePos, fSrcPos);
    473474
    474   *fLog << "after calling SetSourcePosition : , X, Y ,fD = "
    475         << fSrcPos->GetX() << ",  " << fSrcPos->GetY() << ",  "
    476         << fD[0] << ",  " << fD[1] << endl;
     475  //*fLog << "after calling SetSourcePosition : , X, Y ,fD = "
     476  //      << fSrcPos->GetX() << ",  " << fSrcPos->GetY() << ",  "
     477  //      << fD[0] << ",  " << fD[1] << endl;
    477478
    478479  //--------------------------------------
     
    10851086  fChi2Prob = TMath::Prob(fChi2, fNdof);
    10861087
    1087   *fLog << "MTelAxisFromStars::FindSkyCamTrans :" << endl;
    1088   *fLog <<  "   fNumStars, fChi2, fNdof, fChi2Prob, fNumIter, fChangeofd2, dalfa, dlambda = "
    1089         << fNumStars << ",  " << fChi2 << ",  " << fNdof << ",  "
    1090         << fChi2Prob << ",  "
    1091         << fNumIter << ",  "  << fChangeofd2 << ",  " << dalfa << ",  "
    1092         << dlambda << endl;
    1093   *fLog << "    lambda, alfadeg, d[0], d[1] = " << lambda << ",  "
    1094         << alfadeg   << ",  " << d[0] << ",  " << d[1] << endl;
     1088  //*fLog << "MTelAxisFromStars::FindSkyCamTrans :" << endl;
     1089  //*fLog <<  "   fNumStars, fChi2, fNdof, fChi2Prob, fNumIter, fChangeofd2, dalfa, dlambda = "
     1090  //      << fNumStars << ",  " << fChi2 << ",  " << fNdof << ",  "
     1091  //      << fChi2Prob << ",  "
     1092  //      << fNumIter << ",  "  << fChangeofd2 << ",  " << dalfa << ",  "
     1093  //      << dlambda << endl;
     1094  //*fLog << "    lambda, alfadeg, d[0], d[1] = " << lambda << ",  "
     1095  //      << alfadeg   << ",  " << d[0] << ",  " << d[1] << endl;
    10951096
    10961097  return kTRUE;
     
    11751176  fpointpos->SetReadyToSave();
    11761177
    1177   *fLog << "SetPointingPosition : decdrive, hdrive, radrive Xpoint, Ypoint = "
    1178         << decdrive << ",  " << hdrive << ",  " << radrive << ",  "
    1179         << Xpoint << ",  " << Ypoint << endl;
    1180 
    1181   *fLog << "SetPointingPosition : thetadrive, phidrive, thetapoint, phipoint = "       
    1182         << thetadrive << ",  " << phidrive << ",  " << thetapoint << ",  "
    1183         << phipoint << endl;
     1178  //*fLog << "SetPointingPosition : decdrive, hdrive, radrive Xpoint, Ypoint = "
     1179  //      << decdrive << ",  " << hdrive << ",  " << radrive << ",  "
     1180  //      << Xpoint << ",  " << Ypoint << endl;
     1181
     1182  //*fLog << "SetPointingPosition : thetadrive, phidrive, thetapoint, phipoint = "       
     1183  //      << thetadrive << ",  " << phidrive << ",  " << thetapoint << ",  "
     1184  //      << phipoint << endl;
    11841185
    11851186  return kTRUE;
     
    12281229  fsourcepos->SetReadyToSave();
    12291230
    1230   *fLog << "SetSourcePosition : decpoint, hpoint, decsource, hsource, Xsource, Ysource = "
    1231         << decpoint << ",  " << hpoint << ",  " << decsource << ",  "
    1232         << hsource  << ",  " << Xsource << ",  " << Ysource << endl;
    1233   *fLog << "SetSourcePosition : thetapoint, phipoint, thetasource, phisource = "
    1234         << thetapoint << ",  " << phipoint << ",  " << thetasource << ",  "
    1235         << phisource << endl;
     1231  //*fLog << "SetSourcePosition : decpoint, hpoint, decsource, hsource, Xsource, Ysource = "
     1232  //      << decpoint << ",  " << hpoint << ",  " << decsource << ",  "
     1233  //      << hsource  << ",  " << Xsource << ",  " << Ysource << endl;
     1234  //*fLog << "SetSourcePosition : thetapoint, phipoint, thetasource, phisource = "
     1235  //      << thetapoint << ",  " << phipoint << ",  " << thetasource << ",  "
     1236  //      << phisource << endl;
    12361237
    12371238  return kTRUE;
Note: See TracChangeset for help on using the changeset viewer.