Index: /trunk/MagicSoft/Mars/Changelog
===================================================================
--- /trunk/MagicSoft/Mars/Changelog	(revision 8675)
+++ /trunk/MagicSoft/Mars/Changelog	(revision 8676)
@@ -56,4 +56,5 @@
        Execution of the program can be forced with a new option.
      - write more information to output file.
+     - added a new tab showing the vent distribution without weights
 
 
Index: /trunk/MagicSoft/Mars/NEWS
===================================================================
--- /trunk/MagicSoft/Mars/NEWS	(revision 8675)
+++ /trunk/MagicSoft/Mars/NEWS	(revision 8676)
@@ -244,4 +244,10 @@
      the information is lost.
 
+   - sponde: added a new tab "EventDist" showing the unweighted event
+     distribution of your sample after cuts. This tells you how many
+     events with this energy you had in your MC files. The same information
+     you get from the error bars of the weighted histograms, but this is
+     less intuitive.
+
 
 
Index: /trunk/MagicSoft/Mars/mjobs/MJSpectrum.cc
===================================================================
--- /trunk/MagicSoft/Mars/mjobs/MJSpectrum.cc	(revision 8675)
+++ /trunk/MagicSoft/Mars/mjobs/MJSpectrum.cc	(revision 8676)
@@ -299,5 +299,5 @@
         fDisplay->SetStatusLine1("Getting maximum impact...");
 
-    // Create chain
+    // ----- Create chain -----
     *fLog << "Getting files... " << flush;
     TChain chain("RunHeaders");
@@ -397,5 +397,9 @@
         // Fill histogram from tree
         hfill->SetDirectory(&file);
-        t->Draw(cont, weights, "goff");
+        if (t->Draw(cont, weights, "goff")<0)
+        {
+            *fLog << err << "ERROR - Reading OriginalMC failed." << endl;
+            return kFALSE;
+        }
         hfill->SetDirectory(0);
         h.Add(hfill);
@@ -1215,6 +1219,6 @@
     plist.AddToList(&bins2);
 
-    // Initialize weighting to a new spectru
-    // m as defined in the resource file
+    // Initialize weighting to a new spectrum
+    // as defined in the resource file
     MMcSpectrumWeight weight;
     if (!InitWeighting(set, weight))
@@ -1345,4 +1349,9 @@
     fill5.SetNameTab("Threshold");
 
+    MH3 henergy("MMcEvt.fEnergy");
+    henergy.SetName("EventDist;EnergyEst");
+    henergy.SetTitle("Unweighted event distribution (Real statistics);E [GeV];Counts;");
+    henergy.Sumw2();
+
     MH3 hsize("MHillas.fSize");
     hsize.SetName("ExcessMC");
@@ -1353,4 +1362,5 @@
     plist.AddToList(&bins);
 
+    MFillH fill0a(&henergy, "", "FillEventDist");
     MFillH fill1a("MHHillasMCPre  [MHHillas]",      "MHillas",      "FillHillasPre");
     MFillH fill2a("MHHillasMCPost [MHHillas]",      "MHillas",      "FillHillasPost");
@@ -1408,4 +1418,5 @@
     tlist2.AddToList(&fill4);
     tlist2.AddToList(&fill5);
+    tlist2.AddToList(&fill0a);
     tlist2.AddToList(&fill2a);
     tlist2.AddToList(&fill3a);
@@ -1485,5 +1496,4 @@
     cont.Add(&area1);
     cont.Add(&hest);
-    cont.Add(const_cast<TEnv*>(GetEnv()));
 
     if (fDisplay)
Index: /trunk/MagicSoft/Mars/mjobs/MJSpectrum.h
===================================================================
--- /trunk/MagicSoft/Mars/mjobs/MJSpectrum.h	(revision 8675)
+++ /trunk/MagicSoft/Mars/mjobs/MJSpectrum.h	(revision 8676)
@@ -34,5 +34,6 @@
 
     Bool_t fRefill;
-    Bool_t fSimpleMode;
+    //Bool_t fSimpleMode;
+    Bool_t fForceTheta;
     Bool_t fRawMc;
     Bool_t fNoThetaWeights;
@@ -63,6 +64,7 @@
 
     void EnableRefilling(Bool_t b=kTRUE)  { fRefill=b; }
-    void EnableSimpleMode(Bool_t b=kTRUE) { fSimpleMode=b; }
+    //void EnableSimpleMode(Bool_t b=kTRUE) { fSimpleMode=b; }
     void EnableRawMc(Bool_t b=kTRUE)      { fRawMc=b; }
+    void ForceTheta(Bool_t b=kTRUE)       { fForceTheta=b; }
 
     void SetEnergyEstimator(const MTask *task);
