Changeset 6871 for trunk/MagicSoft/Mars


Ignore:
Timestamp:
03/21/05 16:37:00 (20 years ago)
Author:
tbretz
Message:
*** empty log message ***
Location:
trunk/MagicSoft/Mars
Files:
3 edited

Legend:

Unmodified
Added
Removed
  • trunk/MagicSoft/Mars/Changelog

    r6870 r6871  
    6868     - for some output there was a replacement of pix.GetPixId()
    6969       by hist.GetName() <undocumented>
     70
     71   * mimage/MHillas.[h,cc]:
     72     - added new member function GetBorderLine returning the border
     73       line correspondig to an ellipse with axis lnegth and width
     74     - added new member function GetArea returning the area
     75       correspondig to an ellipse with axis lnegth and width
    7076
    7177
  • trunk/MagicSoft/Mars/mimage/MHillas.cc

    r6869 r6871  
    118118// --------------------------------------------------------------------------
    119119//
     120//  Analytical estimation of length of border line:
     121//    U = pi*(a+b - sqrt(a*b))
     122//
     123//  GetBorderLine() [mm]
     124//
     125Double_t MHillas::GetBorderLine() const
     126{
     127    const Double_t a = fWidth+fLength;
     128    const Double_t s = fWidth*fLength;
     129
     130    return TMath::Pi()*(1.5*a - TMath::Sqrt(s));
     131}
     132
     133// --------------------------------------------------------------------------
     134//
     135//  Analytical estimation of length of border line:
     136//    A = pi*a*b
     137//
     138//  GetArea() [mm^2]
     139//
     140Double_t MHillas::GetArea() const
     141{
     142    return TMath::Pi()*fWidth*fLength;
     143}
     144
     145// --------------------------------------------------------------------------
     146//
    120147// Print the hillas Parameters to *fLog
    121148//
  • trunk/MagicSoft/Mars/mimage/MHillas.h

    r6855 r6871  
    4747    TVector2 GetMean() const;
    4848
     49    Double_t GetBorderLine() const;
     50    Double_t GetArea() const;
     51
    4952    Float_t GetCosDelta() const { return fCosDelta; }
    5053    Float_t GetSinDelta() const { return fSinDelta; }
Note: See TracChangeset for help on using the changeset viewer.