Index: trunk/MagicSoft/Mars/Changelog
===================================================================
--- trunk/MagicSoft/Mars/Changelog	(revision 2281)
+++ trunk/MagicSoft/Mars/Changelog	(revision 2282)
@@ -1,3 +1,30 @@
                                                  -*-*- END OF LINE -*-*-
+
+ 2003/07/14: Wolfgang Wittek
+
+    * mhist/MHOnSubtraction.[h,cc]
+      - add member function GetSignificance()
+
+   * mhist/MHMatrix.cc
+     - add MProgressBar in Fill()
+
+    * mmontecarlo/MMcEnergyEst.h
+      - add member functions GetNumCoeffA()
+                             GetNumCoeffB()
+
+    * mfilter/MCT1SelBasic.[h,cc]
+      - remove runs 601, 613, 614 for MC gamma
+
+    * manalysis/MCT1SupercutsCalc.cc
+      - remove bug (dd2)
+      - set fMatrix = NULL in constructor
+
+    * mgeom.MGeomCamCT1Daniel.[h,cc]
+      - new; Daniel's CT1 geometry
+
+    * mgeom/Makefile
+            GeomLinkDef.h
+
+
 
  2003/07/14: Oscarlanch
Index: trunk/MagicSoft/Mars/manalysis/MCT1SupercutsCalc.cc
===================================================================
--- trunk/MagicSoft/Mars/manalysis/MCT1SupercutsCalc.cc	(revision 2281)
+++ trunk/MagicSoft/Mars/manalysis/MCT1SupercutsCalc.cc	(revision 2282)
@@ -158,37 +158,37 @@
 
     TArrayD lup(ncutpar,     par + k0);
-    SetLengthUp(lup);
+    fLengthUp = lup;
     k0 += ncutpar;
 
     TArrayD wup(ncutpar,     par + k0);
-    SetWidthUp(wup);
+    fWidthUp = wup;
     k0 += ncutpar;
 
     TArrayD dup(ncutpar,     par + k0);
-    SetDistUp(dup);
+    fDistUp = dup;
     k0 += ncutpar;
 
     TArrayD llo(ncutpar,     par + k0);
-    SetLengthLo(llo);
+    fLengthLo = llo;
     k0 += ncutpar;
 
     TArrayD wlo(ncutpar,     par + k0);
-    SetWidthLo(wlo);
+    fWidthLo = wlo;
     k0 += ncutpar;
 
     TArrayD dlo(ncutpar,     par + k0);
-    SetDistLo(dlo);
+    fDistLo = dlo;
     k0 += ncutpar;
 
     TArrayD aup(ncutpar,     par + k0);
-    SetAsymUp(aup);
+    fAsymUp = aup;
     k0 += ncutpar;
 
     TArrayD alo(ncutpar,     par + k0);
-    SetAsymLo(alo);
+    fAsymLo = alo;
     k0 += ncutpar;
 
     TArrayD alphaup(ncutpar, par + k0);
-    SetAlphaUp(alphaup);
+    fAlphaUp = alphaup;
 }
 
@@ -277,4 +277,6 @@
 
     InitParams();
+
+    fMatrix = NULL;
 }
 
@@ -423,6 +425,7 @@
 
     const Double_t dist2   = meanx*meanx + meany*meany;
-    const Double_t dd2     = dist2*fMm2Deg;
     const Double_t dist    = sqrt(dist2) * fMm2Deg;
+    const Double_t dd2     = dist*dist;
+
 
     const Double_t dmls    = log(size) - kNomLogSize;
Index: trunk/MagicSoft/Mars/mfilter/MFCT1SelBasic.cc
===================================================================
--- trunk/MagicSoft/Mars/mfilter/MFCT1SelBasic.cc	(revision 2281)
+++ trunk/MagicSoft/Mars/mfilter/MFCT1SelBasic.cc	(revision 2282)
@@ -30,9 +30,14 @@
 //  This is a class to evaluate basic cuts
 //
-//  WHAT ARE THE BASIC CUTS?
-//
 //  to be called after the calibration (when the number of photons is
 //               available for all pixels)
 //
+//  The basic cuts are :
+//
+//      remove bad runs
+//      thetamin < theta < thetamax
+//      software trigger fullfilled (with minimum no.of photons = minphotons)
+//
+//
 /////////////////////////////////////////////////////////////////////////////
 
@@ -44,5 +49,5 @@
 
 #include "MCerPhotEvt.h"
