Index: trunk/MagicSoft/Mars/datacenter/macros/plotdb.C
===================================================================
--- trunk/MagicSoft/Mars/datacenter/macros/plotdb.C	(revision 7387)
+++ trunk/MagicSoft/Mars/datacenter/macros/plotdb.C	(revision 7388)
@@ -59,4 +59,5 @@
 #include <TLine.h>
 #include <TText.h>
+#include <TFrame.h>
 #include <TStyle.h>
 #include <TGraph.h>
@@ -142,4 +143,6 @@
         TString title = fNameTab.IsNull() ? name(name.First('.')+2, name.Length()) : fNameTab;
         TCanvas &c = fDisplay ? fDisplay->AddTab(title) : *new TCanvas;
+        c.SetFillColor(kWhite);
+        c.SetBorderMode(0);
         c.Divide(1,2);
 
@@ -218,5 +221,4 @@
 
         g2.DrawClone("AP");
-
     }
 
@@ -293,4 +295,6 @@
     plot.SetDescription("Mean Pedestal RMS inner Camera;\\sigma_{P,I} [phe]", "PedRmsI");
     plot.Plot("Calibration.fMeanPedRmsInner",  0, 3.5, 0.05);
+    plot.SetDescription("Mean Signal inner Camera;S_{I} [phe]", "SignalI");
+    plot.Plot("Calibration.fMeanSignalInner",  0, 7.0, 0.05);
     //from star*.root
     //muon
@@ -324,4 +328,6 @@
     plot.SetDescription("Mean Pedestal RMS outer Camera;\\sigma_{P,O} [phe]", "PedRmsO");
     plot.Plot("Calibration.fMeanPedRmsOuter",  0, 4.0, 0.05);
+    plot.SetDescription("Mean Signal outer Camera;S_{O} [phe]", "SignalO");
+    plot.Plot("Calibration.fMeanSignalOuter",  0, 4.0, 0.05);
 }
 
@@ -349,4 +355,5 @@
     plot.SetRequestRange(from, to);
     plotall(plot);
+    //d->SaveAsPS("plotdb.ps");
 }
 
@@ -369,8 +376,8 @@
 
     MStatusDisplay *d = new MStatusDisplay;
-
     MPlot plot(serv);
     plot.SetDisplay(d);
     plot.SetRequestPeriod(period);
     plotall(plot);
+    //d->SaveAsPS("plotdb.ps");
 }
Index: trunk/MagicSoft/Mars/mhflux/MHEnergyEst.cc
===================================================================
--- trunk/MagicSoft/Mars/mhflux/MHEnergyEst.cc	(revision 7387)
+++ trunk/MagicSoft/Mars/mhflux/MHEnergyEst.cc	(revision 7388)
@@ -266,6 +266,6 @@
 {
     // Project into EnergyEst_ey
-    TH1D *h1 = (TH1D*)fHEnergy.Project3D("rtlprmft_ex");
-    TH1D *h2 = (TH1D*)fHEnergy.Project3D("rtlprmft_ey");
+    TH1D *h1 = (TH1D*)fHEnergy.Project3D("rtlprmft_ex"); // E_Est
+    TH1D *h2 = (TH1D*)fHEnergy.Project3D("rtlprmft_ey"); // E_mc
 
     h2->Copy(hist);
Index: trunk/MagicSoft/Mars/mpointing/MSrcPosCorrect.cc
===================================================================
--- trunk/MagicSoft/Mars/mpointing/MSrcPosCorrect.cc	(revision 7387)
+++ trunk/MagicSoft/Mars/mpointing/MSrcPosCorrect.cc	(revision 7388)
@@ -52,4 +52,6 @@
 MSrcPosCorrect::MSrcPosCorrect(const char *name, const char *title)
     : fSrcPosCam(NULL), fSrcPosAnti(NULL), fAxis(NULL), fGeom(NULL)
+     , fDx(-14.24) , fDy(-9.495)
+
 {
     fName  = name  ? name  : "MSrcPosCorrect";
@@ -105,5 +107,5 @@
     {
         *fLog << inf << "Run Number " << fRunNumber << " between 53832 and 56161." << endl;
-        *fLog << "A missfocussing correction (-0.048deg/0.034deg) will be applied." << endl;
+        *fLog << "A misfocussing correction (" << fDx << "mm/" << fDy << "mm) will be applied." << endl;
     }
 
@@ -160,5 +162,5 @@
     {
         // dx=-0.048deg, dy=0.034deg, d=0.059deg
-        static const TVector2 dxy(-14.24, -9.495);
+        static const TVector2 dxy(fDx, fDy);
 
         d -= dxy;
@@ -175,2 +177,19 @@
     return kTRUE;
 }
+
+Int_t MSrcPosCorrect::ReadEnv(const TEnv &env, TString prefix, Bool_t print)
+{
+    Bool_t rc = kFALSE;
+    if (IsEnvDefined(env, prefix, "Dx", print))
+    {
+        fDx = GetEnvValue(env, prefix, "Dx", fDx);
+        rc = kTRUE;
+    }
+    if (IsEnvDefined(env, prefix, "Dy", print))
+    {
+        fDy = GetEnvValue(env, prefix, "Dy", fDy);
+        rc = kTRUE;
+    }
+
+    return rc;
+}
Index: trunk/MagicSoft/Mars/mpointing/MSrcPosCorrect.h
===================================================================
--- trunk/MagicSoft/Mars/mpointing/MSrcPosCorrect.h	(revision 7387)
+++ trunk/MagicSoft/Mars/mpointing/MSrcPosCorrect.h	(revision 7388)
@@ -23,8 +23,13 @@
     UInt_t   fRunNumber;
 
+    Float_t fDx;
+    Float_t fDy;
+
     // MTask
     Bool_t ReInit(MParList *pList);
     Int_t  PreProcess(MParList *pList);
     Int_t  Process();
+
+    Int_t ReadEnv(const TEnv &env, TString prefix, Bool_t print);
 
 public:
Index: trunk/MagicSoft/Mars/mreport/MReportTrigger.cc
===================================================================
--- trunk/MagicSoft/Mars/mreport/MReportTrigger.cc	(revision 7387)
+++ trunk/MagicSoft/Mars/mreport/MReportTrigger.cc	(revision 7388)
@@ -469,5 +469,6 @@
       }
 
-    n = sscanf(pos, " %f %f %n", &fL2BeforePrescaler, &fL2AfterPrescaler, &len);    if (n!=2)
+    n = sscanf(pos, " %f %f %n", &fL2BeforePrescaler, &fL2AfterPrescaler, &len);
+    if (n!=2)
       {
         *fLog << warn << "WARNING - Couldn't read Trigger rates." << endl;
Index: trunk/MagicSoft/Mars/msql/MSQLServer.h
===================================================================
--- trunk/MagicSoft/Mars/msql/MSQLServer.h	(revision 7387)
+++ trunk/MagicSoft/Mars/msql/MSQLServer.h	(revision 7388)
@@ -53,5 +53,4 @@
     }
 
-    const char *GetNameDataBase() const { return fDataBase; }
     const char *GetNameTable()    const { return Form("%s/%s",    (const char*)fDataBase, (const char*)fTable); }
     const char *GetNameColumn()   const { return Form("%s/%s/%s", (const char*)fDataBase, (const char*)fTable, (const char*)fColumn); }
@@ -93,4 +92,5 @@
 
     const char *GetName() const;
+    const char *GetNameDataBase() const { return fDataBase; }
 
     void Print(Option_t *o) const;
