Index: /trunk/Mars/Changelog
===================================================================
--- /trunk/Mars/Changelog	(revision 10053)
+++ /trunk/Mars/Changelog	(revision 10054)
@@ -23,4 +23,8 @@
    * Makefile.rules:
      - use -C option of make instead of cd
+
+   * msimreflector/MSimRays.cc:
+     - added some comments
+     - fixed timing for a point source
 
 
Index: /trunk/Mars/msimreflector/MSimRays.cc
===================================================================
--- /trunk/Mars/msimreflector/MSimRays.cc	(revision 10053)
+++ /trunk/Mars/msimreflector/MSimRays.cc	(revision 10054)
@@ -164,4 +164,5 @@
         MPhotonData &dat = *static_cast<MPhotonData*>(arr.UncheckedAt(idx));
 
+        // Get radom incident point on the mirror plane.
         const Double_t x = gRandom->Uniform(-maxr, maxr);
         const Double_t y = gRandom->Uniform(-maxr, maxr);
@@ -170,4 +171,5 @@
             continue;
 
+        // The is the incident direction of the photon
         // h==0 means infinitiy
         const TVector3 u = fHeight>0 ? TVector3(x, y, -h).Unit() :  TVector3(0, 0, -1);
@@ -176,5 +178,5 @@
         // CORSIKA-orig: x(north), y(west),  z(up), t(time)
         // NOW:          x(east),  y(north), z(up), t(time)
-        MQuaternion p(TVector3(x, y, 0));
+        MQuaternion p(TVector3(x, y, 0), fHeight>0 ? TMath::Sqrt(x*x + y*y + h*h): 0);
         MQuaternion w(u, conv);
 
