Index: trunk/MagicSoft/Mars/mhflux/MHEffectiveOnTime.cc
===================================================================
--- trunk/MagicSoft/Mars/mhflux/MHEffectiveOnTime.cc	(revision 5301)
+++ trunk/MagicSoft/Mars/mhflux/MHEffectiveOnTime.cc	(revision 5620)
@@ -107,6 +107,6 @@
 MHEffectiveOnTime::MHEffectiveOnTime(const char *name, const char *title)
     : fPointPos(0), fTime(0), fParam(0), fIsFinalized(kFALSE), 
-    fNumEvents(200*60), fNameProjDeltaT(Form("DeltaT_%p", this)),
-    fNameProjTheta(Form("Theta_%p", this))
+    fNumEvents(200*60)/*, fNameProjDeltaT(Form("DeltaT_%p", this)),
+    fNameProjTheta(Form("Theta_%p", this))*/
 {
     //
@@ -646,4 +646,6 @@
 void MHEffectiveOnTime::Paint(Option_t *opt)
 {
+    *fLog << all << "Paint: '" << opt << "'" << endl;
+
     TH1D *h=0;
     TPaveStats *st=0;
@@ -675,7 +677,7 @@
 
         pad->GetPad(1)->cd(1);
-        if ((h = (TH1D*)gPad->FindObject(fNameProjDeltaT)))
+        if ((h = (TH1D*)gPad->FindObject("ProjDeltaT"/*fNameProjDeltaT*/)))
         {
-            h = fH2DeltaT.ProjectionX(fNameProjDeltaT, -1, 9999, "E");
+            h = fH2DeltaT.ProjectionX("ProjDeltaT"/*fNameProjDeltaT*/, -1, 9999, "E");
             if (h->GetEntries()>0)
                 gPad->SetLogy();
@@ -683,6 +685,6 @@
 
         pad->GetPad(2)->cd(1);
-        if ((h = (TH1D*)gPad->FindObject(fNameProjTheta)))
-            fH2DeltaT.ProjectionY(fNameProjTheta, -1, 9999, "E");
+        if ((h = (TH1D*)gPad->FindObject("ProjTheta"/*fNameProjTheta*/)))
+            fH2DeltaT.ProjectionY("ProjTheta"/*fNameProjTheta*/, -1, 9999, "E");
 
         if (!fIsFinalized)
@@ -692,5 +694,5 @@
     if (o==(TString)"paint")
     {
-        if ((h = (TH1D*)gPad->FindObject(fNameProjDeltaT)))
+        if ((h = (TH1D*)gPad->FindObject("ProjDeltaT"/*fNameProjDeltaT*/)))
         {
             Double_t res[7];
@@ -771,5 +773,5 @@
     pad->GetPad(1)->cd(1);
     gPad->SetBorderMode(0);
-    h = fH2DeltaT.ProjectionX(fNameProjDeltaT, -1, 9999, "E");
+    h = fH2DeltaT.ProjectionX("ProjDeltaT"/*fNameProjDeltaT*/, -1, 9999, "E");
     h->SetTitle("Distribution of \\Delta t [s]");
     h->SetXTitle("\\Delta t [s]");
@@ -801,5 +803,5 @@
     pad->GetPad(2)->cd(1);
     gPad->SetBorderMode(0);
-    h = fH2DeltaT.ProjectionY(fNameProjTheta, -1, 9999, "E");
+    h = fH2DeltaT.ProjectionY("ProjTheta"/*fNameProjTheta*/, -1, 9999, "E");
     h->SetTitle("Distribution of  \\Theta [\\circ]");
     h->SetXTitle("\\Theta [\\circ]");
Index: trunk/MagicSoft/Mars/mhflux/MHEffectiveOnTime.h
===================================================================
--- trunk/MagicSoft/Mars/mhflux/MHEffectiveOnTime.h	(revision 5301)
+++ trunk/MagicSoft/Mars/mhflux/MHEffectiveOnTime.h	(revision 5620)
@@ -50,6 +50,6 @@
     Int_t fNumEvents;    // Number of events to be used for a bin in time
 
-    const TString fNameProjDeltaT; //! This should make sure, that gROOT doen't confuse the projection with something else
-    const TString fNameProjTheta;  //! This should make sure, that gROOT doen't confuse the projection with something else
+    //const TString fNameProjDeltaT; //! This should make sure, that gROOT doen't confuse the projection with something else
+    //const TString fNameProjTheta;  //! This should make sure, that gROOT doen't confuse the projection with something else
 
     Bool_t FitH(TH1D *h, Double_t *res, Bool_t paint=kFALSE) const;
