Changeset 3568 for trunk/MagicSoft/Mars/mpointing
- Timestamp:
- 03/22/04 09:25:49 (21 years ago)
- Location:
- trunk/MagicSoft/Mars/mpointing
- Files:
-
- 4 added
- 3 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/MagicSoft/Mars/mpointing/MPointingPos.cc
r2601 r3568 18 18 ! Author(s): Thomas Bretz, 11/2003 <mailto:tbretz@astro.uni-wuerzburg.de> 19 19 ! 20 ! Copyright: MAGIC Software Development, 2000-200 320 ! Copyright: MAGIC Software Development, 2000-2004 21 21 ! 22 22 ! … … 27 27 // MPointingPos 28 28 // 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. 30 40 // 31 41 ///////////////////////////////////////////////////////////////////////////// 32 42 #include "MPointingPos.h" 33 43 44 #include "MTime.h" 45 #include "MObservatory.h" 46 #include "MAstroSky2Local.h" 47 34 48 ClassImp(MPointingPos); 35 49 36 50 using 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 // 60 Double_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 // 73 Double_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 5 5 #include "MParContainer.h" 6 6 #endif 7 8 class MTime; 9 class MObservatory; 7 10 8 11 class MPointingPos : public MParContainer … … 32 35 Double_t GetDec() const { return fDec; } 33 36 37 Double_t RotationAngle(const MObservatory &o) const; 38 Double_t RotationAngle(const MObservatory &o, const MTime &t) const; 39 34 40 ClassDef(MPointingPos, 1) //Container storing the (corrected) telescope pointing position 35 41 }; -
trunk/MagicSoft/Mars/mpointing/Makefile
r2800 r3568 22 22 # connect the include files defined in the config.mk file 23 23 # 24 INCLUDES = -I. -I../mbase -I../mraw -I../mreport -I../mmc 24 INCLUDES = -I. -I../mbase -I../mraw -I../mreport -I../mmc -I../mastro 25 25 26 26 #------------------------------------------------------------------------------
Note:
See TracChangeset
for help on using the changeset viewer.