Changeset 1109 for trunk/MagicSoft/Cosy/catalog
- Timestamp:
- 12/12/01 13:09:24 (23 years ago)
- Location:
- trunk/MagicSoft/Cosy/catalog
- Files:
-
- 12 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/MagicSoft/Cosy/catalog/CatalogIncl.h
r920 r1109 1 #if ndef __CINT__1 #ifdef __CINT__ 2 2 3 3 #endif // __CINT__ -
trunk/MagicSoft/Cosy/catalog/CatalogLinkDef.h
r920 r1109 5 5 #pragma link off all functions; 6 6 7 #pragma link C++ class Slalib+; 8 #pragma link C++ class SlaStars+; 9 #pragma link C++ class SlaPlanets+; 10 11 #pragma link C++ class SaoFile+; 12 #pragma link C++ class StarCatalog+; 13 7 14 #endif -
trunk/MagicSoft/Cosy/catalog/Makefile
r912 r1109 24 24 # @code 25 25 26 CINT 27 LIB 26 CINT = Catalog 27 LIB = catalog.a 28 28 29 29 #------------------------------------------------------------------------------ … … 37 37 StarCatalog.cc 38 38 39 SRCS = $(SRCFILES) 40 HEADERS = $(SRCFILES:.cc=.h) 41 OBJS = $(SRCFILES:.cc=.o) 39 SRCS = $(SRCFILES) 40 HEADERS = $(SRCFILES:.cc=.h) 41 OBJS = $(SRCFILES:.cc=.o) 42 CINTHEADERS = $(HEADERS) 42 43 43 44 ############################################################ -
trunk/MagicSoft/Cosy/catalog/SaoFile.cc
r748 r1109 10 10 #define FALSE 0 11 11 #define TRUE 1 12 13 ClassImp(SaoFile); 12 14 13 15 static int lt(sort_t *t1, sort_t *t2) -
trunk/MagicSoft/Cosy/catalog/SaoFile.h
r740 r1109 1 1 #ifndef SAOFILE_H 2 2 #define SAOFILE_H 3 4 #include <TROOT.h> 3 5 4 6 #include "coord.h" … … 43 45 public: 44 46 SaoFile(const char *name); 45 ~SaoFile();47 virtual ~SaoFile(); 46 48 47 49 void Compress(); … … 78 80 79 81 const char *String() const { return data; } 82 83 ClassDef(SaoFile, 0) 80 84 }; 81 85 -
trunk/MagicSoft/Cosy/catalog/SlaPlanets.cc
r912 r1109 4 4 5 5 #include "slalib.h" 6 7 ClassImp(SlaPlanets); 6 8 7 9 SlaPlanets::SlaPlanets() : Slalib(), fDt(slaDt(2000.0)/60./60./24.) -
trunk/MagicSoft/Cosy/catalog/SlaPlanets.h
r912 r1109 23 23 { 24 24 private: 25 const double fDt;25 double fDt; // const: rootcint/TMemberInspector 26 26 27 27 ZdAz fZdAz[10]; // [rad] … … 44 44 ZdAz GetPlanetPos(ePlanets_t planet) const { return fZdAz[planet]; } 45 45 46 ClassDef(SlaPlanets, 0) 47 46 48 }; 47 49 -
trunk/MagicSoft/Cosy/catalog/SlaStars.cc
r920 r1109 2 2 3 3 #include "slalib.h" 4 5 ClassImp(SlaStars); 4 6 5 7 SlaStars::SlaStars() : Slalib() … … 13 15 void SlaStars::Set(const AltAz &altaz) 14 16 { 15 fAltAz = altaz * D2PI/360.0;17 fAltAz = altaz * kDeg2Rad; 16 18 fRaDec = CalcRaDec(fAltAz); 17 19 } … … 19 21 void SlaStars::Set(const ZdAz &zdaz) 20 22 { 21 fAltAz = AltAz( DPI/2-zdaz.Zd(), zdaz.Az()) * D2PI/360.0;23 fAltAz = AltAz(kPiDiv2-zdaz.Zd(), zdaz.Az()) * kDeg2Rad; 22 24 fRaDec = CalcRaDec(fAltAz); 23 25 } … … 25 27 void SlaStars::Set(const RaDec &radec) 26 28 { 27 fRaDec = radec * D2PI/360.0;29 fRaDec = radec * kDeg2Rad; 28 30 fAltAz = CalcAltAz(fRaDec); 29 31 } … … 47 49 RaDec SlaStars::CalcRaDec(const AltAz &altaz) const 48 50 { 49 return CalcRaDec(ZdAz( DPI/2-altaz.Alt(), altaz.Az()));51 return CalcRaDec(ZdAz(kPiDiv2-altaz.Alt(), altaz.Az())); 50 52 } 51 53 … … 105 107 { 106 108 ZdAz zdaz = CalcZdAz(radec); 107 return AltAz( DPI/2-zdaz.Zd(), zdaz.Az());109 return AltAz(kPiDiv2-zdaz.Zd(), zdaz.Az()); 108 110 } 109 111 -
trunk/MagicSoft/Cosy/catalog/SlaStars.h
r920 r1109 3 3 4 4 #include "Slalib.h" 5 6 #include "coord.h" 5 7 6 8 class SlaStars : public Slalib … … 34 36 AltAz CalcAltAz(const RaDec &radec) const; 35 37 ZdAz CalcZdAz (const RaDec &radec) const; 38 39 ClassDef(SlaStars, 0) 36 40 }; 37 41 -
trunk/MagicSoft/Cosy/catalog/Slalib.cc
r921 r1109 4 4 #include <iostream.h> // cout 5 5 6 #include "coord.h" 7 6 8 #include "slalib.h" 9 10 ClassImp(Slalib); 7 11 8 12 Slalib::Slalib() : Timer() … … 17 21 slaDaf2r( 9, 56, 36.0, &fElong, &status); 18 22 19 cout << "Latitude: 51\x9c 38'48.0\" = " << 360.0/D2PI*fPhi << " ";20 cout << "Longitude: 9\x9c 56'36.0\" = " << 360.0/D2PI*fElong << endl;23 cout << "Latitude: 51\x9c 38'48.0\" = " << kRad2Deg*fPhi << " "; 24 cout << "Longitude: 9\x9c 56'36.0\" = " << kRad2Deg*fElong << endl; 21 25 } 22 26 … … 64 68 slaDe2h(ha, dec, fPhi, &az, &alt); 65 69 66 return ZdAz( DPI/2-alt, az);70 return ZdAz(kPiDiv2-alt, az); 67 71 } -
trunk/MagicSoft/Cosy/catalog/Slalib.h
r912 r1109 1 1 #ifndef SLALIB_H 2 2 #define SLALIB_H 3 4 #include <TROOT.h> 3 5 4 6 #include "coord.h" … … 34 36 35 37 ZdAz XYZ2ZdAz(double coord[3]) const; 38 39 ClassDef(Slalib, 0) 36 40 }; 37 41 -
trunk/MagicSoft/Cosy/catalog/StarCatalog.cc
r912 r1109 9 9 #include "slamac.h" 10 10 #include "File.h" 11 12 ClassImp(StarCatalog); 11 13 12 14 StarCatalog::StarCatalog() : SlaStars(), fEntries(0)
Note:
See TracChangeset
for help on using the changeset viewer.