Index: /trunk/MagicSoft/Mars/Changelog
===================================================================
--- /trunk/MagicSoft/Mars/Changelog	(revision 6288)
+++ /trunk/MagicSoft/Mars/Changelog	(revision 6289)
@@ -20,4 +20,14 @@
 
                                                  -*-*- END OF LINE -*-*-
+
+ 2005/02/08 Thomas Bretz
+
+   * mpointing/MPointingPosInterpolate.cc:
+     - use debug option in addition to switch off output from internal
+       eventloop. It is confusing having this output inside another
+       eventloop.
+     - updated missing connections in class description
+
+
 
  2005/02/07 Thomas Bretz
Index: /trunk/MagicSoft/Mars/mpointing/MPointingPosInterpolate.cc
===================================================================
--- /trunk/MagicSoft/Mars/mpointing/MPointingPosInterpolate.cc	(revision 6288)
+++ /trunk/MagicSoft/Mars/mpointing/MPointingPosInterpolate.cc	(revision 6289)
@@ -32,8 +32,11 @@
 // 
 //  Input Containers:
-//   MRawEvtData
+//    MRawEvtData
+//    MReportDrive
+//    MTimeDrive
+//    MTime
 //
 //  Output Containers:
-//   MPointingPos
+//    MPointingPos
 //
 //
@@ -104,6 +107,8 @@
 {
 
-    *fLog << endl << "["<< GetName() 
-	  << "]: Loading report file \"" << fFilename << "\" into TSpline..." << endl;
+    *fLog << inf << "Loading report file \"" << fFilename << "\" into TSpline..." << endl;
+
+    if (!fDebug)
+        gLog.SetNullOutput();
 
     //
@@ -136,5 +141,8 @@
 
     if (!evtloop.PreProcess())
+    {
+        gLog.SetNullOutput(kFALSE);
         return kFALSE;
+    }
 
     TArrayD reportTime(fNumStartEvents);
@@ -172,5 +180,5 @@
 	{ 
 	    *fLog << warn <<"["<< GetName() 
-		 << "]: Warning: this report has the same time that the previous one...skipping it " << endl;
+                << "]: Warning: this report has the same time that the previous one...skipping it " << endl;
 	    continue;
 	}
@@ -194,6 +202,8 @@
     tlist.PrintStatistics();
 
-    *fLog << "["<< GetName() << "]: loaded " << n-1 << " ReportDrive from " 
-	  << fFirstDriveTime << " to " << fLastDriveTime << endl << endl;
+    gLog.SetNullOutput(kFALSE);
+
+    *fLog << inf << GetDescriptor() << ": loaded " << n-1 << " ReportDrive from "
+	  << fFirstDriveTime << " to " << fLastDriveTime << endl;
 
     if (fDebug)
@@ -222,4 +232,5 @@
         c->SaveAs("pointing.root");
     }
+
     return kTRUE;
 }
@@ -278,18 +289,16 @@
 
     //const Int_t run = fRunHeader->GetRunNumber();
-  const MTime* StartRunTime = &fRunHeader->GetRunStart();
-  Int_t time = StartRunTime->GetTime();
+  const MTime &StartRunTime = fRunHeader->GetRunStart();
+  Int_t time = StartRunTime.GetTime();
 
    switch(fTimeMode)
     {
      case kRunTime:
-         time = StartRunTime->GetTime();
-
          //
          // Check that we have drive report for this time
          //
-         if( *StartRunTime<fFirstDriveTime || *StartRunTime>fLastDriveTime)
+         if( StartRunTime<fFirstDriveTime || StartRunTime>fLastDriveTime)
          {
-             *fLog << err << GetDescriptor() << ": Run time " << *StartRunTime
+             *fLog << err << GetDescriptor() << ": Run time " << StartRunTime
                    << " outside range of drive reports  (" << fFirstDriveTime
                    << ", " << fLastDriveTime << ")" << endl;
@@ -301,9 +310,7 @@
 		   << fSplineZd->Eval( time )<< ", "  <<fSplineAz->Eval( time )<< ")" << endl;
          }
-    break;
+         break;
 
     case kEventTime:
-        time = fEvtTime->GetTime();
-
 	if (fDebug)
 	  {
@@ -333,5 +340,5 @@
 	      }
         }
-    break;
+        break;
     }
 
@@ -340,7 +347,7 @@
     //
     //if( *StartRunTime<fFirstDriveTime || *StartRunTime>fLastDriveTime)
-    if( *StartRunTime>fLastDriveTime)
-    {
-	*fLog << err << GetDescriptor() << ": Run time " << *StartRunTime
+    if( StartRunTime>fLastDriveTime)
+    {
+	*fLog << err << GetDescriptor() << ": Run time " << StartRunTime
 	      << " outside range of drive reports  (" << fFirstDriveTime 
 	      << ", " << fLastDriveTime << ")" << endl;
