- Timestamp:
- 08/30/04 07:41:22 (20 years ago)
- Location:
- trunk/MagicSoft/Mars/mtemp
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/MagicSoft/Mars/mtemp/MHTelAxisFromStars.cc
r4720 r4798 446 446 447 447 while( (starSource = (MStarPos*)nextSource()) ) 448 //if (starSource)449 448 { 450 449 if (fInputType == 1) … … 459 458 } 460 459 461 460 if (x>lowx && x<higx && y>lowy && y<higy) 462 461 { 463 462 if ( fNstarnames > 0 && starSource->GetName() == fStarnames[0] ) … … 469 468 else if( fNstarnames > 2 && starSource->GetName() == fStarnames[2] ) 470 469 fEstPos3->Fill(x, y, w); 471 } 472 473 /* 474 starSource = (MStarPos*)nextSource(); 475 if (starSource) 476 { 477 if (fInputType == 1) 478 { 479 x = scale * starSource->GetMeanXFit(); 480 y = scale * starSource->GetMeanYFit(); 481 } 482 else 483 { 484 x = scale * starSource->GetMeanXCalc(); 485 y = scale * starSource->GetMeanYCalc(); 486 } 487 488 if (x>lowx && x<higx && y>lowy && y<higy) 489 { 490 fEstPos2 ->Fill(x, y, w); 491 //fEstPos2->SetName(starSource->GetName()); 492 } 493 494 starSource = (MStarPos*)nextSource(); 495 if (starSource) 496 { 497 if (fInputType == 1) 498 { 499 x = scale * starSource->GetMeanXFit(); 500 y = scale * starSource->GetMeanYFit(); 501 } 502 else 503 { 504 x = scale * starSource->GetMeanXCalc(); 505 y = scale * starSource->GetMeanYCalc(); 506 } 507 508 if (x>lowx && x<higx && y>lowy && y<higy) 509 { 510 fEstPos3 ->Fill(x, y, w); 511 //fEstPos3->SetName(starSource->GetName()); 512 } 513 } 514 } 515 */ 516 470 } 517 471 } 518 472 } -
trunk/MagicSoft/Mars/mtemp/MTelAxisFromStars.cc
r4796 r4798 529 529 Double_t corr = esxy[0][1][ix] / 530 530 TMath::Sqrt( esxy[0][0][ix] * esxy[1][1][ix] ); 531 starSource->SetFitValues(100.0, 100.0, bsxy[0][ix], bsxy[1][ix], 532 TMath::Sqrt(esxy[0][0][ix]), TMath::Sqrt(esxy[1][1][ix]), corr, 533 esxy[0][0][ix], esxy[0][1][ix], esxy[1][1][ix], 534 fChi2, fNdof); 531 if (fInputType == 1) 532 { 533 starSource->SetFitValues(100.0, 100.0, bsxy[0][ix], bsxy[1][ix], 534 TMath::Sqrt(esxy[0][0][ix]), TMath::Sqrt(esxy[1][1][ix]), corr, 535 esxy[0][0][ix], esxy[0][1][ix], esxy[1][1][ix], 536 fChi2, fNdof); 537 } 538 else 539 { 540 starSource->SetCalcValues(100.0, 100.0, bsxy[0][ix], bsxy[1][ix], 541 TMath::Sqrt(esxy[0][0][ix]), TMath::Sqrt(esxy[1][1][ix]), corr, 542 esxy[0][0][ix], esxy[0][1][ix], esxy[1][1][ix]); 543 } 535 544 536 545 ix++; … … 1114 1123 return; 1115 1124 1125 //*fLog << "MTelAxisFromStars::TransSkyCam; lambda, A, d = " 1126 // << lambda << "; " << A[0][0] << ", " << A[0][1] << ", " 1127 // << A[1][1] << "; " << d[0] << ", " << d[1] << endl; 1128 1116 1129 //*fLog << "MTelAxisFromStars::TransSkyCam; expected and estimated positions :" 1117 1130 // << endl; … … 1119 1132 for (Int_t ix=0; ix<numpos; ix++) 1120 1133 { 1121 //*fLog << "MTelAxisFromStars; ix = " << ix << endl;1134 // *fLog << "MTelAxisFromStars; ix = " << ix << endl; 1122 1135 1123 1136 b[0][ix] = lambda * (A[0][0]*a[0][ix] + A[0][1]*a[1][ix]) + d[0]; … … 1129 1142 e[1][1][ix] = errd[1][1]; 1130 1143 1131 // *fLog << " ix, a[0], a[1], b[0], b[1], errxx, errxy, erryy = "1144 // *fLog << " ix, a[0], a[1], b[0], b[1], errxx, errxy, erryy = " 1132 1145 // << ix << " : " 1133 1146 // << a[0][ix] << ", " << a[1][ix] << "; "
Note:
See TracChangeset
for help on using the changeset viewer.