Index: trunk/MagicSoft/Simulation/Detector/Camera/camera.cxx
===================================================================
--- trunk/MagicSoft/Simulation/Detector/Camera/camera.cxx	(revision 5269)
+++ trunk/MagicSoft/Simulation/Detector/Camera/camera.cxx	(revision 5273)
@@ -21,7 +21,7 @@
 //
 // $RCSfile: camera.cxx,v $
-// $Revision: 1.74 $
+// $Revision: 1.75 $
 // $Author: moralejo $ 
-// $Date: 2004-10-13 17:05:05 $
+// $Date: 2004-10-14 12:55:02 $
 //
 ////////////////////////////////////////////////////////////////////////
@@ -4005,4 +4005,5 @@
   static char flag[SIZE_OF_FLAGS + 1];
   static float radius_mm;
+  static UInt_t seed = (UInt_t)(get_seeds(0)*get_seeds(1));
 
   Float_t t;
@@ -4020,5 +4021,5 @@
 
   TRandom random;
-  random.SetSeed((Int_t)(get_seeds(0)*get_seeds(1)));
+  random.SetSeed(seed);
 
   float C1, C2, C3, rho;
@@ -4200,4 +4201,6 @@
     *itotnphe += 1;
   }
+
+  seed = random.GetSeed(); // Get seed for next call
 	  
   return(0);
@@ -4599,5 +4602,5 @@
 	  // use the option trigger_delay in the input card instead.
 
-	  Fadc_CT[ict]->TriggeredFadc(3.);
+	  Fadc_CT[ict]->TriggeredFadc(13.);
 
 	  //
@@ -4670,4 +4673,5 @@
   float radius_mm, focal_dist_mm;
   int total_photons;
+  static UInt_t seed = (UInt_t)(get_seeds(0)*get_seeds(1));
 
   // reset variables
@@ -4680,5 +4684,5 @@
 
   TRandom random;
-  random.SetSeed((Int_t)(get_seeds(0)*get_seeds(1)));
+  random.SetSeed(seed);
 
   //
@@ -4711,7 +4715,6 @@
 
       // time
-      time = random.Gaus(4.*sigma_time, sigma_time);
-
-      cout << "### " << time << endl << endl;
+      //      time = random.Gaus(0., sigma_time);
+      time = 10.;
 
       // wavelength
@@ -4840,5 +4843,7 @@
       *itotnphe += 1;
     }
-  cout << "$$" << endl;
+
+  seed = random.GetSeed(); // Get seed for next call
+
   return(0);
 
@@ -4855,4 +4860,7 @@
 //
 // $Log: not supported by cvs2svn $
+// Revision 1.74  2004/10/13 17:05:05  moralejo
+// *** empty log message ***
+//
 // Revision 1.72  2004/10/12 13:39:34  moralejo
 //
