Ignore:
Timestamp:
03/14/07 19:12:17 (18 years ago)
Author:
tbretz
Message:
*** empty log message ***
File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/MagicSoft/Cosy/main/MStarguider.cc

    r7795 r8376  
    44#include "MStarguider.h"
    55
    6 #include <fstream.h>    // ifstream
    7 #include <iostream.h>   // cout
    8 #include <iomanip.h>   // cout
     6#include <fstream>    // ifstream
     7#include <iostream>   // cout
     8#include <iomanip>    // cout
    99
    1010#include <TH2F.h>
     
    5757
    5858ClassImp(MStarguider);
     59
     60using namespace std;
    5961
    6062enum {
     
    14571459           
    14581460            const Int_t idx = x.GetSize();
    1459            
     1461
    14601462            x.Set(idx+1);
    14611463            y.Set(idx+1);
    14621464            mag.Set(idx+1);
    1463            
     1465
    14641466            x.AddAt(dpos.X(), idx);
    14651467            y.AddAt(dpos.Y(), idx);
     
    15071509    fPZdAz->SetCoordinates(cpos);
    15081510
    1509 
    15101511    // Check StargTPoint data set request
    15111512    if (!fStargTPoint->IsDown())
     
    15751576}
    15761577
    1577 XY MStarguider::FindRoqueLamp(FilterLed &f, FilterLed &f2, Ring &CameraCenter, MTime &t, Double_t cut, Double_t box, XY SearchCenter)
     1578XY MStarguider::FindRoqueLamp(FilterLed &f, FilterLed &f2, Ring &CameraCenter, MTime &t, Double_t cut, Int_t box, XY SearchCenter)
    15781579{
    15791580    // Set search Paremeters (FIXME: Get them from user input!)
     
    16111612}
    16121613
    1613 ZdAz MStarguider::FindStar(FilterLed &f, FilterLed &f2, Ring &center, MTime &t, Double_t cut, Double_t box, Double_t scalefactor = 1.0)
     1614ZdAz MStarguider::FindStar(FilterLed &f, FilterLed &f2, Ring &center, MTime &t, Double_t cut, Int_t box, Double_t scalefactor = 1.0)
    16141615{
    16151616    // Set search Paremeters (FIXME: Get them from user input!)
     
    18501851    {
    18511852        // 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);
    18531854        SendAmcTrigger("TPoint");
    18541855    }
     
    19201921
    19211922        Double_t imageclean = 1.5;
    1922         Double_t boxradius = 60;
     1923        Int_t    boxradius = 60;
    19231924        //Double_t scalefactor = 1;
    19241925        XY searchcenter(768/2-1,576/2+25);
     
    19471948
    19481949        Double_t imageclean = 5;
    1949         Double_t boxradius = 60;
     1950        Int_t    boxradius = 60;
    19501951        //Double_t scalefactor = 1;
    19511952        //      XY searchcenter(sgcenter.GetX(),sgcenter.GetY());
     
    20162017                     sgcenter.GetY()-293.6+28.5);
    20172018
    2018         fSao->CalcStars(stars, 530, 292, off.X(), off.Y());
     2019        fSao->CalcStars(stars, 530, 292, TMath::FloorNint(off.X()), TMath::FloorNint(off.Y()));
    20192020        fSao->DrawStars(stars, cimg);
    20202021
Note: See TracChangeset for help on using the changeset viewer.