Index: trunk/Mars/msimreflector/MSimRays.cc
===================================================================
--- trunk/Mars/msimreflector/MSimRays.cc	(revision 19598)
+++ trunk/Mars/msimreflector/MSimRays.cc	(revision 19599)
@@ -70,5 +70,5 @@
 MSimRays::MSimRays(const char* name, const char *title)
     : fEvt(0), fReflector(0), fPointPos(0), fSource(0),
-    fNumPhotons(1000), fHeight(-1),
+    fNumPhotons(1000), fHeight(-1), fWavelengthMin(-1), fWavelengthMax(-1),
     fNameReflector("MReflector"), fNamePointPos("MPointingPos"),
     fNameSource("Source")
@@ -209,4 +209,7 @@
         dat.SetDirection(w);
 
+        if (fWavelengthMin>0 && fWavelengthMax>0)
+            dat.SimWavelength(fWavelengthMin, fWavelengthMax);
+
         idx++;
     }
Index: trunk/Mars/msimreflector/MSimRays.h
===================================================================
--- trunk/Mars/msimreflector/MSimRays.h	(revision 19598)
+++ trunk/Mars/msimreflector/MSimRays.h	(revision 19599)
@@ -25,4 +25,7 @@
     Double_t fHeight;           //[km] Height of point source (<=0 means infinity)
 
+    Double_t fWavelengthMin;
+    Double_t fWavelengthMax;
+
     TString fNameReflector;
     TString fNamePointPos;
@@ -46,4 +49,6 @@
     void SetNumPhotons(UInt_t n)  { fNumPhotons=n; }
 
+    void SetWavelengthRange(Double_t min, Double_t max) { fWavelengthMin = min; fWavelengthMax = max; }
+
     // MSimRays
     ClassDef(MSimRays, 0) // Task to simulate a source for rays
