Index: trunk/MagicSoft/Simulation/Detector/Reflector/reflector.cxx
===================================================================
--- trunk/MagicSoft/Simulation/Detector/Reflector/reflector.cxx	(revision 436)
+++ trunk/MagicSoft/Simulation/Detector/Reflector/reflector.cxx	(revision 437)
@@ -20,7 +20,7 @@
 //
 // $RCSfile: reflector.cxx,v $
-// $Revision: 1.10 $
-// $Author: harald $ 
-// $Date: 2000-01-31 20:53:57 $
+// $Revision: 1.11 $
+// $Author: magicsol $ 
+// $Date: 2000-10-24 14:30:07 $
 //
 ////////////////////////////////////////////////////////////////////////
@@ -1528,5 +1528,5 @@
         
         // read photon data from the file
-        
+
         photon.read( cerfile );
 
@@ -1584,4 +1584,9 @@
         // FILTER No. 2: REFLECTIVITY R(lambda)
         //--
+
+	// If photon has a larger wl than the largest in Reflectivity
+	// array then it is skiped.
+
+	if (wl>Reflectivity[0][nReflectivity-1]) continue;
 
         // find data point to be used in Lagrange interpolation (-> k)
@@ -2077,5 +2082,5 @@
           cout.write ( (char *)&cphoton, cphoton.mysize() );
         else
-          cphoton.write( outputfile );
+	  cphoton.write( outputfile );
 
         // increase number of Cphotons written
@@ -3563,4 +3568,15 @@
 //
 // $Log: not supported by cvs2svn $
+// Revision 1.10  2000/01/31 20:53:57  harald
+// A smaller change concerning the random pointing. I got from Jose Carlos
+// the information:
+//
+// >>The point was that the get_new_ct_pointing routine now generates
+// >>the right coordinates randomly from the original direction with
+// >>a maximum deviatiation given by the user, but this new directions
+// >>were not uniformly distributed. Now they are !!
+//
+// need to be check soon!!
+//
 // Revision 1.9  2000/01/28 09:19:54  harald
 // A new version from JoseCarlosGonzalez. The old routine for random_pointing
