Ignore:
Timestamp:
03/21/05 16:37:00 (20 years ago)
Author:
tbretz
Message:
*** empty log message ***
File:
1 edited

Legend:

Unmodified
Added
Removed
  • 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//
Note: See TracChangeset for help on using the changeset viewer.