Index: trunk/MagicSoft/Mars/Changelog
===================================================================
--- trunk/MagicSoft/Mars/Changelog	(revision 9419)
+++ trunk/MagicSoft/Mars/Changelog	(revision 9420)
@@ -18,16 +18,16 @@
 
                                                  -*-*- END OF LINE -*-*-
- 2009/04/02 Thomas Bretz
+ 2009/04/01 Thomas Bretz
 
    * Makefile.conf.linux:
      - removed accidental '-g'
-
-
-
- 2009/04/01 Thomas Bretz
 
    * Makefile.conf.linux:
      - removed -Wconversion (produces too much output on newer
        compilers)
+
+   * ceres.rc, mjobs/MJSimulation.cc:
+     - added a cut "Cut" after image parameter calculation
+     - updated noise numbers
 
 
Index: trunk/MagicSoft/Mars/NEWS
===================================================================
--- trunk/MagicSoft/Mars/NEWS	(revision 9419)
+++ trunk/MagicSoft/Mars/NEWS	(revision 9420)
@@ -13,4 +13,12 @@
      canvases) found in the file are drawn. Note that this may result
      in empty tabs.
+
+ ;ceres:
+
+   * The night sky noise is now scaled with the sensitive area and
+     is given in units per square centimeter
+
+   * Added the possibility to add a cut after the image parameter
+     calculation (''Cut'')
 
  ;callisto:
@@ -36,6 +44,6 @@
  ;REMARK
 
-   * File produced with this release containing a gamera geometry (which 
-     are basically all files we produce per default) will not be readable
+   * File produced with this release containing a camera geometry (which 
+     are basically all files were produced as default) will not be readable
      by older releases.
 
Index: trunk/MagicSoft/Mars/ceres.rc
===================================================================
--- trunk/MagicSoft/Mars/ceres.rc	(revision 9419)
+++ trunk/MagicSoft/Mars/ceres.rc	(revision 9420)
@@ -130,4 +130,5 @@
 #MSimAPD.NameGeomCam:
 
+
 # -------------------------------------------------------------------------
 # Setup the absorption, conversion efficiency and angular acceptance
@@ -144,4 +145,16 @@
 #MSimReflector.DetectorMargin: 0
 
+
+# -------------------------------------------------------------------------
+# Setup the dark counts (FrequencyFixed) and the NSB noise per cm^2
+# -------------------------------------------------------------------------
+# Dark Counts per APD: ~4MHz
+MSimRandomPhotons.FrequencyFixed: 0.004
+# NSB photon rate per cm^2 ~40MHz (folded with the cones' angular
+# acceptance and the wavelength acceptance of the camera (window, apd, etc)
+MSimRandomPhotons.FrequencyNSB:   0.040
+
+# FIXME: With a class describing the cones we could give NSB as
+# per sr and cm^2
 
 # -------------------------------------------------------------------------
@@ -221,2 +234,8 @@
 #MImgCleanStd.CleanLevel1:   6.0
 #MImgCleanStd.CleanLevel2:   6.0
+
+# -------------------------------------------------------------------------
+# This is a cut executed after the calculation of the image parameters
+# -------------------------------------------------------------------------
+#Cut.Inverted: Yes
+#Cut.Condition: MNewImagePar.fNumUsedPixels>4 && MHillas.fSize>30
Index: trunk/MagicSoft/Mars/mjobs/MJSimulation.cc
===================================================================
--- trunk/MagicSoft/Mars/mjobs/MJSimulation.cc	(revision 9419)
+++ trunk/MagicSoft/Mars/mjobs/MJSimulation.cc	(revision 9420)
@@ -499,10 +499,8 @@
     // DWARF: 14MHz-25Mhz / APD
 
-
     // FIXME: Simulate photons before cones and QE!
 
     MSimRandomPhotons  simnsb;
-//    simnsb.SetFreq(0.005, 0.004);    // 5MHz/cm^2, 4MHz
-    simnsb.SetFreq(0, 0.04);           // 40MHz fixed for each APD
+    simnsb.SetFreq(0.0015, 0.04);  // 1.5MHz dark count rate, 40MHZ/cm^2 NSB
     simnsb.SetNameGeomCam("GeomCones");
 
@@ -511,5 +509,5 @@
 
     MSimAPD simapd;
-    simapd.SetFreq(0.04); // Must be identical to MSimRanodmPhotons!!
+    //simapd.SetFreq(0.04); // Must be identical to MSimRandomPhotons!!
     simapd.SetNameGeomCam("GeomCones");
 
@@ -550,4 +548,6 @@
     evt0a.SetErrorSpread(kFALSE);
     evt0c.SetCollectMax();
+
+    MContinue cut("", "Cut");
 
     MFillH fillx0a(&evt0a,             "MSignalCam",      "FillAvgSignal");
@@ -664,4 +664,5 @@
             tasks.AddToList(&clean);
         tasks.AddToList(&hcalc);
+        tasks.AddToList(&cut);
         tasks.AddToList(&fillx0d);
         tasks.AddToList(&fillx1);
