Index: trunk/MagicSoft/Cosy/catalog/CatalogIncl.h
===================================================================
--- trunk/MagicSoft/Cosy/catalog/CatalogIncl.h	(revision 921)
+++ trunk/MagicSoft/Cosy/catalog/CatalogIncl.h	(revision 1109)
@@ -1,3 +1,3 @@
-#ifndef __CINT__
+#ifdef __CINT__
 
 #endif // __CINT__
Index: trunk/MagicSoft/Cosy/catalog/CatalogLinkDef.h
===================================================================
--- trunk/MagicSoft/Cosy/catalog/CatalogLinkDef.h	(revision 921)
+++ trunk/MagicSoft/Cosy/catalog/CatalogLinkDef.h	(revision 1109)
@@ -5,3 +5,10 @@
 #pragma link off all functions;
 
+#pragma link C++ class Slalib+;
+#pragma link C++ class SlaStars+;
+#pragma link C++ class SlaPlanets+;
+
+#pragma link C++ class SaoFile+;
+#pragma link C++ class StarCatalog+;
+
 #endif
Index: trunk/MagicSoft/Cosy/catalog/Makefile
===================================================================
--- trunk/MagicSoft/Cosy/catalog/Makefile	(revision 921)
+++ trunk/MagicSoft/Cosy/catalog/Makefile	(revision 1109)
@@ -24,6 +24,6 @@
 # @code 
 
-CINT     = Catalog
-LIB      = catalog.a
+CINT = Catalog
+LIB  = catalog.a
 
 #------------------------------------------------------------------------------
@@ -37,7 +37,8 @@
 	   StarCatalog.cc
 
-SRCS    = $(SRCFILES)
-HEADERS = $(SRCFILES:.cc=.h)
-OBJS    = $(SRCFILES:.cc=.o) 
+SRCS        = $(SRCFILES)
+HEADERS     = $(SRCFILES:.cc=.h)
+OBJS        = $(SRCFILES:.cc=.o) 
+CINTHEADERS = $(HEADERS)
 
 ############################################################
Index: trunk/MagicSoft/Cosy/catalog/SaoFile.cc
===================================================================
--- trunk/MagicSoft/Cosy/catalog/SaoFile.cc	(revision 921)
+++ trunk/MagicSoft/Cosy/catalog/SaoFile.cc	(revision 1109)
@@ -10,4 +10,6 @@
 #define FALSE 0
 #define TRUE  1
+
+ClassImp(SaoFile);
 
 static int lt(sort_t *t1, sort_t *t2)
Index: trunk/MagicSoft/Cosy/catalog/SaoFile.h
===================================================================
--- trunk/MagicSoft/Cosy/catalog/SaoFile.h	(revision 921)
+++ trunk/MagicSoft/Cosy/catalog/SaoFile.h	(revision 1109)
@@ -1,4 +1,6 @@
 #ifndef SAOFILE_H
 #define SAOFILE_H
+
+#include <TROOT.h>
 
 #include "coord.h"
@@ -43,5 +45,5 @@
 public:
     SaoFile(const char *name);
-    ~SaoFile();
+    virtual ~SaoFile();
 
     void  Compress();
@@ -78,4 +80,6 @@
 
     const char *String() const { return data; }
+
+    ClassDef(SaoFile, 0)
 };
 
Index: trunk/MagicSoft/Cosy/catalog/SlaPlanets.cc
===================================================================
--- trunk/MagicSoft/Cosy/catalog/SlaPlanets.cc	(revision 921)
+++ trunk/MagicSoft/Cosy/catalog/SlaPlanets.cc	(revision 1109)
@@ -4,4 +4,6 @@
 
 #include "slalib.h"
+
+ClassImp(SlaPlanets);
 
 SlaPlanets::SlaPlanets() : Slalib(), fDt(slaDt(2000.0)/60./60./24.)
Index: trunk/MagicSoft/Cosy/catalog/SlaPlanets.h
===================================================================
--- trunk/MagicSoft/Cosy/catalog/SlaPlanets.h	(revision 921)
+++ trunk/MagicSoft/Cosy/catalog/SlaPlanets.h	(revision 1109)
@@ -23,5 +23,5 @@
 {
 private:
-    const double fDt;
+    double fDt; // const: rootcint/TMemberInspector
 
     ZdAz fZdAz[10];    // [rad]
@@ -44,4 +44,6 @@
     ZdAz GetPlanetPos(ePlanets_t planet) const { return fZdAz[planet]; }
 
+    ClassDef(SlaPlanets, 0)
+
 };
 
Index: trunk/MagicSoft/Cosy/catalog/SlaStars.cc
===================================================================
--- trunk/MagicSoft/Cosy/catalog/SlaStars.cc	(revision 921)
+++ trunk/MagicSoft/Cosy/catalog/SlaStars.cc	(revision 1109)
@@ -2,4 +2,6 @@
 
 #include "slalib.h"
