Index: /trunk/MagicSoft/Mars/Changelog
===================================================================
--- /trunk/MagicSoft/Mars/Changelog	(revision 4906)
+++ /trunk/MagicSoft/Mars/Changelog	(revision 4907)
@@ -120,4 +120,8 @@
      mjobs/MJCalibrateSignal.[h,cc]:
      - added option to process monte carlo files
+
+   * mhist/MHEffectiveOnTime.[h,cc]:
+     - added a histogram taking the on-time vs time
+     - fixed handling of Draw/Project/Paint
 
 
Index: /trunk/MagicSoft/Mars/mhist/MHEffectiveOnTime.h
===================================================================
--- /trunk/MagicSoft/Mars/mhist/MHEffectiveOnTime.h	(revision 4906)
+++ /trunk/MagicSoft/Mars/mhist/MHEffectiveOnTime.h	(revision 4907)
@@ -33,6 +33,7 @@
     MParameterDerr *fParam;      //!
 
-    TH2D fHTimeDiff;
-    TH1D fHEffOn;
+    TH2D fHDeltaT;
+    TH1D fHEffOnTheta;
+    TH1D fHEffOnTime;
     TH1D fHChi2;
     TH1D fHProb;
@@ -44,6 +45,10 @@
     Int_t fInterval;
 
+    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) const;
     void FitThetaBins();
+    void FillTimeBin(Double_t val, Double_t err);
     void Calc();
 
@@ -57,8 +62,6 @@
     Bool_t Finalize();
 
-    const TH2D *GetHist() { return &fHTimeDiff; }
-    const TH2D *GetHist() const { return &fHTimeDiff; }
-
-    TH1 *GetHistByName(const TString name) { return &fHTimeDiff; }
+    const TH2D *GetHist() { return &fHDeltaT; }
+    const TH2D *GetHist() const { return &fHDeltaT; }
 
     void Draw(Option_t *option="");
