Index: trunk/MagicSoft/Mars/Changelog
===================================================================
--- trunk/MagicSoft/Mars/Changelog	(revision 5795)
+++ trunk/MagicSoft/Mars/Changelog	(revision 5796)
@@ -20,4 +20,25 @@
 
                                                  -*-*- END OF LINE -*-*-
+ 2005/01/10 Benjamin Riegel
+ 
+   * mreport/MReportStarguider.cc, mreport/MReportStarguider.h
+     - added two classes for implementing starguider-data 
+ 
+   * mreport/ReportLinkDef.h
+     - added class MReportStarguider to be linked:
+       #pragma link C++ class MReportStarguider+;
+     
+   * mreport/Makefile
+     - added file MReportStarguider.cc
+   
+   * merpp.cc
+     - added two containers ( MReportStarguider, MTimeStarguider ) and
+       added MReportStarguider to the list:
+       w->AddContainer("MReportStarguider",  "Starguider");
+       w->AddContainer("MTimeStarguider",    "Starguider");
+       r->AddToList("MReportStarguider");
+       
+       
+       
  2005/01/10 Markus Gaug
 
Index: trunk/MagicSoft/Mars/NEWS
===================================================================
--- trunk/MagicSoft/Mars/NEWS	(revision 5795)
+++ trunk/MagicSoft/Mars/NEWS	(revision 5796)
@@ -2,4 +2,13 @@
  *** Version <cvs>
 
+   - added two classes mreport/MReportStarguider.cc and 
+     mreport/MReportStarguider.h for implementing starguider-data
+     
+   - For implementing the starguider-data the class MReportStarguider has 
+     been added to mreport/ReportLinkDef.h and to mreport/Makefile
+     
+   - added two containers ( MReportStarguider, MTimeStarguider ) and
+     added MReportStarguider to the list in merpp.cc
+   
    - Fixed bug in MHHadronness.cc which made that the displayed Q-factor 
      values were lower than they should. This was more visible for high
Index: trunk/MagicSoft/Mars/merpp.cc
===================================================================
--- trunk/MagicSoft/Mars/merpp.cc	(revision 5795)
+++ trunk/MagicSoft/Mars/merpp.cc	(revision 5796)
@@ -339,4 +339,6 @@
             w->AddContainer("MReportCC",          "CC");
             w->AddContainer("MTimeCC",            "CC");
+            w->AddContainer("MReportStarguider",  "Starguider");
+            w->AddContainer("MTimeStarguider",    "Starguider");
             // w->AddContainer("MReportDAQ",         "DAQ");
             // w->AddContainer("MTimeDAQ",           "DAQ");
@@ -360,4 +362,5 @@
             r->AddToList("MReportCamera");
             r->AddToList("MReportTrigger");
