Ignore:
Timestamp:
03/22/04 09:25:49 (21 years ago)
Author:
tbretz
Message:
*** empty log message ***
Location:
trunk/MagicSoft/Mars/mpointing
Files:
4 added
3 edited

Legend:

Unmodified
Added
Removed
  • trunk/MagicSoft/Mars/mpointing/MPointingPos.cc

    r2601 r3568  
    1818!   Author(s): Thomas Bretz, 11/2003 <mailto:tbretz@astro.uni-wuerzburg.de>
    1919!
    20 !   Copyright: MAGIC Software Development, 2000-2003
     20!   Copyright: MAGIC Software Development, 2000-2004
    2121!
    2222!
     
    2727// MPointingPos
    2828//
    29 // Store the current pointing position of the telescope...
     29// In this container we store the corrected pointing position of the
     30// telscope. The pointing coordinates are read into MReportDrive together
     31// with its time.
     32//
     33// MPointingPosCalc afterwards calculates corrections and checks for the
     34// cosistency of the coordinates. The result (the real coordinates)
     35// are stored in this container. No further correction should be necessary
     36// using MPointingPos.
     37//
     38// If you need the rotation angle of the starfield in the camera you can
     39// get it from here.
    3040//
    3141/////////////////////////////////////////////////////////////////////////////
    3242#include "MPointingPos.h"
    3343
     44#include "MTime.h"
     45#include "MObservatory.h"
     46#include "MAstroSky2Local.h"
     47
    3448ClassImp(MPointingPos);
    3549
    3650using namespace std;
     51
     52// --------------------------------------------------------------------------
     53//
     54// Get the corresponding rotation angle of the sky coordinate system
     55// seen with an Alt/Az telescope calculated from the stored local
     56// (Zd/Az) coordinates.
     57//
     58// For more information see MAstro::RotationAngle
     59//
     60Double_t MPointingPos::RotationAngle(const MObservatory &o) const
     61{
     62    return o.RotationAngle(fZd*TMath::DegToRad(), fAz*TMath::DegToRad());
     63}
     64
     65// --------------------------------------------------------------------------
     66//
     67// Get the corresponding rotation angle of the sky coordinate system
     68// seen with an Alt/Az telescope calculated from the stored sky
     69// (Ra/Dec) coordinates.
     70//
     71// For more information see MAstro::RotationAngle
     72//
     73Double_t MPointingPos::RotationAngle(const MObservatory &o, const MTime &t) const
     74{
     75    return MAstroSky2Local(t, o).RotationAngle(fRa*TMath::DegToRad()*15, fDec*TMath::DegToRad());
     76}
  • trunk/MagicSoft/Mars/mpointing/MPointingPos.h

    r3544 r3568  
    55#include "MParContainer.h"
    66#endif
     7
     8class MTime;
     9class MObservatory;
    710
    811class MPointingPos : public MParContainer
     
    3235    Double_t GetDec() const { return fDec; }
    3336
     37    Double_t RotationAngle(const MObservatory &o) const;
     38    Double_t RotationAngle(const MObservatory &o, const MTime &t) const;
     39
    3440    ClassDef(MPointingPos, 1) //Container storing the (corrected) telescope pointing position
    3541};
  • trunk/MagicSoft/Mars/mpointing/Makefile

    r2800 r3568  
    2222#  connect the include files defined in the config.mk file
    2323#
    24 INCLUDES = -I. -I../mbase -I../mraw -I../mreport -I../mmc
     24INCLUDES = -I. -I../mbase -I../mraw -I../mreport -I../mmc -I../mastro
    2525
    2626#------------------------------------------------------------------------------
Note: See TracChangeset for help on using the changeset viewer.