Index: trunk/Mars/msimreflector/MReflector.h
===================================================================
--- trunk/Mars/msimreflector/MReflector.h	(revision 19561)
+++ trunk/Mars/msimreflector/MReflector.h	(revision 19586)
@@ -50,5 +50,5 @@
     virtual Bool_t CanHit(const MQuaternion &p) const;
 
-    Int_t ExecuteOptics(MQuaternion &p, MQuaternion &u) const;
+    Int_t ExecuteOptics(MQuaternion &p, MQuaternion &u, const Short_t &wavelength) const;
 
     void SetSigmaPSF(Double_t psf);
Index: trunk/Mars/msimreflector/MSimReflector.cc
===================================================================
--- trunk/Mars/msimreflector/MSimReflector.cc	(revision 19561)
+++ trunk/Mars/msimreflector/MSimReflector.cc	(revision 19586)
@@ -370,5 +370,5 @@
 // calling the ExecuteMirror function of the mirrors.
 //
-// If a mirror was hit its index is retuened, -1 otherwise.
+// If a mirror was hit its index is returned, -1 otherwise.
 //
 // FIXME: Do to lopping over all mirrors for all photons this is the
@@ -377,5 +377,5 @@
 // this could be accelerated a lot.
 //
-Int_t MReflector::ExecuteOptics(MQuaternion &p, MQuaternion &u) const
+Int_t MReflector::ExecuteOptics(MQuaternion &p, MQuaternion &u, const Short_t &) const
 {
     //static const TObjArray *arr = &((MMirror*)fMirrors[0])->fNeighbors;
@@ -497,4 +497,6 @@
         // w.fVectorPart.SetXYZ(0.2/17, 0.2/17, -(1-TMath::Hypot(0.3, 0.2)/17));
 
+        // FIXME: Take refractive index into account!
+
         // Now propagate the photon to the z-plane in the new coordinate system
         p.PropagateZ0(w);
@@ -522,6 +524,8 @@
         //*static_cast<MPhotonData*>(cpy2.UncheckedAt(cnt[2]++)) = *dat;
 
+        // FIXME: Set refractive index to air at 2200m!
+
         // Now execute the reflection of the photon on the mirrors' surfaces
-        const Int_t num = fReflector->ExecuteOptics(p, w);
+        const Int_t num = fReflector->ExecuteOptics(p, w, dat->GetWavelength());
         if (num<0)
             continue;