+            r->AddToList("MReportStarguider");
             if (kRunNumber>0)
             {
Index: trunk/MagicSoft/Mars/mreport/MReportStarguider.cc
===================================================================
--- trunk/MagicSoft/Mars/mreport/MReportStarguider.cc	(revision 5796)
+++ trunk/MagicSoft/Mars/mreport/MReportStarguider.cc	(revision 5796)
@@ -0,0 +1,86 @@
+/* ======================================================================== *\
+!
+! *
+! * This file is part of MARS, the MAGIC Analysis and Reconstruction
+! * Software. It is distributed to you in the hope that it can be a useful
+! * and timesaving tool in analysing Data of imaging Cerenkov telescopes.
+! * It is distributed WITHOUT ANY WARRANTY.
+! *
+! * Permission to use, copy, modify and distribute this software and its
+! * documentation for any purpose is hereby granted without fee,
+! * provided that the above copyright notice appear in all copies and
+! * that both that copyright notice and this permission notice appear
+! * in supporting documentation. It is provided "as is" without express
+! * or implied warranty.
+! *
+!
+!
+!   Author(s): Thomas Bretz, 11/2003 <mailto:tbretz@astro.uni-wuerzburg.de>
+!              Benjamin Riegel, 01/2005 <mailto:riegel@astro.uni-wuerzburg.de>
+!
+!   Copyright: MAGIC Software Development, 2000-2005
+!
+!
+\* ======================================================================== */
+
+//////////////////////////////////////////////////////////////////////////////
+//
+//  MReportStarguider
+//
+// This is the class interpreting and storing the STARG-REPORT information.
+//
+// This is the place to get the azimuth-/zenith mispointing of the telescope
+// given by the starguider-camera.
+//
+//
+//
+// Double_t fDevAz;          // [deg]   azimuth mispointing
+// Double_t fDevZd;          // [deg]   zenith  mispointing
+//
+//
+//////////////////////////////////////////////////////////////////////////////
+#include "MReportStarguider.h"
+
+#include "MLogManip.h"
+
+ClassImp(MReportStarguider);
+
+using namespace std;
+
+// --------------------------------------------------------------------------
+//
+// Default constructor. Initialize identifier to "STARG-REPORT"
+//
+MReportStarguider::MReportStarguider() : MReport("STARG-REPORT"),
+    fDevAz(0), fDevZd(0)
+{
+    fName  = "MReportStarguider";
+    fTitle = "Class for STARG-REPORT information (telescope mispointing)";
+}
+
+// --------------------------------------------------------------------------
+//
+// Interprete the body of the STARG-REPORT string
+//
+Int_t MReportStarguider::InterpreteBody(TString &str, Int_t ver)
+{
+    Int_t len;
+    Int_t n=sscanf(str.Data(), "%lf %lf %n", &fDevAz, &fDevZd, &len);
+    if (n!=2)
+    {
+        *fLog << warn << "WARNING - Not enough arguments." << endl;
+        return kCONTINUE;
+    }
+
+    str.Remove(0, len);
+
+     str = str.Strip(TString::kBoth);
+
+    return str.IsNull() ? kTRUE : kCONTINUE;
+}
+
+
+void MReportStarguider::Print(Option_t *o) const
+{
+    *fLog << GetDescriptor() << ": DevZd=" << fDevZd << " DevAz=" << fDevAz << endl;
+}
Index: trunk/MagicSoft/Mars/mreport/MReportStarguider.h
===================================================================
--- trunk/MagicSoft/Mars/mreport/MReportStarguider.h	(revision 5796)
+++ trunk/MagicSoft/Mars/mreport/MReportStarguider.h	(revision 5796)
@@ -0,0 +1,27 @@
+#ifndef MARS_MReportStarguider
+#define MARS_MReportStarguider
+
+#ifndef MARS_MReport
+#include "MReport.h"
+#endif
+
+class MReportStarguider : public MReport
+{
+private:
+    Double_t fDevAz;  // [deg]   azimuth mispointing
+    Double_t fDevZd;  // [deg]   zenith  mispointing
+
+    Int_t InterpreteBody(TString &str, Int_t ver);
+
+public:
+    MReportStarguider();
+
+    Double_t GetDevAz() const { return fDevAz; }
+    Double_t GetDevZd() const { return fDevZd; }
+
+    void Print(Option_t *o="") const;
+
+    ClassDef(MReportStarguider, 1) // Class for STARG-REPORT information
+};
+
+#endif
Index: trunk/MagicSoft/Mars/mreport/Makefile
===================================================================
--- trunk/MagicSoft/Mars/mreport/Makefile	(revision 5795)
+++ trunk/MagicSoft/Mars/mreport/Makefile	(revision 5796)
@@ -32,6 +32,6 @@
            MReportCurrents.cc \
            MReportFileRead.cc \
-           MReportFileReadCC.cc
-
+           MReportFileReadCC.cc \
+           MReportStarguider.cc
 ############################################################
 
Index: trunk/MagicSoft/Mars/mreport/ReportLinkDef.h
===================================================================
--- trunk/MagicSoft/Mars/mreport/ReportLinkDef.h	(revision 5795)
+++ trunk/MagicSoft/Mars/mreport/ReportLinkDef.h	(revision 5796)
@@ -11,4 +11,5 @@
 #pragma link C++ class MReportDAQ+;
 #pragma link C++ class MReportDrive+;
+#pragma link C++ class MReportStarguider+;
 #pragma link C++ class MReportCamera+;
 #pragma link C++ class MReportTrigger+;
