Index: trunk/MagicSoft/Simulation/Detector/include-MTrigger/MTrigger.cxx
===================================================================
--- trunk/MagicSoft/Simulation/Detector/include-MTrigger/MTrigger.cxx	(revision 907)
+++ trunk/MagicSoft/Simulation/Detector/include-MTrigger/MTrigger.cxx	(revision 908)
@@ -872,4 +872,31 @@
     }
   }
+}
+void MTrigger::SetFwhm(Float_t fwhm){
+  //===========================================================
+  //
+  //    It sets the fwhm for the single phe signal and
+  //    updates the sing_resp for it
+  
+  Float_t   sigma ; 
+  Float_t   x, x0 ; 
+  Int_t i;
+
+  fwhm_resp = fwhm;
+
+  sigma = fwhm_resp / 2.35 ; 
+  x0 = 3*sigma ; 
+  
+  for (i=0; i< RESPONSE_SLICES ; i++ ) {  
+
+    x = i * (1./((Float_t)SLICES_PER_NSEC)) 
+      + (1./( 2 * (Float_t)SLICES_PER_NSEC ))  ; 
+    
+    sing_resp[i] = 
+      ampl_resp * expf(-0.5 * (x-x0)*(x-x0) / (sigma*sigma) ) ; 
+  
+  }
+
+
 }
 
