Index: /trunk/MagicSoft/Mars/mhist/MHCamEventRot.cc
===================================================================
--- /trunk/MagicSoft/Mars/mhist/MHCamEventRot.cc	(revision 3783)
+++ /trunk/MagicSoft/Mars/mhist/MHCamEventRot.cc	(revision 3784)
@@ -27,4 +27,6 @@
 // MHCamEventRot
 //
+// Derotate MCamEvent before filling a 2D histogram.
+//
 //////////////////////////////////////////////////////////////////////////////
 #include "MHCamEventRot.h"
@@ -51,4 +53,5 @@
 #include "MBinning.h"
 #include "MParList.h"
+#include "MCamEvent.h"
 
 #include "MLog.h"
@@ -70,5 +73,5 @@
     //
     fName  = name  ? name  : "MHCamEventRot";
-    fTitle = title ? title : "3D-plot of Alpha vs x, y";
+    fTitle = title ? title : "Plot showing derotated MCamEvent data";
 
     fHist.SetDirectory(NULL);
@@ -103,12 +106,12 @@
     if (!bins)
     {
-        const Float_t r = (geom ? geom->GetMaxRadius()/3 : 200)*fGeom->GetConvMm2Deg();
+        const Float_t r = (fGeom ? fGeom->GetMaxRadius()/3 : 200)*fGeom->GetConvMm2Deg();
 
         MBinning b;
         b.SetEdges(20, -r, r);
-        SetBinning(&fHist, &b, &b, &binsa);
+        SetBinning(&fHist, &b, &b);
     }
     else
-        SetBinning(&fHist, bins, bins, &binsa);
+        SetBinning(&fHist, bins, bins);
 
     fPointPos = (MPointingPos*)plist->FindObject(AddSerialNumber("MPointingPos"));
Index: /trunk/MagicSoft/Mars/mhist/MHCamEventRot.h
===================================================================
--- /trunk/MagicSoft/Mars/mhist/MHCamEventRot.h	(revision 3784)
+++ /trunk/MagicSoft/Mars/mhist/MHCamEventRot.h	(revision 3784)
@@ -0,0 +1,73 @@
+#ifndef MARS_MHCamEventRot
+#define MARS_MHCamEventRot
+
+#ifndef MARS_MH
+#include "MH.h"
+#endif
+
+#ifndef ROOT_TH2
+#include <TH2.h>
+#endif
+
+class TH2D;
+
+class MGeomCam;
+class MParList;
+class MTime;
+class MPointingPos;
+class MObservatory;
+
+class MHCamEventRot : public MH
+{
+private:
+    MGeomCam      *fGeom;        //! container storing the camera geometry
+    MTime         *fTime;        //! container to take the event time from
+    MPointingPos  *fPointPos;    //! container to take pointing position from
+    MObservatory  *fObservatory; //! conteiner to take observatory location from
+
+    TH2D    fHist;               // Alpha vs. x and y
+
+    Int_t fType;
+
+    Double_t fRa;
+    Double_t fDec;
+
+    //Int_t DistancetoPrimitive(Int_t px, Int_t py);
+    //void Modified();
+
+    //void ProjectOff(TH2D *h);
+    //void ProjectOn(TH2D *h);
+
+    TObject *GetCatalog();
+
+public:
+    MHCamEventRot(const char *name=NULL, const char *title=NULL);
+
+    Bool_t SetupFill(const MParList *pList);
+    Bool_t Fill(const MParContainer *par, const Stat_t w=1);
+
+    TH1 *GetHistByName(const TString name) { return &fHist; }
+
+    //void FitSignificance(Float_t sigint=15, Float_t sigmax=70, Float_t bgmin=40, Float_t bgmax=70, Byte_t polynom=1); //*MENU*
+    //void FitSignificanceStd() { FitSignificance(); } //*MENU*
+
+    //void SetDistMin(Float_t dist) { fDistMin = dist; }
+
+    //void SetAlphaCut(Float_t alpha); //*MENU*
+    //void SetAlphaPlus5()  { SetAlphaCut(fAlphaCut+5); } //*MENU*
+    //void SetAlphaMinus5() { SetAlphaCut(fAlphaCut-5); } //*MENU*
+
+    //void SetBgMean(Float_t alpha); //*MENU*
+    //void SetBgMeanPlus5()  { SetBgMean(fBgMean+5); } //*MENU*
+    //void SetBgMeanMinus5() { SetBgMean(fBgMean-5); } //*MENU*
+
+    //void Paint(Option_t *opt="");
+    void Draw(Option_t *option="");
+
+    //static Double_t Significance(Double_t s, Double_t b);
+    //static Double_t SignificanceLiMa(Double_t s, Double_t b, Double_t alpha=1);
+
+    ClassDef(MHCamEventRot, 1) //2D-histogram in MCamEvent data (derotated)
+};
+
+#endif
