Index: trunk/Mars/msimreflector/MSimRays.cc
===================================================================
--- trunk/Mars/msimreflector/MSimRays.cc	(revision 14150)
+++ trunk/Mars/msimreflector/MSimRays.cc	(revision 14153)
@@ -164,11 +164,22 @@
         MPhotonData &dat = *static_cast<MPhotonData*>(arr.UncheckedAt(idx));
 
+        Double_t x, y;
+        const Double_t r = gRandom->Uniform();
+        gRandom->Circle(x, y, maxr*TMath::Sqrt(r));
+/*
+        Double_t ra = gRandom->Uniform(maxr);
+        Double_t ph = gRandom->Uniform(TMath::TwoPi());
+
+
         // Get radom incident point on the mirror plane.
-        const Double_t x = gRandom->Uniform(-maxr, maxr);
-        const Double_t y = gRandom->Uniform(-maxr, maxr);
-
-        if (x*x + y*y > maxr*maxr)
-            continue;
-
+        //const Double_t x = gRandom->Uniform(-maxr, maxr);
+        //const Double_t y = gRandom->Uniform(-maxr, maxr);
+
+        Double_t x = ra*sin(ph);
+        Double_t y = ra*cos(ph);
+
+//        if (x*x + y*y > maxr*maxr)
+//            continue;
+  */
         // The is the incident direction of the photon
         // h==0 means infinitiy