+
+ClassImp(SlaStars);
 
 SlaStars::SlaStars() : Slalib()
@@ -13,5 +15,5 @@
 void SlaStars::Set(const AltAz &altaz)
 {
-    fAltAz = altaz * D2PI/360.0;
+    fAltAz = altaz * kDeg2Rad;
     fRaDec = CalcRaDec(fAltAz);
 }
@@ -19,5 +21,5 @@
 void SlaStars::Set(const ZdAz &zdaz)
 {
-    fAltAz = AltAz(DPI/2-zdaz.Zd(), zdaz.Az()) * D2PI/360.0;
+    fAltAz = AltAz(kPiDiv2-zdaz.Zd(), zdaz.Az()) * kDeg2Rad;
     fRaDec = CalcRaDec(fAltAz);
 }
@@ -25,5 +27,5 @@
 void SlaStars::Set(const RaDec &radec)
 {
-    fRaDec = radec * D2PI/360.0;
+    fRaDec = radec * kDeg2Rad;
     fAltAz = CalcAltAz(fRaDec);
 }
@@ -47,5 +49,5 @@
 RaDec SlaStars::CalcRaDec(const AltAz &altaz) const
 {
-    return CalcRaDec(ZdAz(DPI/2-altaz.Alt(), altaz.Az()));
+    return CalcRaDec(ZdAz(kPiDiv2-altaz.Alt(), altaz.Az()));
 }
 
@@ -105,5 +107,5 @@
 {
     ZdAz zdaz = CalcZdAz(radec);
-    return AltAz(DPI/2-zdaz.Zd(), zdaz.Az());
+    return AltAz(kPiDiv2-zdaz.Zd(), zdaz.Az());
 }
 
Index: trunk/MagicSoft/Cosy/catalog/SlaStars.h
===================================================================
--- trunk/MagicSoft/Cosy/catalog/SlaStars.h	(revision 921)
+++ trunk/MagicSoft/Cosy/catalog/SlaStars.h	(revision 1109)
@@ -3,4 +3,6 @@
 
 #include "Slalib.h"
+
+#include "coord.h"
 
 class SlaStars : public Slalib
@@ -34,4 +36,6 @@
     AltAz  CalcAltAz(const RaDec &radec) const;
     ZdAz   CalcZdAz (const RaDec &radec) const;
+
+    ClassDef(SlaStars, 0)
 };
 
Index: trunk/MagicSoft/Cosy/catalog/Slalib.cc
===================================================================
--- trunk/MagicSoft/Cosy/catalog/Slalib.cc	(revision 921)
+++ trunk/MagicSoft/Cosy/catalog/Slalib.cc	(revision 1109)
@@ -4,5 +4,9 @@
 #include <iostream.h>  // cout
 
+#include "coord.h"
+
 #include "slalib.h"
+
+ClassImp(Slalib);
 
 Slalib::Slalib() : Timer()
@@ -17,6 +21,6 @@
     slaDaf2r( 9, 56, 36.0, &fElong, &status);
 
-    cout << "Latitude: 51\x9c 38'48.0\" = " <<  360.0/D2PI*fPhi << "   ";
-    cout << "Longitude: 9\x9c 56'36.0\" = " <<  360.0/D2PI*fElong << endl;
+    cout << "Latitude: 51\x9c 38'48.0\" = " <<  kRad2Deg*fPhi << "   ";
+    cout << "Longitude: 9\x9c 56'36.0\" = " <<  kRad2Deg*fElong << endl;
 }
 
@@ -64,4 +68,4 @@
     slaDe2h(ha, dec, fPhi, &az, &alt);
 
-    return ZdAz(DPI/2-alt, az);
+    return ZdAz(kPiDiv2-alt, az);
 }
Index: trunk/MagicSoft/Cosy/catalog/Slalib.h
===================================================================
--- trunk/MagicSoft/Cosy/catalog/Slalib.h	(revision 921)
+++ trunk/MagicSoft/Cosy/catalog/Slalib.h	(revision 1109)
@@ -1,4 +1,6 @@
 #ifndef SLALIB_H
 #define SLALIB_H
+
+#include <TROOT.h>
 
 #include "coord.h"
@@ -34,4 +36,6 @@
 
     ZdAz   XYZ2ZdAz(double coord[3]) const;
+
+    ClassDef(Slalib, 0)
 };
 
Index: trunk/MagicSoft/Cosy/catalog/StarCatalog.cc
===================================================================
--- trunk/MagicSoft/Cosy/catalog/StarCatalog.cc	(revision 921)
+++ trunk/MagicSoft/Cosy/catalog/StarCatalog.cc	(revision 1109)
@@ -9,4 +9,6 @@
 #include "slamac.h"
 #include "File.h"
+
+ClassImp(StarCatalog);
 
 StarCatalog::StarCatalog() : SlaStars(), fEntries(0)