-//nclude "MRawRunHeader.h"
+#include "MRawRunHeader.h"
 
 #include "MGeomPix.h"
@@ -95,5 +100,4 @@
 Int_t MFCT1SelBasic::PreProcess(MParList *pList)
 {
-    /*
     fRawRun = (MRawRunHeader*)pList->FindObject("MRawRunHeader");
     if (!fRawRun)
@@ -102,5 +106,4 @@
         return kFALSE;
     }
-    */
 
     fMcEvt = (MMcEvt*)pList->FindObject("MMcEvt");
@@ -148,6 +151,6 @@
 // Evaluate basic cuts
 // 
-// if cuts are fulfilled      : fResult = kTRUE;
-// if they are not fullfilled : fResult = kFALSE;
+//     bad events    : fResult = kTRUE;
+//     good events   : fResult = kFALSE;
 //
 Int_t MFCT1SelBasic::Process()
@@ -157,12 +160,21 @@
     fResult  = kFALSE;
 
+    // remove bad runs for MC gammas
+    if (fMcEvt->GetEnergy() == 0.0  &&  fMcEvt->GetImpact() == 0.0)
+    {
+      if (fRawRun->GetRunNumber() == 601  ||
+          fRawRun->GetRunNumber() == 613  ||
+          fRawRun->GetRunNumber() == 614    )
+	return Set(1);
+    }
+
     if (theta<fThetaMin)
-        return Set(1);
+        return Set(2);
 
     if (theta>fThetaMax)
-        return Set(2);
+        return Set(3);
 
     if (!SwTrigger())
-        return Set(3);
+        return Set(4);
 
     fCut[0]++;
@@ -234,14 +246,19 @@
     *fLog << GetDescriptor() << " execution statistics:" << endl;
     *fLog << dec << setfill(' ');
+
     *fLog << " " << setw(7) << fCut[1] << " (" << setw(3) ;
     *fLog << (int)(fCut[1]*100/GetNumExecutions()) ;
-    *fLog << "%) Evts skipped due to: Zenith angle < " << fThetaMin << endl;
+    *fLog << "%) Evts skipped due to: bad run " << endl;
 
     *fLog << " " << setw(7) << fCut[2] << " (" << setw(3) ;
     *fLog << (int)(fCut[2]*100/GetNumExecutions()) ;
-    *fLog << "%) Evts skipped due to: Zenith angle > " << fThetaMax << endl;
+    *fLog << "%) Evts skipped due to: Zenith angle < " << fThetaMin << endl;
 
     *fLog << " " << setw(7) << fCut[3] << " (" << setw(3) ;
     *fLog << (int)(fCut[3]*100/GetNumExecutions()) ;
+    *fLog << "%) Evts skipped due to: Zenith angle > " << fThetaMax << endl;
+
+    *fLog << " " << setw(7) << fCut[4] << " (" << setw(3) ;
+    *fLog << (int)(fCut[4]*100/GetNumExecutions()) ;
     *fLog << "%) Evts skipped due to: Software trigger not fullfilled" ;
     *fLog << " (with fMinPhotons = " << fMinPhotons << ")" << endl;
Index: trunk/MagicSoft/Mars/mfilter/MFCT1SelBasic.h
===================================================================
--- trunk/MagicSoft/Mars/mfilter/MFCT1SelBasic.h	(revision 2281)
+++ trunk/MagicSoft/Mars/mfilter/MFCT1SelBasic.h	(revision 2282)
@@ -18,5 +18,5 @@
 class MCerPhotEvt;
 class MPedestalCam;
-//class MRawRunHeader;
+class MRawRunHeader;
 
 class MFCT1SelBasic : public MFilter
@@ -27,5 +27,5 @@
     const MCerPhotEvt   *fEvt;      // Cerenkov Photon Event 
     //const MPedestalCam  *fPed;      // Pedestal information
-    //const MRawRunHeader *fRawRun;
+    const MRawRunHeader *fRawRun;
 
     Float_t     fMinPhotons;
@@ -33,5 +33,5 @@
     Float_t     fThetaMax;
 
-    Int_t       fCut[4];
+    Int_t       fCut[5];
 
     Bool_t      fResult;
Index: trunk/MagicSoft/Mars/mgeom/GeomLinkDef.h
===================================================================
--- trunk/MagicSoft/Mars/mgeom/GeomLinkDef.h	(revision 2281)
+++ trunk/MagicSoft/Mars/mgeom/GeomLinkDef.h	(revision 2282)
@@ -10,4 +10,5 @@
 #pragma link C++ class MGeomCam+;
 #pragma link C++ class MGeomCamCT1+;
+#pragma link C++ class MGeomCamCT1Daniel+;
 #pragma link C++ class MGeomCamMagic+;
 #pragma link C++ class MGeomCamMagicHG+;
Index: trunk/MagicSoft/Mars/mgeom/MGeomCamCT1Daniel.cc
===================================================================
--- trunk/MagicSoft/Mars/mgeom/MGeomCamCT1Daniel.cc	(revision 2282)
+++ trunk/MagicSoft/Mars/mgeom/MGeomCamCT1Daniel.cc	(revision 2282)
@@ -0,0 +1,271 @@
+/* ======================================================================== *\
+!
+! *
+! * This file is part of MARS, the MAGIC Analysis and Reconstruction
+! * Software. It is distributed to you in the hope that it can be a useful
+! * and timesaving tool in analysing Data of imaging Cerenkov telescopes.
+! * It is distributed WITHOUT ANY WARRANTY.
+! *
+! * Permission to use, copy, modify and distribute this software and its
+! * documentation for any purpose is hereby granted without fee,
+! * provided that the above copyright notice appear in all copies and
+! * that both that copyright notice and this permission notice appear
+! * in supporting documentation. It is provided "as is" without express
+! * or implied warranty.
+! *
+!
+!
+!   Author(s): Thomas Bretz  12/2000 <mailto:tbretz@astro.uni-wuerzburg.de>
+!   Author(s): Harald Kornmayer 1/2001
+!
+!   Copyright: MAGIC Software Development, 2000-2003
+!
+!
+\* ======================================================================== */
+
+/////////////////////////////////////////////////////////////////////////////
+//
+// MGeomCamCT1Daniel
+//
+// This class stores the geometrz information of the CT1 camera.
+// The next neighbor information comes from a table, the geometry layout
+// is calculated (for Algorithm see CreateCam
+//
+////////////////////////////////////////////////////////////////////////////
+#include "MGeomCamCT1Daniel.h"
+
+#include <math.h>     // floor
+
+/*
+ #include "MLog.h"
+ #include "MLogManip.h"
+ */
+
+#include "MGeomPix.h"
+
+ClassImp(MGeomCamCT1Daniel);
+
+// --------------------------------------------------------------------------
+//
+//  CT1 camera has 127 pixels. For geometry and Next Neighbor info see
+//  CreateCam and CreateNN
+//
+//MGeomCamCT1::MGeomCamCT1(const char *name)
+//    : MGeomCam(127, 4.88, name, "Geometry information of CT1 camera")
+// This is the geometry as used by Daniel :
+MGeomCamCT1Daniel::MGeomCamCT1Daniel(const char *name)
+    : MGeomCam(127, 4.8129, name, "Geometry information of CT1 camera")
+{
+    CreateCam();
+    CreateNN();
+    CalcNumSectors();
+    CalcMaxRadius();
+} 
+
+// --------------------------------------------------------------------------
+//
+//  Create Next Neighbors: Fill the NN Info into the pixel objects.
+//
+void MGeomCamCT1Daniel::CreateNN()
+{ 
+    const Short_t nn[127][6] = {       // Neighbors of #
+      {  1,   2,   3,   4,   5,   6},  // 0
+      {  0,   2,   6,   7,   8,  18},
+      {  0,   1,   3,   8,   9,  10},
+      {  0,   2,   4,  10,  11,  12},
+      {  0,   3,   5,  12,  13,  14},
+      {  0,   4,   6,  14,  15,  16},
+      {  0,   1,   5,  16,  17,  18},
+      {  1,   8,  18,  19,  20,  36},
+      {  1,   2,   7,   9,  20,  21},
+      {  2,   8,  10,  21,  22,  23},
+      {  2,   3,   9,  11,  23,  24},  // 10
+      {  3,  10,  12,  24,  25,  26},
+      {  3,   4,  11,  13,  26,  27},
+      {  4,  12,  14,  27,  28,  29},
+      {  4,   5,  13,  15,  29,  30},
+      {  5,  14,  16,  30,  31,  32},
+      {  5,   6,  15,  17,  32,  33},
+      {  6,  16,  18,  33,  34,  35},
+      {  1,   6,   7,  17,  35,  36},
+      {  7,  20,  36,  37,  38,  60},
+      {  7,   8,  19,  21,  38,  39},  // 20
+      {  8,   9,  20,  22,  39,  40},
+      {  9,  21,  23,  40,  41,  42},
+      {  9,  10,  22,  24,  42,  43},
+      { 10,  11,  23,  25,  43,  44},
+      { 11,  24,  26,  44,  45,  46},
+      { 11,  12,  25,  27,  46,  47},
+      { 12,  13,  26,  28,  47,  48},
+      { 13,  27,  29,  48,  49,  50},
+      { 13,  14,  28,  30,  50,  51},
+      { 14,  15,  29,  31,  51,  52},  // 30
+      { 15,  30,  32,  52,  53,  54},
+      { 15,  16,  31,  33,  54,  55},
+      { 16,  17,  32,  34,  55,  56},
+      { 17,  33,  35,  56,  57,  58},
+      { 17,  18,  34,  36,  58,  59},
+      {  7,  18,  19,  35,  59,  60},
+      { 19,  38,  60,  61,  62,  90},
+      { 19,  20,  37,  39,  62,  63},
+      { 20,  21,  38,  40,  63,  64},
+      { 21,  22,  39,  41,  64,  65},  // 40
+      { 22,  40,  42,  65,  66,  67},
+      { 22,  23,  41,  43,  67,  68},
+      { 23,  24,  42,  44,  68,  69},
+      { 24,  25,  43,  45,  69,  70},
+      { 25,  44,  46,  70,  71,  72},
+      { 25,  26,  45,  47,  72,  73},
+      { 26,  27,  46,  48,  73,  74},
+      { 27,  28,  47,  49,  74,  75},
+      { 28,  48,  50,  75,  76,  77},
+      { 28,  29,  49,  51,  77,  78},  // 50
+      { 29,  30,  50,  52,  78,  79},
+      { 30,  31,  51,  53,  79,  80},
+      { 31,  52,  54,  80,  81,  82},
+      { 31,  32,  53,  55,  82,  83},
+      { 32,  33,  54,  56,  83,  84},
+      { 33,  34,  55,  57,  84,  85},
+      { 34,  56,  58,  85,  86,  87},
+      { 34,  35,  57,  59,  87,  88},
+      { 35,  36,  58,  60,  88,  89},
+      { 19,  36,  37,  59,  89,  90},  // 60
+      { 37,  62,  90,  91,  92, 126},
+      { 37,  38,  61,  63,  92,  93},
+      { 38,  39,  62,  64,  93,  94},
+      { 39,  40,  63,  65,  94,  95},
+      { 40,  41,  64,  66,  95,  96},
+      { 41,  65,  67,  96,  97,  98},
+      { 41,  42,  66,  68,  98,  99},
+      { 42,  43,  67,  69,  99, 100},
+      { 43,  44,  68,  70, 100, 101},
+      { 44,  45,  69,  71, 101, 102},  // 70
+      { 45,  70,  72, 102, 103, 104},
+      { 45,  46,  71,  73, 104, 105},
+      { 46,  47,  72,  74, 105, 106},
+      { 47,  48,  73,  75, 106, 107},
+      { 48,  49,  74,  76, 107, 108},
+      { 49,  75,  77, 108, 109, 110},
+      { 49,  50,  76,  78, 110, 111},
+      { 50,  51,  77,  79, 111, 112},
+      { 51,  52,  78,  80, 112, 113},
+      { 52,  53,  79,  81, 113, 114},  // 80
+      { 53,  80,  82, 114, 115, 116},
+      { 53,  54,  81,  83, 116, 117},
+      { 54,  55,  82,  84, 117, 118},
+      { 55,  56,  83,  85, 118, 119},
+      { 56,  57,  84,  86, 119, 120},
+      { 57,  85,  87, 120, 121, 122},
+      { 57,  58,  86,  88, 122, 123},
+      { 58,  59,  87,  89, 123, 124},
+      { 59,  60,  88,  90, 124, 125},
+      { 37,  60,  61,  89, 125, 126},  // 90
+      { 61,  92, 126,  -1,  -1,  -1},
+      { 61,  62,  91,  93,  -1,  -1},
+      { 62,  63,  92,  94,  -1,  -1},
+      { 63,  64,  93,  95,  -1,  -1},
+      { 64,  65,  94,  96,  -1,  -1},
+      { 65,  66,  95,  97,  -1,  -1},
+      { 66,  96,  98,  -1,  -1,  -1},
+      { 66,  67,  97,  99,  -1,  -1},
+      { 67,  68,  98, 100,  -1,  -1},
+      { 68,  69,  99, 101,  -1,  -1},  // 100
+      { 69,  70, 100, 102,  -1,  -1},
+      { 70,  71, 101, 103,  -1,  -1},
+      { 71, 102, 104,  -1,  -1,  -1},
+      { 71,  72, 103, 105,  -1,  -1},
+      { 72,  73, 104, 106,  -1,  -1},
+      { 73,  74, 105, 107,  -1,  -1},
+      { 74,  75, 106, 108,  -1,  -1},
+      { 75,  76, 107, 109,  -1,  -1},
+      { 76, 108, 110,  -1,  -1,  -1},
+      { 76,  77, 109, 111,  -1,  -1},  // 110
+      { 77,  78, 110, 112,  -1,  -1},
+      { 78,  79, 111, 113,  -1,  -1},
+      { 79,  80, 112, 114,  -1,  -1},
+      { 80,  81, 113, 115,  -1,  -1},
+      { 81, 114, 116,  -1,  -1,  -1},
+      { 81,  82, 115, 117,  -1,  -1},
+      { 82,  83, 116, 118,  -1,  -1},
+      { 83,  84, 117, 119,  -1,  -1},
+      { 84,  85, 118, 120,  -1,  -1},
+      { 85,  86, 119, 121,  -1,  -1},  // 120
+      { 86, 120, 122,  -1,  -1,  -1},
+      { 86,  87, 121, 123,  -1,  -1},
+      { 87,  88, 122, 124,  -1,  -1},
+      { 88,  89, 123, 125,  -1,  -1},
+      { 89,  90, 124, 126,  -1,  -1},
+      { 61,  90,  91, 125,  -1,  -1}   // 126
+  };
+
+  for (Int_t i=0; i<127; i++)
+      (*this)[i].SetNeighbors(nn[i][0], nn[i][1], nn[i][2],
+                              nn[i][3], nn[i][4], nn[i][5]);
+
+  InitOuterRing();
+}
+
+// --------------------------------------------------------------------------
+//
+//  Calculate the geometry information of CT1 and fill this information
+//  into the pixel objects.
+//
+void MGeomCamCT1Daniel::CreateCam()
+{
+    //
+    // fill the geometry class with the coordinates of the CT1 camera
+    //
+    //*fLog << inf << " Create CT1 geometry " << endl;
+
+    //
+    // this algorithm is from Martin Kestel originally
+    // it was punt into a root/C++ context by Harald Kornmayer and Thomas Bretz
+   
+    const Float_t diameter = 21;    // units are mm
+    const Float_t kS32  = sqrt(3)/2;
+
+    //
+    //  add the first pixel to the list
+    //
+    Int_t pixnum = 0;
+
+    (*this)[pixnum++].Set(0, 0, diameter);
+
+    for (Int_t ring=1; ring<7; ring++)
+    {
+        //
+        // calc. coords for this ring counting from the
+        // starting number to the ending number
+        //
+        for (int i=0; i<ring; i++)
+            (*this)[pixnum++].Set((ring-i*0.5)*diameter,
+                                  i*kS32*diameter,
+                                  diameter);
+
+        for (int i=0; i<ring; i++)
+            (*this)[pixnum++].Set((ring*0.5-i)*diameter,
+                                  ring*kS32 * diameter,
+                                  diameter);
+
+        for (int i=0; i<ring; i++)
+            (*this)[pixnum++].Set(-(ring+i)*0.5*diameter,
+                                  (ring-i)*kS32*diameter,
+                                  diameter);
+
+        for (int i=0; i<ring; i++)
+            (*this)[pixnum++].Set((0.5*i-ring)*diameter,
+                                  -i*kS32*diameter,
+                                  diameter);
+
+        for (int i=0; i<ring; i++)
+            (*this)[pixnum++].Set((i-ring*0.5)*diameter,
+                                  -ring*kS32 * diameter,
+                                  diameter);
+
+        for (int i=0; i<ring; i++)
+            (*this)[pixnum++].Set((ring+i)*0.5*diameter,
+                                  (-ring+i)*kS32*diameter,
+                                  diameter);
+    }
+}
+
Index: trunk/MagicSoft/Mars/mgeom/MGeomCamCT1Daniel.h
===================================================================
--- trunk/MagicSoft/Mars/mgeom/MGeomCamCT1Daniel.h	(revision 2282)
+++ trunk/MagicSoft/Mars/mgeom/MGeomCamCT1Daniel.h	(revision 2282)
@@ -0,0 +1,23 @@
+#ifndef MARS_MGeomCamCT1Daniel
+#define MARS_MGeomCamCT1Daniel
+
+#ifndef MARS_MGeomCam
+#include "MGeomCam.h"
+#endif
+
+class MGeomCamCT1Daniel : public MGeomCam
+{
+private:
+
+    void CreateCam();
+    void CreateNN();
+
+public:
+
+    MGeomCamCT1Daniel(const char *name=NULL);
+
+    ClassDef(MGeomCamCT1Daniel, 1)  // Geometry class for the CT1 camera (daniel's version)
+};
+
+#endif
+
Index: trunk/MagicSoft/Mars/mgeom/Makefile
===================================================================
--- trunk/MagicSoft/Mars/mgeom/Makefile	(revision 2281)
+++ trunk/MagicSoft/Mars/mgeom/Makefile	(revision 2282)
@@ -31,4 +31,5 @@
            MGeomCam.cc \
            MGeomCamCT1.cc \
+           MGeomCamCT1Daniel.cc \
            MGeomCamMagic.cc \
            MGeomCamMagicHG.cc \
Index: trunk/MagicSoft/Mars/mhist/MHMatrix.cc
===================================================================
--- trunk/MagicSoft/Mars/mhist/MHMatrix.cc	(revision 2281)
+++ trunk/MagicSoft/Mars/mhist/MHMatrix.cc	(revision 2282)
@@ -65,4 +65,5 @@
 #include "MParList.h"
 #include "MTaskList.h"
+#include "MProgressBar.h"
 
 #include "MData.h"
@@ -624,6 +625,8 @@
     tlist.AddToList(&fillh);
 
+    MProgressBar bar;
     MEvtLoop evtloop;
     evtloop.SetParList(plist);
+    evtloop.SetProgressBar(&bar);
 
     if (!evtloop.Eventloop())
Index: trunk/MagicSoft/Mars/mhist/MHOnSubtraction.cc
===================================================================
--- trunk/MagicSoft/Mars/mhist/MHOnSubtraction.cc	(revision 2281)
+++ trunk/MagicSoft/Mars/mhist/MHOnSubtraction.cc	(revision 2282)
@@ -1426,5 +1426,5 @@
 
 
-/*
+
 
 
@@ -1660,5 +1660,5 @@
 
 
-*/
+
 
 
@@ -1678,6 +1678,6 @@
   FitHistogram(*aHisto,	sigLiMa, lowerBin, upperBin, (Float_t)3.5, kFALSE);
 
-  if (sigLiMa < 3)
-    *fLog << err << "No significant excess (sigma=" << sigLiMa <<")!"<<endl;
+  //if (sigLiMa < 3)
+  //  *fLog << err << "No significant excess (sigma=" << sigLiMa <<")!"<<endl;
 
   if (signalRegion!=0) {
@@ -1691,4 +1691,6 @@
 		gammaSignal, errorGammaSignal, off, errorOff, 
 		(Float_t)3.0, draw);
+
+  fSignificance = sigLiMa;
   
   *fLog << inf << "Signal is " 
Index: trunk/MagicSoft/Mars/mhist/MHOnSubtraction.h
===================================================================
--- trunk/MagicSoft/Mars/mhist/MHOnSubtraction.h	(revision 2281)
+++ trunk/MagicSoft/Mars/mhist/MHOnSubtraction.h	(revision 2282)
@@ -48,4 +48,6 @@
   Int_t fSigniPlotColor;
 
+  Double_t fSignificance;
+
   Bool_t CalcAET(TH3D *histon, MParList *parlist, const Bool_t Draw);
 
@@ -75,4 +77,5 @@
 
   Double_t CalcSignificance(Double_t nOn, Double_t nOff, Double_t theta);
+  Double_t GetSignificance()  { return fSignificance; };
 
   void SetExpoSlope(Double_t slope) { fSlope = slope; }
Index: trunk/MagicSoft/Mars/mmontecarlo/MMcEnergyEst.h
===================================================================
--- trunk/MagicSoft/Mars/mmontecarlo/MMcEnergyEst.h	(revision 2281)
+++ trunk/MagicSoft/Mars/mmontecarlo/MMcEnergyEst.h	(revision 2282)
@@ -42,4 +42,7 @@
   Int_t   GetNevents()        const {return fNevents;}
 
+  Int_t   GetNumCoeffA()      const {return fA.GetSize(); }
+  Int_t   GetNumCoeffB()      const {return fB.GetSize(); }
+
   Double_t GetCoeff(Int_t i) { return i<fA.GetSize()? fA[i] : fB[i-fA.GetSize()]; }
 
