Index: /trunk/MagicSoft/Cosy/Changelog
===================================================================
--- /trunk/MagicSoft/Cosy/Changelog	(revision 8376)
+++ /trunk/MagicSoft/Cosy/Changelog	(revision 8377)
@@ -8,5 +8,7 @@
      catalog/StarCatalog.cc, gui/MGAccuracy.cc, gui/MGCoordinate.cc,
      gui/MGCoordinates.cc, gui/MGCosy.cc, gui/MGNumStars.cc,
-     gui/MGSkyPosition.cc, main/MBending.cc, main/MStargHistograms.cc:
+     gui/MGSkyPosition.cc, main/MBending.cc, main/MStargHistograms.cc,
+     base/coord.h, main/MCaos.cc, main/MCosy.cc, main/MPointing.cc,
+     main/MStarguider.cc, main/MTracking.cc:
      - replaced obsolete .h by C++ headers
      - added namespace std
@@ -15,5 +17,6 @@
      - fixed warnings about overwriting of Delete
 
-   * base/MStopwatch.h, gui/MGCoordinate.h, gui/MGCoordinates.h:
+   * base/MStopwatch.h, gui/MGCoordinate.h, gui/MGCoordinates.h,
+     main/MStarguider.h:
      - fixed warning about overwriting of Print()
 
@@ -21,5 +24,7 @@
      - fixed default argument is declaration
 
-   * catalog/StarCatalog.cc, gui/MGAccuracy.cc:
+   * catalog/StarCatalog.cc, gui/MGAccuracy.cc, main/MCaos.[h,cc],
+     main/MCosy.cc, main/MPointing.cc, main/MStarguider.cc,
+     main/MTracking.cc:
      - fixed a type problem (int instead of double) 
 
Index: /trunk/MagicSoft/Cosy/main/MStarguider.h
===================================================================
--- /trunk/MagicSoft/Cosy/main/MStarguider.h	(revision 8376)
+++ /trunk/MagicSoft/Cosy/main/MStarguider.h	(revision 8377)
@@ -103,6 +103,6 @@
     AltAz         fAltAzOffsetFromTp;
 
-    Double_t fNumStarsDetected;
-    Double_t fNumStarsCorrelated;
+    Int_t          fNumStarsDetected;
+    Int_t          fNumStarsCorrelated;
 
     StarCatalog   *fSao;
@@ -146,8 +146,8 @@
 
     XY FindRoqueLamp(FilterLed &f, FilterLed &f2, Ring &CameraCenter, MTime &t, 
-		     Double_t cut, Double_t box, XY SearchCenter);
+		     Double_t cut, Int_t box, XY SearchCenter);
 
     ZdAz FindStar(FilterLed &f, FilterLed &f2, Ring &center, MTime &t, 
-		  Double_t cut, Double_t box, Double_t scalefactor);
+		  Double_t cut, Int_t box, Double_t scalefactor);
 
     //void InitHists();
@@ -191,4 +191,5 @@
 
     void Print(TString &str, Double_t deg) const;
+    void Print(Option_t *o) const { }
 
     ClassDef(MStarguider, 0)
Index: /trunk/MagicSoft/Cosy/main/MTracking.cc
===================================================================
--- /trunk/MagicSoft/Cosy/main/MTracking.cc	(revision 8376)
+++ /trunk/MagicSoft/Cosy/main/MTracking.cc	(revision 8377)
@@ -10,4 +10,6 @@
 
 ClassImp(MTracking);
+
+using namespace std;
 
 //#define EXPERT
@@ -358,7 +360,7 @@
     // Estimate Offset before starting to track
     ZdAz repos = fCosy->GetRePos();
-    fCosy->fZd1->SetOffset(repos.Zd());
-    fCosy->fZd2->SetOffset(repos.Zd());
-    fCosy->fAz->SetOffset(repos.Az());
+    fCosy->fZd1->SetOffset(TMath::Nint(repos.Zd()));
+    fCosy->fZd2->SetOffset(TMath::Nint(repos.Zd()));
+    fCosy->fAz->SetOffset(TMath::Nint(repos.Az()));
 
     fCosy->SetTrackingPosRE(GetPointingPosRE());
Index: /trunk/MagicSoft/Cosy/videodev/FilterLed.cc
===================================================================
--- /trunk/MagicSoft/Cosy/videodev/FilterLed.cc	(revision 8376)
+++ /trunk/MagicSoft/Cosy/videodev/FilterLed.cc	(revision 8377)
@@ -2,5 +2,5 @@
 
 #include <memory.h>   // memset
-#include <iostream.h> // cout
+#include <iostream> // cout
 
 #include "Led.h"
@@ -11,4 +11,6 @@
 
 ClassImp(FilterLed);
+
+using namespace std;
 
 class ClusterFinder
