Index: trunk/MagicSoft/Simulation/Detector/Camera/creadparam.cxx
===================================================================
--- trunk/MagicSoft/Simulation/Detector/Camera/creadparam.cxx	(revision 1695)
+++ trunk/MagicSoft/Simulation/Detector/Camera/creadparam.cxx	(revision 1704)
@@ -19,7 +19,7 @@
 //=
 //= $RCSfile: creadparam.cxx,v $
-//= $Revision: 1.17 $
+//= $Revision: 1.18 $
 //= $Author: blanch $ 
-//= $Date: 2002-07-16 16:20:41 $
+//= $Date: 2003-01-14 13:37:47 $
 //=
 //=//////////////////////////////////////////////////////////////////////
@@ -87,4 +87,6 @@
 static float qThreshold[CAMERA_PIXELS];     //@< Threshold values
 static int Individual_Thres = FALSE;
+static float RiseDisc = -1.0;
+static float SecureDisc = 7.0;
 static float qTailCut;          //@< Tail Cut value
 static int nIslandsCut;         //@< Islands Cut value
@@ -159,5 +161,5 @@
   char token[ITEM_MAX_LENGTH];   //@< a single token
   int i, j, k;                      //@< dummy counters
-  float aux;                    //@< auxiliar variable
+  float aux, aux2;                    //@< auxiliar variable
   ifstream ifile;
 
@@ -336,4 +338,13 @@
       break;
 
+    case secure_disc:           //@< value of secure threshold 
+          
+      // get value of secure threshold (in ph.e.)
+      sscanf(line, "%s %f %f", token,&aux, &aux2);
+      RiseDisc=aux;
+      SecureDisc=aux2;
+
+      break;
+
     case tail_cut:            //@< value of tail_cut (t0)
           
@@ -821,4 +832,23 @@
 //!@}
 
+//!-----------------------------------------------------------
+// @name get_secure_threhold
+//                                                
+// @desc get values for secure threshold.
+//
+// @return  AC (ac)value above which discriminator threshold rised to disc
+//
+// @date Wed Jul 18 16:29:43 CEST 2001
+//------------------------------------------------------------
+// @function 
+
+//!@{
+void 
+get_secure_threhold(float *ac, float *disc)
+{
+  *ac=RiseDisc;
+  *disc=SecureDisc;
+}
+//!@}
 
 //!-----------------------------------------------------------
@@ -1372,4 +1402,8 @@
 //
 // $Log: not supported by cvs2svn $
+// Revision 1.17  2002/07/16 16:20:41  blanch
+// Modifications done for the camera.cxx version, where a first implementation
+// of the Star Field Rotation has been introduced.
+//
 // Revision 1.16  2002/03/15 15:17:18  blanch
 // Several modification needed to simulate the actual trigger zone.
Index: trunk/MagicSoft/Simulation/Detector/Camera/creadparam.h
===================================================================
--- trunk/MagicSoft/Simulation/Detector/Camera/creadparam.h	(revision 1695)
+++ trunk/MagicSoft/Simulation/Detector/Camera/creadparam.h	(revision 1704)
@@ -19,7 +19,7 @@
 //=
 //= $RCSfile: creadparam.h,v $
-//= $Revision: 1.15 $
+//= $Revision: 1.16 $
 //= $Author: blanch $ 
-//= $Date: 2002-07-16 16:20:59 $
+//= $Date: 2003-01-14 13:37:32 $
 //=
 //=//////////////////////////////////////////////////////////////////////
@@ -164,4 +164,5 @@
 T(nsb_directory),   /* database for the NSB  */ \
 T(pixel_thres),     /* value of q0 for trigger for a given pixel */ \
+T(secure_disc),     /* Ac value to rise discrimnator threshold */ \
 T(tail_cut),        /* value of tail cut (t0) */ \
 T(islands_on),      /* DO count islands */ \
@@ -268,4 +269,5 @@
 void get_Trigger_Single(float *t, int *m, int *g);
 void get_threshold(float *t);
+void get_secure_threhold(float *ac, float *disc);
 int get_indi_thres_pixel(void);
 void get_teles_axis(float *th, float *p);
@@ -287,4 +289,8 @@
 /*
  * $Log: not supported by cvs2svn $
+ * Revision 1.15  2002/07/16 16:20:59  blanch
+ * Modifications done for the camera.cxx version, where a first implementation
+ * of the Star Field Rotation has been introduced.
+ *
  * Revision 1.14  2002/03/15 15:17:57  blanch
  * Header file for creadparam.cxx v 1.16
