Index: trunk/MagicSoft/Simulation/Detector/Camera/creadparam.cxx
===================================================================
--- trunk/MagicSoft/Simulation/Detector/Camera/creadparam.cxx	(revision 389)
+++ trunk/MagicSoft/Simulation/Detector/Camera/creadparam.cxx	(revision 390)
@@ -19,7 +19,7 @@
 //=
 //= $RCSfile: creadparam.cxx,v $
-//= $Revision: 1.3 $
+//= $Revision: 1.4 $
 //= $Author: blanch $ 
-//= $Date: 2000-03-24 18:14:05 $
+//= $Date: 2000-05-11 14:22:33 $
 //=
 //=//////////////////////////////////////////////////////////////////////
@@ -101,4 +101,11 @@
 static int Trigger_Scan = FALSE;
 static int FADC_Scan = FALSE;
+static int Trigger_Loop = FALSE;
+static int Trigger_loop_lthres = 0;
+static int Trigger_loop_uthres = 10;
+static int Trigger_loop_lmult = 2;
+static int Trigger_loop_umult = 10;
+static int Trigger_loop_ltop = 0;
+static int Trigger_loop_utop = 2;
 //!@}
 
@@ -400,4 +407,14 @@
       break;
 
+    case trigger_loop:
+
+      //  Get loop's limits
+      sscanf(line, "%s %d %d %d %d %d %d", token, &Trigger_loop_lthres, &Trigger_loop_uthres, &Trigger_loop_lmult, &Trigger_loop_umult, &Trigger_loop_ltop, &Trigger_loop_utop );
+
+      // change boolean value
+      Trigger_Loop = TRUE;
+
+      break;
+
     case end_file:            //@< end of the parameters file
 
@@ -921,12 +938,12 @@
   return ( Apply_Correction );
 }
-
-//!@}
+//!@}
+
 //!-----------------------------------------------------------
 // @name FADC_Scan
 //                                                
-// @desc write the FADC_Scan class for each event to the .root file 
-//
-// @return  TRUE: we'll write it;  FALSE: we won't
+// @desc show the FADC signal for each event in the screen 
+//
+// @return  TRUE: we'll show it;  FALSE: we won't
 //
 //------------------------------------------------------------
@@ -940,11 +957,11 @@
 }
 //!@}
-//!@}
+
 //!-----------------------------------------------------------
 // @name Trigger_Scan
 //                                                
-// @desc write the Trigger_Scan class for each event to the .root file 
-//
-// @return  TRUE: we'll write it;  FALSE: we won't
+// @desc show the Trigger signal for each event in the screen 
+//
+// @return  TRUE: we'll show it;  FALSE: we won't
 //
 //------------------------------------------------------------
@@ -956,4 +973,28 @@
 {
   return ( Trigger_Scan );
+}
+//!@}
+
+//!-----------------------------------------------------------
+// @name Trigger_Loop
+//                                                
+// @desc make a loop over Trigger conditions 
+//
+// @return  TRUE: we'll make it;  FALSE: we won't
+//
+//------------------------------------------------------------
+// @function 
+
+//!@{
+int
+get_Trigger_Loop(int *lt, int *ut, int *lm, int *um, int *lg, int *ug)
+{
+  *lt=Trigger_loop_lthres;
+  *ut=Trigger_loop_uthres;
+  *lm=Trigger_loop_lmult;
+  *um=Trigger_loop_umult;
+  *lg=Trigger_loop_ltop;
+  *ug=Trigger_loop_utop;
+  return ( Trigger_Loop );
 }
 //!@}
@@ -966,4 +1007,7 @@
 //
 // $Log: not supported by cvs2svn $
+// Revision 1.3  2000/03/24 18:14:05  blanch
+// Parameters that tell as if we are going to see the diskriminator and/or FADC signal have been included.
+//
 // Revision 1.2  2000/02/18 17:45:43  petry
 // This version belongs to camera.cxx 1.5.
