Ignore:
Timestamp:
08/01/02 09:31:18 (22 years ago)
Author:
tbretz
Message:
*** empty log message ***
Location:
trunk/MagicSoft/Mars/manalysis
Files:
3 edited

Legend:

Unmodified
Added
Removed
  • trunk/MagicSoft/Mars/manalysis/MHillas.cc

    r1434 r1465  
    126126    *fLog << all;
    127127    *fLog << "Basic Image Parameters (" << GetName() << ")" << endl;
    128     *fLog << " - Length   [mm]  = " << fLength << endl;
    129     *fLog << " - Width    [mm]  = " << fWidth  << endl;
    130     *fLog << " - Delta    [deg] = " << fDelta*kRad2Deg << endl;
    131     *fLog << " - Size     [1]   = " << fSize   << " #CherPhot"   << endl;
    132     *fLog << " - Meanx    [mm]  = " << fMeanX  << endl;
    133     *fLog << " - Meany    [mm]  = " << fMeanY  << endl;
    134     *fLog << " - atg(y/x) [deg] = " << atg     << endl;
     128    *fLog << " - Length      [mm]  = " << fLength << endl;
     129    *fLog << " - Width       [mm]  = " << fWidth  << endl;
     130    *fLog << " - Delta       [deg] = " << fDelta*kRad2Deg << endl;
     131    *fLog << " - Size        [1]   = " << fSize   << " #CherPhot"   << endl;
     132    *fLog << " - Meanx       [mm]  = " << fMeanX  << endl;
     133    *fLog << " - Meany       [mm]  = " << fMeanY  << endl;
     134    *fLog << " - atg(y/x)    [deg] = " << atg     << endl;
     135    *fLog << " - Used Pixels [#]   = " << fNumUsedPixels << " Pixels" << endl;
     136    *fLog << " - Core Pixels [#]   = " << fNumCorePixels << " Pixels" << endl;
    135137}
    136138
     
    160162
    161163    Clear();
     164
     165    if (fLength<0 || fWidth<0)
     166        return;
    162167
    163168    fEllipse = new TEllipse(fMeanX, fMeanY, fLength, fWidth,
  • trunk/MagicSoft/Mars/manalysis/MHillas.h

    r1434 r1465  
    2222    Float_t fMeanY;         // [mm]        y-coordinate of center of ellipse
    2323
     24    Short_t fNumUsedPixels; // Number of pixels which survived the image cleaning
     25    Short_t fNumCorePixels; // number of core pixels
     26
    2427    Float_t fSinDelta;      //! [1] sin of Delta (to be used in derived classes)
    2528    Float_t fCosDelta;      //! [1] cos of Delta (to be used in derived classes)
    26 
    27     Short_t fNumUsedPixels; // Number of pixels which survived the image cleaning
    28     Short_t fNumCorePixels; // number of core pixels
    2929
    3030    TEllipse *fEllipse;     //! Graphical Object to Display Ellipse
  • trunk/MagicSoft/Mars/manalysis/MHillasExt.cc

    r1460 r1465  
    1818!   Author(s): Thomas Bretz    12/2000 <mailto:tbretz@uni-sw.gwdg.de>
    1919!   Author(s): Rudolf Bock     10/2001 <mailto:Rudolf.Bock@cern.ch>
     20!   Author(s): Wolfgang Wittek 06/2002 <mailto:wittek@mppmu.mpg.de>
    2021!
    2122!   Copyright: MAGIC Software Development, 2000-2002
     
    3637// fM3Long   third moment along major axis
    3738// fM3Trans  third moment along minor axis
     39// fLeakage1 ratio : (photons in most outer ring of pixels) over fSize
     40// fLeakage2 ratio : (photons in the 2 outer rings of pixels) over fSize
     41//
     42// WARNING: Before you can use fAsym, fM3Long and fM3Trans you must
     43//          multiply by the sign of MHillasSrc::fCosAlphaDelta
    3844//
    3945////////////////////////////////////////////////////////////////////////////
     46/*
     47 // fAsymna   d/(d na) of ( sum(x*q^na)/sum(q^na), sum(y*q^na)/sum(q^na) )
     48 //           projected onto the major axis
     49 // fAsym0    (F-B)/(F+B) along the major axis
     50 */
    4051#include "MHillasExt.h"
    4152
     
    172183        /*
    173184         //
     185         // power na for calculating fAsymna;
     186         // the value 1.5 was suggested by Thomas Schweizer
     187         //
     188         Double_t na = 1.5;
     189
     190         //
    174191         // get sums for calculating fAsymna
    175192         // the outer pixels are 4 times as big (in area)
     
    201218
    202219    /*
    203 
    204      //
    205      // power na for calculating fAsymna;
    206      // the value 1.5 was suggested by Thomas Schweizer
    207      //
    208      Double_t na = 1.5;
    209 
    210220     fLeakage1 = edgepix1 / GetSize();
    211221     fLeakage2 = edgepix2 / GetSize();
Note: See TracChangeset for help on using the changeset viewer.