Index: trunk/MagicSoft/Mars/Changelog
===================================================================
--- trunk/MagicSoft/Mars/Changelog	(revision 1999)
+++ trunk/MagicSoft/Mars/Changelog	(revision 2000)
@@ -1,4 +1,11 @@
                                                  -*-*- END OF LINE -*-*-
 
+ 2003/04/24: Thomas Bretz
+    
+    * mfilter/MFCT1Supercuts.[h,cc]:
+      - removed
+
+
+      
  2003/04/24: Wolfgang Wittek
 
@@ -29,10 +36,14 @@
         and pixels_in_lut->gsPixelsInLut
       - added destructor
-      
+
+
 
  2003/04/23: Thomas Bretz
 
-    * mhist/MHCerPhotEvt.[h,cc]:
-      - updated dox
+   * mhist/MHCerPhotEvt.[h,cc]:
+     - updated dox
+
+   * manalysis/MCT1SupercutsCalc.h, manalysis/MPadSchweizer.h:
+     - ClassDef -> 0
 
    * NEWS:
@@ -44,4 +55,7 @@
    * mhist/MFillH.[h,cc]:
      - implemented fWeight
+     - adapted StreamPrimitive
+     - changed fCanvas to //!
+     - changed class version umber from 1 to 2
    
    * mhist/MH.[h,cc], mhist/MHAlphaEnergyTheta.[h,cc],
