- Timestamp:
- 08/30/04 06:30:45 (20 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/MagicSoft/Mars/mtemp/MTelAxisFromStars.cc
r4750 r4796 179 179 } 180 180 181 //----------------------------------------------------------------- 181 182 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; 182 199 183 200 return kTRUE; … … 196 213 void MTelAxisFromStars::SetOpticalAberr(Double_t aberr) 197 214 { 198 *fLog << all << "MTelAxisFromStars::SetOpticalAberr; the optical aberration factor is set equal to : "199 << aberr ;200 201 215 fAberr = aberr; 202 216 } … … 211 225 void MTelAxisFromStars::SetInputType(Int_t type) 212 226 { 213 *fLog << all << "MTelAxisFromStars::SetInputType; input type is set equal to : "214 << type ;215 if (type == 0)216 *fLog << " (calculated star positions)" << endl;217 else218 *fLog << " (fitted star positions)" << endl;219 220 227 fInputType = type; 221 228 } … … 228 235 void MTelAxisFromStars::FixScaleFactorAt(Double_t lambda) 229 236 { 230 *fLog << all << "MTelAxisFromStars::FixScaleFactorAt; scale factor will be fixed at : "231 << lambda << endl;232 233 237 fFixedScaleFactor = lambda; 234 238 } … … 242 246 void MTelAxisFromStars::FixRotationAngleAt(Double_t alfa) 243 247 { 244 *fLog << all << "MTelAxisFromStars::FixRotationAngleAt; rotation angle will be fixed at : "245 << alfa << endl;246 247 248 fFixedRotationAngle = alfa; // [degrees] 248 249 } … … 405 406 if (fNStars < 1) 406 407 { 407 *fLog << "MTelAxisFromStars::Process; no star for MTelAxisFromStars"408 << endl;408 //*fLog << "MTelAxisFromStars::Process; no star for MTelAxisFromStars" 409 // << endl; 409 410 fitOK = kFALSE; 410 411 } … … 417 418 } 418 419 419 if (!fitOK )420 if (!fitOK && fNStars >= 1) 420 421 { 421 422 *fLog << err … … 423 424 << endl; 424 425 425 if (fNStars > 0)426 {427 *fLog << err428 << " fNumIter, fNdof, fChi2, fChi2Prob = " << fNumIter429 << ", " << 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 //} 431 432 432 433 return kTRUE; … … 472 473 SetSourcePosition(fStarCamTrans, fPointPos, fSourcePos, fSrcPos); 473 474 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; 477 478 478 479 //-------------------------------------- … … 1085 1086 fChi2Prob = TMath::Prob(fChi2, fNdof); 1086 1087 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; 1095 1096 1096 1097 return kTRUE; … … 1175 1176 fpointpos->SetReadyToSave(); 1176 1177 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; 1184 1185 1185 1186 return kTRUE; … … 1228 1229 fsourcepos->SetReadyToSave(); 1229 1230 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; 1236 1237 1237 1238 return kTRUE;
Note:
See TracChangeset
for help on using the changeset viewer.