Index: /trunk/MagicSoft/Mars/Changelog
===================================================================
--- /trunk/MagicSoft/Mars/Changelog	(revision 9067)
+++ /trunk/MagicSoft/Mars/Changelog	(revision 9068)
@@ -19,4 +19,26 @@
                                                  -*-*- END OF LINE -*-*-
 
+ 2008/08/02 Thomas Bretz
+
+   * datacenter/scripts/dbchk:
+     - if the regular expression in sed doesn't find anything
+       nothing is replaced (this case is now handled)
+
+   * mjobs/MJPedestal.cc:
+     - removed the obsolete shift variable in PosePosCheck
+     - do not allow lo-gain starts < 0
+
+   * msignal/MExtractTimeAndCharge.cc:
+     - changed lo-gain stat sift to -1.0 (which is the valie which
+       in use anyway)
+
+   * msignal/MExtractTimeAndCharge.h:
+    - do not add the lo-gain offset wehen setting the start-shift
+
+   * msignal/MExtractor.cc:
+     - make sure Print() prints the class description 
+
+
+
  2008/08/01 Thomas Bretz
 
@@ -26,4 +48,17 @@
    * resources/starguider00328198.txt:
      - added
+
+   * datacenter/macros/plotdb.C:
+     - added fMedNumPheInner/outer
+     - added fRelChargeRmsOuter
+
+   * mbase/MStatusDisplay.[h,cc]:
+     - added %%title%% as a possibility in the filename
+     - added some code to write an XML instead of a csv file
+       (still not in-use)
+
+   * mjobs/MJCut.cc, mjobs/MJSpectrum.cc:
+     - replaced RunNumber by FileId
+
 
 
@@ -1140,5 +1175,5 @@
 
    * mbase/MStatusDisplay.cc:
-     - replacedMTime by TDatime
+     - replaced MTime by TDatime
 
    * mcamera/MCameraRecTemp.[h,cc], mcamera/MCameraTD.[h,cc],
Index: /trunk/MagicSoft/Mars/NEWS
===================================================================
--- /trunk/MagicSoft/Mars/NEWS	(revision 9067)
+++ /trunk/MagicSoft/Mars/NEWS	(revision 9068)
@@ -28,4 +28,8 @@
    * MReadTree can now read also files not written by MARS and store
      the data encapsulated in emulated MParContainers
+
+   * Added the median number of photo electrons from the calibration
+     pulses to the db (fMedNumPheInner, fMedNumPheOuter) and the relative
+     error of their raw counts (fRelChargeRmsInner, fRelChargeRmsOuter)
 
    * added a new starguider calibration valid since 15.1.08
Index: /trunk/MagicSoft/Mars/datacenter/scripts/dbchk
===================================================================
--- /trunk/MagicSoft/Mars/datacenter/scripts/dbchk	(revision 9067)
+++ /trunk/MagicSoft/Mars/datacenter/scripts/dbchk	(revision 9068)
@@ -89,5 +89,5 @@
 do
    sequence=`echo $file | sed -e "s/^.*\/sequence0\+\([0-9]\+\)\.txt$/\1/"`
-   if [ "$sequence" = "" ]
+   if [ "$sequence" = "" ] || [ "$sequence" = "$file" ]
    then
       echo "No sequence file: $file" >> $scriptlog 2>&1
@@ -95,5 +95,5 @@
       continue
    fi
-   
+ 
    var=`echo SELECT fSequenceFirst FROM Sequences WHERE fSequenceFirst=$sequence | mymysql`
    if ! [ "$sequence" = "$var" ]
@@ -111,5 +111,5 @@
 do
    sequence=`echo $dir | sed -e "s/^.*\/0\+\([0-9]\+\)$/\1/"`
-   if [ "$sequence" = "" ]
+   if [ "$sequence" = "" ] || [ "$sequence" = "$dir" ]
    then
       echo "Invalid directory: $dir" >> $scriptlog 2>&1
@@ -133,5 +133,5 @@
 do
    sequence=`echo $dir | sed -e "s/^.*\/0\+\([0-9]\+\)$/\1/"`
-   if [ "$sequence" = "" ]
+   if [ "$sequence" = "" ] || [ "$sequence" = "$dir" ]
    then
       echo "Invalid directory: $dir" >> $scriptlog 2>&1
Index: /trunk/MagicSoft/Mars/mjobs/MJPedestal.cc
===================================================================
--- /trunk/MagicSoft/Mars/mjobs/MJPedestal.cc	(revision 9067)
+++ /trunk/MagicSoft/Mars/mjobs/MJPedestal.cc	(revision 9068)
@@ -890,5 +890,4 @@
         // Set and store the new ranges
         //
-        Int_t shift = 0;
         while (poslo2-fExtractWinLeft < lo0+0.5)
         {
@@ -903,6 +902,8 @@
         }
 
-        *fLog << "Changed extraction window by " << shift;
-        *fLog << "slices to hi-gain [" << hi0 << "," << hi1;
+        if (lo0<0)
+            lo0=0;
+
+        *fLog << "Changed extraction to hi-gain [" << hi0 << "," << hi1;
         *fLog << "] and lo-gain [" << lo0 << "," << lo1 << "]" << endl;
 
