Ignore:
Timestamp:
12/12/01 13:09:24 (23 years ago)
Author:
tbretz
Message:
*** empty log message ***
Location:
trunk/MagicSoft/Cosy/catalog
Files:
12 edited

Legend:

Unmodified
Added
Removed
  • trunk/MagicSoft/Cosy/catalog/CatalogIncl.h

    r920 r1109  
    1 #ifndef __CINT__
     1#ifdef __CINT__
    22
    33#endif // __CINT__
  • trunk/MagicSoft/Cosy/catalog/CatalogLinkDef.h

    r920 r1109  
    55#pragma link off all functions;
    66
     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
    714#endif
  • trunk/MagicSoft/Cosy/catalog/Makefile

    r912 r1109  
    2424# @code
    2525
    26 CINT     = Catalog
    27 LIB      = catalog.a
     26CINT = Catalog
     27LIB  = catalog.a
    2828
    2929#------------------------------------------------------------------------------
     
    3737           StarCatalog.cc
    3838
    39 SRCS    = $(SRCFILES)
    40 HEADERS = $(SRCFILES:.cc=.h)
    41 OBJS    = $(SRCFILES:.cc=.o)
     39SRCS        = $(SRCFILES)
     40HEADERS     = $(SRCFILES:.cc=.h)
     41OBJS        = $(SRCFILES:.cc=.o)
     42CINTHEADERS = $(HEADERS)
    4243
    4344############################################################
  • trunk/MagicSoft/Cosy/catalog/SaoFile.cc

    r748 r1109  
    1010#define FALSE 0
    1111#define TRUE  1
     12
     13ClassImp(SaoFile);
    1214
    1315static int lt(sort_t *t1, sort_t *t2)
  • trunk/MagicSoft/Cosy/catalog/SaoFile.h

    r740 r1109  
    11#ifndef SAOFILE_H
    22#define SAOFILE_H
     3
     4#include <TROOT.h>
    35
    46#include "coord.h"
     
    4345public:
    4446    SaoFile(const char *name);
    45     ~SaoFile();
     47    virtual ~SaoFile();
    4648
    4749    void  Compress();
     
    7880
    7981    const char *String() const { return data; }
     82
     83    ClassDef(SaoFile, 0)
    8084};
    8185
  • trunk/MagicSoft/Cosy/catalog/SlaPlanets.cc

    r912 r1109  
    44
    55#include "slalib.h"
     6
     7ClassImp(SlaPlanets);
    68
    79SlaPlanets::SlaPlanets() : Slalib(), fDt(slaDt(2000.0)/60./60./24.)
  • trunk/MagicSoft/Cosy/catalog/SlaPlanets.h

    r912 r1109  
    2323{
    2424private:
    25     const double fDt;
     25    double fDt; // const: rootcint/TMemberInspector
    2626
    2727    ZdAz fZdAz[10];    // [rad]
     
    4444    ZdAz GetPlanetPos(ePlanets_t planet) const { return fZdAz[planet]; }
    4545
     46    ClassDef(SlaPlanets, 0)
     47
    4648};
    4749
  • trunk/MagicSoft/Cosy/catalog/SlaStars.cc

    r920 r1109  
    22
    33#include "slalib.h"
     4
     5ClassImp(SlaStars);
    46
    57SlaStars::SlaStars() : Slalib()
     
    1315void SlaStars::Set(const AltAz &altaz)
    1416{
    15     fAltAz = altaz * D2PI/360.0;
     17    fAltAz = altaz * kDeg2Rad;
    1618    fRaDec = CalcRaDec(fAltAz);
    1719}
     
    1921void SlaStars::Set(const ZdAz &zdaz)
    2022{
    21     fAltAz = AltAz(DPI/2-zdaz.Zd(), zdaz.Az()) * D2PI/360.0;
     23    fAltAz = AltAz(kPiDiv2-zdaz.Zd(), zdaz.Az()) * kDeg2Rad;
    2224    fRaDec = CalcRaDec(fAltAz);
    2325}
     
    2527void SlaStars::Set(const RaDec &radec)
    2628{
    27     fRaDec = radec * D2PI/360.0;
     29    fRaDec = radec * kDeg2Rad;
    2830    fAltAz = CalcAltAz(fRaDec);
    2931}
     
    4749RaDec SlaStars::CalcRaDec(const AltAz &altaz) const
    4850{
    49     return CalcRaDec(ZdAz(DPI/2-altaz.Alt(), altaz.Az()));
     51    return CalcRaDec(ZdAz(kPiDiv2-altaz.Alt(), altaz.Az()));
    5052}
    5153
     
    105107{
    106108    ZdAz zdaz = CalcZdAz(radec);
    107     return AltAz(DPI/2-zdaz.Zd(), zdaz.Az());
     109    return AltAz(kPiDiv2-zdaz.Zd(), zdaz.Az());
    108110}
    109111
  • trunk/MagicSoft/Cosy/catalog/SlaStars.h

    r920 r1109  
    33
    44#include "Slalib.h"
     5
     6#include "coord.h"
    57
    68class SlaStars : public Slalib
     
    3436    AltAz  CalcAltAz(const RaDec &radec) const;
    3537    ZdAz   CalcZdAz (const RaDec &radec) const;
     38
     39    ClassDef(SlaStars, 0)
    3640};
    3741
  • trunk/MagicSoft/Cosy/catalog/Slalib.cc

    r921 r1109  
    44#include <iostream.h>  // cout
    55
     6#include "coord.h"
     7
    68#include "slalib.h"
     9
     10ClassImp(Slalib);
    711
    812Slalib::Slalib() : Timer()
     
    1721    slaDaf2r( 9, 56, 36.0, &fElong, &status);
    1822
    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;
    2125}
    2226
     
    6468    slaDe2h(ha, dec, fPhi, &az, &alt);
    6569
    66     return ZdAz(DPI/2-alt, az);
     70    return ZdAz(kPiDiv2-alt, az);
    6771}
  • trunk/MagicSoft/Cosy/catalog/Slalib.h

    r912 r1109  
    11#ifndef SLALIB_H
    22#define SLALIB_H
     3
     4#include <TROOT.h>
    35
    46#include "coord.h"
     
    3436
    3537    ZdAz   XYZ2ZdAz(double coord[3]) const;
     38
     39    ClassDef(Slalib, 0)
    3640};
    3741
  • trunk/MagicSoft/Cosy/catalog/StarCatalog.cc

    r912 r1109  
    99#include "slamac.h"
    1010#include "File.h"
     11
     12ClassImp(StarCatalog);
    1113
    1214StarCatalog::StarCatalog() : SlaStars(), fEntries(0)
Note: See TracChangeset for help on using the changeset viewer.