Changeset 6871 for trunk/MagicSoft/Mars
- Timestamp:
- 03/21/05 16:37:00 (20 years ago)
- Location:
- trunk/MagicSoft/Mars
- Files:
-
- 3 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/MagicSoft/Mars/Changelog
r6870 r6871 68 68 - for some output there was a replacement of pix.GetPixId() 69 69 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 70 76 71 77 -
trunk/MagicSoft/Mars/mimage/MHillas.cc
r6869 r6871 118 118 // -------------------------------------------------------------------------- 119 119 // 120 // Analytical estimation of length of border line: 121 // U = pi*(a+b - sqrt(a*b)) 122 // 123 // GetBorderLine() [mm] 124 // 125 Double_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 // 140 Double_t MHillas::GetArea() const 141 { 142 return TMath::Pi()*fWidth*fLength; 143 } 144 145 // -------------------------------------------------------------------------- 146 // 120 147 // Print the hillas Parameters to *fLog 121 148 // -
trunk/MagicSoft/Mars/mimage/MHillas.h
r6855 r6871 47 47 TVector2 GetMean() const; 48 48 49 Double_t GetBorderLine() const; 50 Double_t GetArea() const; 51 49 52 Float_t GetCosDelta() const { return fCosDelta; } 50 53 Float_t GetSinDelta() const { return fSinDelta; }
Note:
See TracChangeset
for help on using the changeset viewer.