Changeset 3376
- Timestamp:
- 03/02/04 08:50:21 (21 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/MagicSoft/Mars/manalysis/MSourcePosfromStarPos.cc
r3339 r3376 79 79 fRuns = 0; 80 80 fSize = 100; 81 fStars = 0;82 81 83 82 fRunNr.Set(fSize); … … 95 94 fdyStar.ResizeTo(1,fSize); 96 95 96 fStars = 0; 97 fDecSource = 0.0; 98 fRaSource = 0.0; 97 99 } 98 100 … … 255 257 if (fDecSource == 0.0 || fRaSource == 0.0 || fStars == 0) 256 258 { 257 *fLog << err << "MSourcePosfromStarPos::PreProcess; there are no sky coordinates defined for the source or from stars "259 *fLog << err << "MSourcePosfromStarPos::PreProcess; there are no sky coordinates defined for the source or from stars; fStars = " << fStars 258 260 << endl; 259 261 } … … 603 605 fdThetaTel.Set(fSize); 604 606 fdPhiTel.Set(fSize); 605 606 fStars = fxStar.GetNrows();607 fxStar.ResizeTo(f Stars, fSize);608 fyStar.ResizeTo(f Stars, fSize);609 fdxStar.ResizeTo(f Stars, fSize);610 fdyStar.ResizeTo(f Stars, fSize);607 608 Int_t fRows = fxStar.GetNrows(); 609 fxStar.ResizeTo(fRows, fSize); 610 fyStar.ResizeTo(fRows, fSize); 611 fdxStar.ResizeTo(fRows, fSize); 612 fdyStar.ResizeTo(fRows, fSize); 611 613 } 612 614 … … 641 643 // << fRunNr[fRuns-1] << ", " << fRunNr[fRuns] << endl; 642 644 645 643 646 // read mjdS, hmsS, mjdE, hmsE 644 *fIn >> val; 645 *fIn >> val; 646 *fIn >> val; 647 *fIn >> val; 648 649 *fIn >> val; 650 *fIn >> val; 651 *fIn >> val; 652 *fIn >> val; 653 647 // these data are present only for ON data (fStars > 0) 648 if (fStars > 0) 649 { 650 *fIn >> val; 651 *fIn >> val; 652 *fIn >> val; 653 *fIn >> val; 654 655 *fIn >> val; 656 *fIn >> val; 657 *fIn >> val; 658 *fIn >> val; 659 } 654 660 655 661 *fIn >> val; 656 662 fThetaTel.AddAt(val/kRad2Deg, fRuns-1); 657 663 //*fLog << "val, fThetaTel[fRuns-1] = " << val << ", " 658 // << fThetaTel[fRuns-1] << endl;664 // << fThetaTel[fRuns-1] << endl; 659 665 660 666 … … 671 677 672 678 // input is in [deg], convert to [mm] 673 fStars = fxStar.GetNrows(); 679 680 //*fLog << "ReadData : fStars = " << fStars << endl; 674 681 for (Int_t i=0; i<fStars; i++) 675 682 {
Note:
See TracChangeset
for help on using the changeset viewer.