Index: trunk/MagicSoft/Cosy/gui/MGAccuracy.cc
===================================================================
--- trunk/MagicSoft/Cosy/gui/MGAccuracy.cc	(revision 7794)
+++ trunk/MagicSoft/Cosy/gui/MGAccuracy.cc	(revision 8376)
@@ -1,5 +1,5 @@
 #include "MGAccuracy.h"
 
-#include <iostream.h>  // cout
+#include <iostream>  // cout
 
 #include <TArc.h>
@@ -16,4 +16,6 @@
 
 ClassImp(MGAccuracy);
+
+using namespace std;
 
 void MGAccuracy::DrawText(const char *c1, const char *c2, const char *c3, const char*txt)
@@ -163,5 +165,5 @@
     dist *= 3600.; // [sec]
 
-    int rs = (int)floor(fmod(dist, 60.));
+    int rs = TMath::FloorNint(fmod(dist, (float)60.));
 
     dist /= 60.;   // [min]
Index: trunk/MagicSoft/Cosy/gui/MGCoordinate.cc
===================================================================
--- trunk/MagicSoft/Cosy/gui/MGCoordinate.cc	(revision 7794)
+++ trunk/MagicSoft/Cosy/gui/MGCoordinate.cc	(revision 8376)
@@ -8,5 +8,5 @@
 
 #include <stdlib.h>    // atoi
-#include <iostream.h>  // cout
+#include <iostream>  // cout
 
 #include <TSystem.h>
@@ -18,4 +18,6 @@
 
 ClassImp(MGCoordinate);
+
+using namespace std;
 
 enum {
@@ -25,5 +27,5 @@
 };
 
-MGCoordinate::MGCoordinate(const TGWindow* p, const Int_t type=kETypeDeg,
+MGCoordinate::MGCoordinate(const TGWindow* p, const Int_t type,
                            const Int_t flag, const char *txt,
                            const Int_t deg, const UInt_t min, const UInt_t sec)
@@ -91,11 +93,11 @@
     TGLabel *label;
 
-    const char *deg = type==kETypeDeg ? "\xb0" : "h";
-    const char *min = type==kETypeDeg ? "'"    : "m";
-    const char *sec = type==kETypeDeg ? "\""   : "s";
+    const char *sdeg = type==kETypeDeg ? "\xb0" : "h";
+    const char *smin = type==kETypeDeg ? "'"    : "m";
+    const char *ssec = type==kETypeDeg ? "\""   : "s";
 
     if (flag==1)
     {
-        label = new TGLabel(this, deg);
+        label = new TGLabel(this, sdeg);
         label->SetTextJustify(kTextLeft);
         label->Move(37, 29-offset);
@@ -103,5 +105,5 @@
         fList->Add(label);
 
-        label = new TGLabel(this, min);
+        label = new TGLabel(this, smin);
         label->SetTextJustify(kTextLeft);
         label->Move(71, 29-offset);
@@ -109,5 +111,5 @@
         fList->Add(label);
 
-        label = new TGLabel(this, sec);
+        label = new TGLabel(this, ssec);
         label->SetTextJustify(kTextLeft);
         label->Move(107, 29-offset);
@@ -116,5 +118,5 @@
     }
 
-    label = new TGLabel(this, deg);
+    label = new TGLabel(this, sdeg);
     label->SetTextJustify(kTextLeft);
     label->Move(39, ypos);
@@ -122,5 +124,5 @@
     fList->Add(label);
 
-    label = new TGLabel(this, min);
+    label = new TGLabel(this, smin);
     label->SetTextJustify(kTextLeft);
     label->Move(73, ypos);
@@ -128,5 +130,5 @@
     fList->Add(label);
  
-    label = new TGLabel(this, sec);
+    label = new TGLabel(this, ssec);
     label->SetTextJustify(kTextLeft);
     label->Move(107, ypos);
@@ -149,5 +151,5 @@
 }
 
