Changeset 3531
- Timestamp:
- 03/17/04 13:19:12 (21 years ago)
- Location:
- trunk/MagicSoft/Mars/manalysis
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/MagicSoft/Mars/manalysis/MSourcePosfromStarPos.cc
r3517 r3531 99 99 fRaSource = 0.0; 100 100 101 // these are the default values when starting the excution; 102 // later these locations contain the values of the last event 101 103 fxSourceold = 25.0; 102 104 fySourceold = -40.0; … … 292 294 if (fDecSource == 0.0 || fRaSource == 0.0 || fStars == 0) 293 295 { 294 *fLog << err<< "MSourcePosfromStarPos::PreProcess; there are no sky coordinates defined for the source or from stars; fStars = " << fStars296 *fLog << warn << "MSourcePosfromStarPos::PreProcess; there are no sky coordinates defined for the source or from stars; fStars = " << fStars 295 297 << endl; 296 298 } … … 531 533 } 532 534 533 MSourcePosfromStarPos::SourcefromStar( fDistCameraReflector,534 fDecStar, fRaStar, fDecSource, fRaSource,535 fThetaTel[i], fPhiTel[i],536 xStar, yStar,537 dxStar, dyStar,538 fxSource, fySource,539 fdxSource, fdySource);535 SourcefromStar( fDistCameraReflector, 536 fDecStar, fRaStar, fDecSource, fRaSource, 537 fThetaTel[i], fPhiTel[i], 538 xStar, yStar, 539 dxStar, dyStar, 540 fxSource, fySource, 541 fdxSource, fdySource); 540 542 541 543 fSrcPos->SetXY(fxSource, fySource); … … 637 639 638 640 Int_t fRows = fxStar.GetNrows(); 641 if (fRows <= 0) 642 fRows = 1; 639 643 fxStar.ResizeTo(fRows, fSize); 640 644 fyStar.ResizeTo(fRows, fSize); … … 665 669 666 670 Int_t fRows = fxStar.GetNrows(); 671 if (fRows <= 0) 672 fRows = 1; 667 673 fxStar.ResizeTo(fRows, fSize); 668 674 fyStar.ResizeTo(fRows, fSize); … … 690 696 691 697 698 while(1) 699 { 700 *fIn >> ival; 701 702 // run number must be greater than 10000 703 if (fabs(ival) < 10000) 704 { 705 *fLog << err << "===========> Error when reading file with theta and phi <=========" 706 << " ival = " << ival << endl; 707 } 708 else 709 break; 710 } 711 692 712 fRuns += 1; 693 694 *fIn >> ival;695 696 697 698 713 //*fLog << fRuns <<"th run : " << ival << endl; 699 714 -
trunk/MagicSoft/Mars/manalysis/MSourcePosfromStarPos.h
r3517 r3531 55 55 56 56 57 Double_t fDecSource; 57 Double_t fDecSource; // sky coordinates of source 58 58 Double_t fRaSource; 59 Double_t fxSource; 59 Double_t fxSource; // estimated position of source in camera 60 60 Double_t fySource; 61 61 Double_t fdxSource; 62 62 Double_t fdySource; 63 63 64 TArrayI fRunNr; 65 TArrayD fThetaTel; 64 TArrayI fRunNr; // list of run numbers 65 TArrayD fThetaTel; // for each run : theta, phi, ... 66 66 TArrayD fPhiTel; 67 67 TArrayD fdThetaTel; 68 68 TArrayD fdPhiTel; 69 69 70 TArrayD fDecStar; 70 TArrayD fDecStar; // sky coordinates of stars 71 71 TArrayD fRaStar; 72 TMatrixD fxStar; 72 TMatrixD fxStar; // for each run : positions of stars in camera (from DC currents) 73 73 TMatrixD fyStar; 74 74 TMatrixD fdxStar; 75 75 TMatrixD fdyStar; 76 76 77 Double_t fxSourceold; 77 Double_t fxSourceold; 78 78 Double_t fySourceold; 79 79 Double_t fThetaradold;
Note:
See TracChangeset
for help on using the changeset viewer.