Index: trunk/MagicSoft/include-Classes/MMcFormat/MMcEvt.cxx
===================================================================
--- trunk/MagicSoft/include-Classes/MMcFormat/MMcEvt.cxx	(revision 8325)
+++ trunk/MagicSoft/include-Classes/MMcFormat/MMcEvt.cxx	(revision 8434)
@@ -18,5 +18,5 @@
 !   Author(s):
 !
-!   Copyright: MAGIC Software Development, 2000-2005
+!   Copyright: MAGIC Software Development, 2000-2007
 !
 !
@@ -199,5 +199,5 @@
 
     fFadcTimeJitter = fadc_jitter;
-    
+
     fEventReuse = reuse;
 }
@@ -217,7 +217,34 @@
     TString str(opt);
     if (str.IsNull())
-    {
         *fLog << " Photoelectrons: " << fPhotElfromShower << endl;
-        return;
-    }
-}
+}
+
+// --------------------------------------------------------------------------
+//
+// Return a proper description of the monte carlo event
+//
+TString MMcEvt::GetDescription(TString s) const
+{
+    TString txt("#splitline{");
+
+    txt += GetParticleName();
+    txt += " ";
+    txt += s;
+    txt += "}{  E=";
+    txt += GetEnergyStr();
+    txt += " r=";
+    txt += (int)(GetImpact()/100+.5);
+    txt += "m Zd=";
+    txt += 0.1*TMath::Nint(GetTelescopeTheta()*180/TMath::Pi()*10);
+    txt += "\\circ ";
+    if (GetPhotElfromShower()>=10000)
+        txt += Form("%dk", (Int_t)(GetPhotElfromShower()/1000.+.5));
+    else
+        if (GetPhotElfromShower()>=1000)
+            txt += Form("%.1fk", GetPhotElfromShower()/1000.);
+        else
+            txt += GetPhotElfromShower();
+    txt += "PhEl}";
+
+    return txt;
+}
Index: trunk/MagicSoft/include-Classes/MMcFormat/MMcEvt.hxx
===================================================================
--- trunk/MagicSoft/include-Classes/MMcFormat/MMcEvt.hxx	(revision 8325)
+++ trunk/MagicSoft/include-Classes/MMcFormat/MMcEvt.hxx	(revision 8434)
@@ -100,4 +100,6 @@
     Float_t GetMuonCphFraction() const { return fMuonCphFraction; }
 
+    TString GetDescription(TString s="") const;
+
     // Setter
     void SetTheta(Float_t Theta) { fTheta=Theta; }                //Set Theta angle