-void MGCoordinate::Print()
+void MGCoordinate::Print(Option_t *o) const
 {
     if (fLabel)
Index: trunk/MagicSoft/Cosy/gui/MGCoordinate.h
===================================================================
--- trunk/MagicSoft/Cosy/gui/MGCoordinate.h	(revision 7794)
+++ trunk/MagicSoft/Cosy/gui/MGCoordinate.h	(revision 8376)
@@ -58,5 +58,5 @@
     Bool_t ProcessMessage(Long_t msg, Long_t mp1, Long_t mp2);
 
-    void Print();
+    void Print(Option_t *o="") const;
 
     ClassDef(MGCoordinate, 0)
Index: trunk/MagicSoft/Cosy/gui/MGCoordinates.cc
===================================================================
--- trunk/MagicSoft/Cosy/gui/MGCoordinates.cc	(revision 7794)
+++ trunk/MagicSoft/Cosy/gui/MGCoordinates.cc	(revision 8376)
@@ -7,5 +7,5 @@
 #include "MGCoordinates.h"
 
-#include <iostream.h>  // cout
+#include <iostream>  // cout
 
 #include "MGCoordinate.h"
@@ -13,4 +13,6 @@
 
 ClassImp(MGCoordinates);
+
+using namespace std;
 
 MGCoordinates::MGCoordinates(const TGWindow* p,
@@ -54,5 +56,5 @@
 }
 
-void MGCoordinates::Print()
+void MGCoordinates::Print(Option_t *o) const
 {
     fX->Print();
Index: trunk/MagicSoft/Cosy/gui/MGCoordinates.h
===================================================================
--- trunk/MagicSoft/Cosy/gui/MGCoordinates.h	(revision 7794)
+++ trunk/MagicSoft/Cosy/gui/MGCoordinates.h	(revision 8376)
@@ -37,5 +37,5 @@
     void SetCoordinates(const XY &xy);
 
-    void Print();
+    void Print(Option_t *o="") const;
 
     ClassDef(MGCoordinates, 0)
Index: trunk/MagicSoft/Cosy/gui/MGCosy.cc
===================================================================
--- trunk/MagicSoft/Cosy/gui/MGCosy.cc	(revision 7794)
+++ trunk/MagicSoft/Cosy/gui/MGCosy.cc	(revision 8376)
@@ -1,6 +1,6 @@
 #include "MGCosy.h"
 
-#include <iomanip.h>
-#include <iostream.h>
+#include <iomanip>
+#include <fstream>
 
 #include "msgqueue.h"
@@ -42,4 +42,6 @@
 
 ClassImp(MGCosy);
+
+using namespace std;
 
 #define IDM_EXIT   1
@@ -827,7 +829,7 @@
     cout << "MGCosy: Setting Size" << endl;
 #endif
-    const Int_t w = 1010;
-    const Int_t h =  700;
-    SetWMSizeHints(w, h, w, h, 1, 1);  // set the smallest and biggest size of the Main frame
+    const Int_t ww = 1010;
+    const Int_t hh =  700;
+    SetWMSizeHints(ww, hh, ww, hh, 1, 1);  // set the smallest and biggest size of the Main frame
 
     SetWindowName("Cosy Main Window");
@@ -838,5 +840,5 @@
 #endif
     MapSubwindows();
-    Resize(w, h); //GetDefaultSize());
+    Resize(ww, hh); //GetDefaultSize());
     MapWindow();
 }
Index: trunk/MagicSoft/Cosy/gui/MGNumStars.cc
===================================================================
--- trunk/MagicSoft/Cosy/gui/MGNumStars.cc	(revision 7794)
+++ trunk/MagicSoft/Cosy/gui/MGNumStars.cc	(revision 8376)
@@ -1,5 +1,5 @@
 #include "MGNumStars.h"
 
-#include <iostream.h>  // cout
+#include <iostream>  // cout
 
 #include <TLine.h>
@@ -13,4 +13,6 @@
 
 ClassImp(MGNumStars);
+
+using namespace std;
 
 void MGNumStars::DrawText(const char*txt)
Index: trunk/MagicSoft/Cosy/gui/MGSkyPosition.cc
===================================================================
--- trunk/MagicSoft/Cosy/gui/MGSkyPosition.cc	(revision 7794)
+++ trunk/MagicSoft/Cosy/gui/MGSkyPosition.cc	(revision 8376)
@@ -7,5 +7,5 @@
 #include "MGSkyPosition.h"
 
-#include <iostream.h>  // cout
+#include <iostream>  // cout
 
 #include <TArc.h>
@@ -21,4 +21,6 @@
 
 ClassImp(MGSkyPosition);
+
+using namespace std;
 
 void MGSkyPosition::InitArc(TArc *arc, Int_t fillstyle, Int_t fillcolor, Int_t linecolor)
