Index: trunk/Mars/msimcamera/MSimCamera.cc
===================================================================
--- trunk/Mars/msimcamera/MSimCamera.cc	(revision 17665)
+++ trunk/Mars/msimcamera/MSimCamera.cc	(revision 17666)
@@ -342,13 +342,13 @@
     for (int i=0 ; i<1440 ; i++)
     {
-        (*fTruePhotons->cherenkov_photons_weight)[idx] = 0;
-        (*fTruePhotons->cherenkov_photons_number)[idx] = 0;
-        (*fTruePhotons->cherenkov_arrival_time_mean)[idx] = ;
-        (*fTruePhotons->cherenkov_arrival_time_variance)[idx] = 0;
-        (*fTruePhotons->muon_cherenkov_photons_weight)[idx] = 0;
-        (*fTruePhotons->muon_cherenkov_photons_number)[idx] = 0;
-        (*fTruePhotons->cherenkov_arrival_time_min)[idx] = 10000;
-        (*fTruePhotons->cherenkov_arrival_time_max)[idx] = 0;
-        (*fTruePhotons->noise_photons_weight)[idx] = 0;
+        (*fTruePhotons->cherenkov_photons_weight)[i] = 0;
+        (*fTruePhotons->cherenkov_photons_number)[i] = 0;
+        (*fTruePhotons->cherenkov_arrival_time_mean)[i] = 0;
+        (*fTruePhotons->cherenkov_arrival_time_variance)[i] = 0;
+        (*fTruePhotons->muon_cherenkov_photons_weight)[i] = 0;
+        (*fTruePhotons->muon_cherenkov_photons_number)[i] = 0;
+        (*fTruePhotons->cherenkov_arrival_time_min)[i] = 10000;
+        (*fTruePhotons->cherenkov_arrival_time_max)[i] = 0;
+        (*fTruePhotons->noise_photons_weight)[i] = 0;
     }
 
