Index: trunk/MagicSoft/Mars/mreflector/MRflEvtData.cc
===================================================================
--- trunk/MagicSoft/Mars/mreflector/MRflEvtData.cc	(revision 8266)
+++ trunk/MagicSoft/Mars/mreflector/MRflEvtData.cc	(revision 8267)
@@ -132,4 +132,17 @@
 }
 
+// --------------------------------------------------------------------------
+//
+// Fills all photons into a TH2 scaled with scale (default=1)
+//
+void MRflEvtData::Fill(TH2 &hist, Float_t scale) const
+{
+    MRflSinglePhoton *ph=NULL;
+
+    TIter Next(&fList);
+    while ((ph=(MRflSinglePhoton*)Next()))
+        ph->Fill(hist, scale);
+}
+
 void MRflEvtData::DrawPixelContent(Int_t num) const
 {
Index: trunk/MagicSoft/Mars/mreflector/MRflEvtData.h
===================================================================
--- trunk/MagicSoft/Mars/mreflector/MRflEvtData.h	(revision 8266)
+++ trunk/MagicSoft/Mars/mreflector/MRflEvtData.h	(revision 8267)
@@ -14,4 +14,5 @@
 #endif
 
+class TH2;
 class MRflSinglePhoton;
 
@@ -36,4 +37,6 @@
     const MRflSinglePhoton &GetPhoton(Int_t i) const;
 
+    void Fill(TH2 &hist, Float_t scale=1) const;
+
     void Print(Option_t *o="") const;
     void Paint(Option_t *o="");
Index: trunk/MagicSoft/Mars/mreflector/MRflSinglePhoton.cc
===================================================================
--- trunk/MagicSoft/Mars/mreflector/MRflSinglePhoton.cc	(revision 8266)
+++ trunk/MagicSoft/Mars/mreflector/MRflSinglePhoton.cc	(revision 8267)
@@ -32,4 +32,6 @@
 #include "MRflSinglePhoton.h"
 
+#include <TH2.h>
+
 #include "MLog.h"
 #include "MLogManip.h"
@@ -41,4 +43,13 @@
 // --------------------------------------------------------------------------
 //
+// Fill photon position into histogram scaled by scale.
+//
+void MRflSinglePhoton::Fill(TH2 &hist, Float_t scale) const
+{
+    hist.Fill(fX*scale, fY*scale);
+}
+
+// --------------------------------------------------------------------------
+//
 // Dump all photon information
 //
Index: trunk/MagicSoft/Mars/mreflector/MRflSinglePhoton.h
===================================================================
--- trunk/MagicSoft/Mars/mreflector/MRflSinglePhoton.h	(revision 8266)
+++ trunk/MagicSoft/Mars/mreflector/MRflSinglePhoton.h	(revision 8267)
@@ -5,4 +5,6 @@
 #include "MParContainer.h"
 #endif
+
+class TH2;
 
 class MRflSinglePhoton : public MParContainer
@@ -33,4 +35,6 @@
     Float_t GetY() const { return fY; }
 
+    void Fill(TH2 &hist, Float_t scale=1) const;
+
     void Print(Option_t *o="") const;
 
