Changeset 8376 for trunk/MagicSoft/Cosy/main/MStarguider.cc
- Timestamp:
- 03/14/07 19:12:17 (18 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/MagicSoft/Cosy/main/MStarguider.cc
r7795 r8376 4 4 #include "MStarguider.h" 5 5 6 #include <fstream .h> // ifstream7 #include <iostream .h> // cout8 #include <iomanip .h>// cout6 #include <fstream> // ifstream 7 #include <iostream> // cout 8 #include <iomanip> // cout 9 9 10 10 #include <TH2F.h> … … 57 57 58 58 ClassImp(MStarguider); 59 60 using namespace std; 59 61 60 62 enum { … … 1457 1459 1458 1460 const Int_t idx = x.GetSize(); 1459 1461 1460 1462 x.Set(idx+1); 1461 1463 y.Set(idx+1); 1462 1464 mag.Set(idx+1); 1463 1465 1464 1466 x.AddAt(dpos.X(), idx); 1465 1467 y.AddAt(dpos.Y(), idx); … … 1507 1509 fPZdAz->SetCoordinates(cpos); 1508 1510 1509 1510 1511 // Check StargTPoint data set request 1511 1512 if (!fStargTPoint->IsDown()) … … 1575 1576 } 1576 1577 1577 XY MStarguider::FindRoqueLamp(FilterLed &f, FilterLed &f2, Ring &CameraCenter, MTime &t, Double_t cut, Double_t box, XY SearchCenter)1578 XY MStarguider::FindRoqueLamp(FilterLed &f, FilterLed &f2, Ring &CameraCenter, MTime &t, Double_t cut, Int_t box, XY SearchCenter) 1578 1579 { 1579 1580 // Set search Paremeters (FIXME: Get them from user input!) … … 1611 1612 } 1612 1613 1613 ZdAz MStarguider::FindStar(FilterLed &f, FilterLed &f2, Ring ¢er, MTime &t, Double_t cut, Double_t box, Double_t scalefactor = 1.0)1614 ZdAz MStarguider::FindStar(FilterLed &f, FilterLed &f2, Ring ¢er, MTime &t, Double_t cut, Int_t box, Double_t scalefactor = 1.0) 1614 1615 { 1615 1616 // Set search Paremeters (FIXME: Get them from user input!) … … 1850 1851 { 1851 1852 // SCALE FACTOR ASSUMED TO BE 70 1852 FindStar(f, f2, center, t, 3 .5, 70);1853 FindStar(f, f2, center, t, 3/*3.5*/, 70); 1853 1854 SendAmcTrigger("TPoint"); 1854 1855 } … … 1920 1921 1921 1922 Double_t imageclean = 1.5; 1922 Double_tboxradius = 60;1923 Int_t boxradius = 60; 1923 1924 //Double_t scalefactor = 1; 1924 1925 XY searchcenter(768/2-1,576/2+25); … … 1947 1948 1948 1949 Double_t imageclean = 5; 1949 Double_tboxradius = 60;1950 Int_t boxradius = 60; 1950 1951 //Double_t scalefactor = 1; 1951 1952 // XY searchcenter(sgcenter.GetX(),sgcenter.GetY()); … … 2016 2017 sgcenter.GetY()-293.6+28.5); 2017 2018 2018 fSao->CalcStars(stars, 530, 292, off.X(), off.Y());2019 fSao->CalcStars(stars, 530, 292, TMath::FloorNint(off.X()), TMath::FloorNint(off.Y())); 2019 2020 fSao->DrawStars(stars, cimg); 2020 2021
Note:
See TracChangeset
for help on using the changeset viewer.