Index: /trunk/MagicSoft/Mars/Changelog
===================================================================
--- /trunk/MagicSoft/Mars/Changelog	(revision 7564)
+++ /trunk/MagicSoft/Mars/Changelog	(revision 7565)
@@ -18,4 +18,14 @@
 
                                                  -*-*- END OF LINE -*-*-
+ 2006/03/03 Thomas Bretz
+
+   * mjobs/MJCut.cc:
+     - added RemoveFromList for srcposrndm in off-data loop
+
+   * mpointing/MSrcPosRndm.[h,cc]:
+     - fixed the scaling. MSrcPosCam has to be in mm
+
+
+
  2006/03/03 Daniel Hoehne
 
Index: /trunk/MagicSoft/Mars/mpointing/MSrcPosRndm.cc
===================================================================
--- /trunk/MagicSoft/Mars/mpointing/MSrcPosRndm.cc	(revision 7564)
+++ /trunk/MagicSoft/Mars/mpointing/MSrcPosRndm.cc	(revision 7565)
@@ -41,4 +41,5 @@
 #include "MParList.h"
 
+#include "MGeomCam.h"
 #include "MSrcPosCam.h"
 #include "MHSrcPosCam.h"
@@ -54,4 +55,11 @@
 Int_t MSrcPosRndm::PreProcess(MParList *plist)
 {
+    MGeomCam *geom = (MGeomCam*)plist->FindObject("MGeomCam");
+    if (!geom)
+    {
+        *fLog << err << "ERROR - MGeomCam not found... aborting." << endl;
+        return kFALSE;
+    }
+
     fSrcPos = (MSrcPosCam*)plist->FindCreateObj("MSrcPosCam");
     if (!fSrcPos)
@@ -66,4 +74,6 @@
 
     *fLog << inf << "MHSrcPosCam found... taken to produce a random distribution." << endl;
+
+    fConvMm2Deg = geom->GetConvMm2Deg();
 
     return kTRUE;
@@ -80,5 +90,5 @@
     fHist->GetHist().GetRandom2(x, y);
 
-    fSrcPos->SetXY(x, y);
+    fSrcPos->SetXY(x/fConvMm2Deg, y/fConvMm2Deg);
 
     return kTRUE;
Index: /trunk/MagicSoft/Mars/mpointing/MSrcPosRndm.h
===================================================================
--- /trunk/MagicSoft/Mars/mpointing/MSrcPosRndm.h	(revision 7564)
+++ /trunk/MagicSoft/Mars/mpointing/MSrcPosRndm.h	(revision 7565)
@@ -15,4 +15,6 @@
     MHSrcPosCam  *fHist;   //!
 
+    Double_t fConvMm2Deg;
+
     Int_t  PreProcess(MParList *plist);
     Int_t  Process();