Index: trunk/MagicSoft/Mars/mfilter/MFCT1Supercuts.cc
===================================================================
--- trunk/MagicSoft/Mars/mfilter/MFCT1Supercuts.cc	(revision 1999)
+++ 	(revision )
@@ -1,281 +1,0 @@
-/* ======================================================================== *\
-!
-! *
-! * 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): Wolfgang Wittek  04/2003 <mailto:wittek@mppmu.mpg.de>
-
-!   Copyright: MAGIC Software Development, 2000-2003
-!
-!
-\* ======================================================================== */
-
-/////////////////////////////////////////////////////////////////////////////
-//                                                                         //
-//   MFCT1Supercuts                                                        //
-//                                                                         //
-/////////////////////////////////////////////////////////////////////////////
-#include "MFCT1Supercuts.h"
-
-#include <math.h>
-#include <fstream.h>
-
-#include "MLog.h"
-#include "MLogManip.h"
-
-#include "MParList.h"
-#include "MHillasExt.h"
-#include "MHillasSrc.h"
-#include "MMcEvt.hxx"
-#include "MCerPhotEvt.h"
-#include "MGeomCam.h"
-
-ClassImp(MFCT1Supercuts);
-
-void MFCT1Supercuts::InitParams()
-{
-    //---------------------------------
-    // cut parameters
-    fLengthUp[0] = 0.315585; 
-    fLengthUp[1] = 0.001455; 
-    fLengthUp[2] = 0.203198; 
-    fLengthUp[3] = 0.005532; 
-    fLengthUp[4] =-0.001670;
-    fLengthUp[5] =-0.020362; 
-    fLengthUp[6] = 0.007388; 
-    fLengthUp[7] =-0.013463;
-
-    fWidthUp[0] = 0.145412; 
-    fWidthUp[1] =-0.001771; 
-    fWidthUp[2] = 0.054462; 
-    fWidthUp[3] = 0.022280; 
-    fWidthUp[4] =-0.009893;
-    fWidthUp[5] = 0.056353; 
-    fWidthUp[6] = 0.020711; 
-    fWidthUp[7] =-0.016703;
-
-    fDistUp[0] = 1.787943; 
-    fDistUp[1] = 0.; 
-    fDistUp[2] = 2.942310; 
-    fDistUp[3] = 0.199815; 
-    fDistUp[4] = 0.; 
-    fDistUp[5] = 0.249909;
-    fDistUp[6] = 0.189697; 
-    fDistUp[7] = 0.;
-
-    fLengthLo[0] = 0.151530; 
-    fLengthLo[1] = 0.028323; 
-    fLengthLo[2] = 0.510707; 
-    fLengthLo[3] = 0.053089; 
-    fLengthLo[4] = 0.013708;
-    fLengthLo[5] = 2.357993; 
-    fLengthLo[6] = 0.000080; 
-    fLengthLo[7] =-0.007157;
-
-    fWidthLo[0] = 0.089187; 
-    fWidthLo[1] =-0.006430; 
-    fWidthLo[2] = 0.074442; 
-    fWidthLo[3] = 0.003738;
-    fWidthLo[4] =-0.004256; 
-    fWidthLo[5] =-0.014101; 
-    fWidthLo[6] = 0.006126; 
-    fWidthLo[7] =-0.002849;
-
-    distlow[0] = 0.589406; 
-    distlow[1] = 0.; 
-    distlow[2] =-0.083964; 
-    distlow[3] =-0.007975; 
-    distlow[4] = 0.; 
-    distlow[5] = 0.045374;
-    distlow[6] =-0.001750; 
-    distlow[7] = 0.;
-
-    fAsymUp[0] = 0.061267; 
-    fAsymUp[1] = 0.014462; 
-    fAsymUp[2] = 0.014327; 
-    fAsymUp[3] = 0.014540; 
-    fAsymUp[4] = 0.013391;
-    fAsymUp[5] = 0.012319; 
-    fAsymUp[6] = 0.010444; 
-    fAsymUp[7] = 0.008328;
-
-    fAsymLo[0] =-0.012055; 
-    fAsymLo[1] = 0.009157; 
-    fAsymLo[2] = 0.005441; 
-    fAsymLo[3] = 0.000399; 
-    fAsymLo[4] = 0.001433;
-    fAsymLo[5] =-0.002050; 
-    fAsymLo[6] =-0.000104; 
-    fAsymLo[7] =-0.001188;
-
-    fAlphaUp[0] = 13.123440; 
-    fAlphaUp[1] = 0.; 
-    fAlphaUp[2] = 0.; 
-    fAlphaUp[3] = 0.; 
-    fAlphaUp[4] = 0.; 
-    fAlphaUp[5] = 0.; 
-    fAlphaUp[6] = 0.; 
-    fAlphaUp[7] = 0.;
-    //---------------------------------
-}
-
-// --------------------------------------------------------------------------
-//
-MFCT1Supercuts::MFCT1Supercuts(const char *hilname, const char *hilsrcname, 
-                               const char *name, const char *title) 
-{
-    fName  = name  ? name  : "MFCT1Supercuts";
-    fTitle = title ? title : "Class to evaluate the Supercuts";
-
-    fHilName    = hilname;
-    fHilSrcName = hilsrcname;
-
-    InitParams();
-}
-
-// --------------------------------------------------------------------------
-//
-Bool_t MFCT1Supercuts::PreProcess(MParList *pList)
-{
-    fHil    = (MHillasExt*)pList->FindObject(fHilName, "MHillasExt");
-    if (!fHil)
-    {
-      *fLog << dbginf << "MHillasExt object " << fHilName << " not found... aborting." << endl;
-      return kFALSE;
-    }
-
-    fHilSrc = (MHillasSrc*)pList->FindObject(fHilSrcName, "MHillasSrc");
-    if (!fHilSrc)
-    {
-      *fLog << dbginf << "MHillasSrc object " << fHilSrcName << " not found... aborting." << endl;
-      return kFALSE;
-    }
-
-    fMcEvt = (MMcEvt*)pList->FindObject("MMcEvt");
-    if (!fMcEvt)
-    {
-        *fLog << dbginf << "MMcEvt not found... aborting." << endl;
-        return kFALSE;
-    }
-
-    fEvt = (MCerPhotEvt*)pList->FindObject("MCerPhotEvt");
-    if (!fEvt)
-    {
-        *fLog << dbginf << "MCerPhotEvt not found... aborting." << endl;
-        return kFALSE;
-    }
-
-    fCam = (MGeomCam*)pList->FindObject("MGeomCam");
-    if (!fCam)
-    {
-        *fLog << dbginf << "MGeomCam (Camera Geometry) missing in Parameter List... aborting." << endl;
-        return kFALSE;
-    }
-    fMm2Deg = fCam->GetConvMm2Deg();
-
-    return kTRUE;
-}
-
-// --------------------------------------------------------------------------
-//
-// Calculation of upper and lower limits
-//
-Double_t MFCT1Supercuts::CtsMCut(Double_t *a,  Double_t ls, Double_t ct,
-                                 Double_t ls2, Double_t dd2)
-{
-  // define cut-function
-  //
-  //    dNOMLOGSIZE = 4.1 (=log(60.0)
-  //    dNOMCOSZA   = 1.0
-  //
-  //      a: array of cut parameters
-  //     ls: log(SIZE) - dNOMLOGSIZE
-  //    ls2: ls^2
-  //     ct: Cos(ZA.) - dNOMCOSZA
-  //    dd2: DIST^2
-
-    const Double_t limit =
-               a[0] + a[1] * dd2 + a[2] * ct  +
-        ls  * (a[3] + a[4] * dd2 + a[5] * ct) +
-        ls2 * (a[6] + a[7] * dd2);
-/*
-  *fLog << "MFCT1Supercuts::Process; *a = "
-        << *a     << ",  " << *(a+1) << ",  " << *(a+2) << ",  " 
-        << *(a+3) << ",  " << *(a+4) << ",  " << *(a+5) << ",  " 
-        << *(a+6) << ",  " << *(a+7) << endl;
-
-  *fLog << "MFCT1Supercuts::Process; ls, ls2, ct, dd2, limit = " << ls 
-        << ",  " << ls2 << ",  " << ct << ",  " << dd2 << ",  "
-        << limit << endl; 
-*/
-  return limit;
-}
-
-// ---------------------------------------------------------------------------
-//
-// Evaluate supercuts for CT1 Mkn421 2001 (Daniel Kranich)
-//
-Bool_t MFCT1Supercuts::Process()
-{
-  // apply dynamical Scuts 
-  // optimized for mkn 421 2001 data
-
-  Double_t dNOMLOGSIZE = 4.1;
-  Double_t dNOMCOSZA   = 1.0;
-
-
-  Double_t newdist = fHilSrc->GetDist()          * fMm2Deg;
-
-  Double_t xbar    = fHil->GetMeanX();
-  Double_t ybar    = fHil->GetMeanY();
-  Double_t dist    = sqrt(xbar*xbar + ybar*ybar) * fMm2Deg;
-  Double_t dd2     = dist * dist;
-
-  Double_t dmls    = log(fHil->GetSize())           - dNOMLOGSIZE;
-  Double_t dmls2   = dmls * dmls;
-
-  Double_t dmcza = cos(fMcEvt->GetTelescopeTheta()) - dNOMCOSZA;
-
-  Double_t length  = fHil->GetLength()           *fMm2Deg;
-  Double_t width   = fHil->GetWidth()            *fMm2Deg;
-
-  *fLog << "MFCT1Supercuts::Process; dmls, dmcza, dmls2, dd2 = "
-        << dmls << ",  " << dmcza << ",  " << dmls2 << ",  "
-        << dd2 << endl;
-
-  *fLog << "MFCT1Supercuts::Process; newdist, dist, length, width = "
-        << newdist << ",  " << dist << ",  " << length << ",  "
-        << width << endl;
-
-  if (    newdist  < 1.05
-       && newdist  < CtsMCut (fDistUp,    dmls, dmcza, dmls2, dd2)
-       && newdist  > CtsMCut (distlow,   dmls, dmcza, dmls2, dd2)
-       && dist     < 1.05
-       && length   < CtsMCut (fLengthUp,  dmls, dmcza, dmls2, dd2)
-       && length   > CtsMCut (fLengthLo, dmls, dmcza, dmls2, dd2)
-       && width    < CtsMCut (fWidthUp,   dmls, dmcza, dmls2, dd2)
-       && width    > CtsMCut (fWidthLo,  dmls, dmcza, dmls2, dd2)
-       //&& asym   < CtsMCut (fAsymUp,    dmls, dmcza, dmls2, dd2)
-       //&& asym   > CtsMCut (fAsymLo,   dmls, dmcza, dmls2, dd2)
-       && dist     < CtsMCut (fDistUp,    dmls, dmcza, dmls2, dd2)
-       && dist     > CtsMCut (distlow,   dmls, dmcza, dmls2, dd2)  )
-    fResult = kTRUE;
-  else
-    fResult = kFALSE;
-
-  return kTRUE;
-}
-// ---------------------------------------------------------------------------
-
Index: trunk/MagicSoft/Mars/mfilter/MFCT1Supercuts.h
===================================================================
--- trunk/MagicSoft/Mars/mfilter/MFCT1Supercuts.h	(revision 1999)
+++ 	(revision )
@@ -1,73 +1,0 @@
-#ifndef MARS_MFCT1Supercuts
-#define MARS_MFCT1Supercuts
-
-/////////////////////////////////////////////////////////////////////////////
-//                                                                         //
-// MFCT1Supercuts                                                          //
-//                                                                         //
-/////////////////////////////////////////////////////////////////////////////
-
-#ifndef MARS_MFilter
-#include "MFilter.h"
-#endif
-
-class MParList;
-class MHillas;
-class MHillasSrc;
-class MMcEvt;
-class MCerPhotEvt;
-class MGeomCam;
-
-
-class MFCT1Supercuts : public MFilter
-{
-private:
-    MHillas     *fHil;
-    MHillasSrc  *fHilSrc;
-    MMcEvt      *fMcEvt;
-    MCerPhotEvt *fEvt;
-    MGeomCam    *fCam;   
-
-    TString     fHilName;
-    TString     fHilSrcName;
-
-    Double_t    fMm2Deg;
-
-    Bool_t      fResult; //!
-
-    //---------------------------------
-    // cut parameters
-    Double_t fLengthUp[8];
-    Double_t fWidthUp[8];
-    Double_t fDistUp[8];
-    Double_t fLengthLo[8];
-    Double_t fWidthLo[8];
-    Double_t distlow[8];
-    Double_t fAsymUp[8];
-    Double_t fAsymLo[8];
-    Double_t fAlphaUp[8];
-    //---------------------------------
-
-    void InitParams();
-
-public:
-    MFCT1Supercuts(const char *hilname="MHillas", 
-                   const char *hilsrcname="MHillasSrc",
-                   const char *name=NULL, const char *title=NULL);
-
-    Double_t CtsMCut(Double_t *a, Double_t ls, Double_t ct, 
-                     Double_t ls2, Double_t dd2);
-
-    Bool_t IsExpressionTrue() const { return fResult; }
-    Bool_t PreProcess(MParList *pList);
-    Bool_t Process();
-
-    ClassDef(MFCT1Supercuts, 1) // A class to evaluate the Supercuts
-};
-
-#endif
-
-
-
-
-
