Changeset 9398 for trunk/MagicSoft/Mars/mgeom
- Timestamp:
- 03/15/09 15:31:10 (16 years ago)
- Location:
- trunk/MagicSoft/Mars/mgeom
- Files:
-
- 3 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/MagicSoft/Mars/mgeom/MGeomCam.cc
r9385 r9398 320 320 // -------------------------------------------------------------------------- 321 321 // 322 // Return the total area of the camera 323 // 324 Float_t MGeomCam::GetA() const 325 { 326 Double_t A = 0; 327 for (unsigned int i=0; i<fNumPixels; i++) 328 A += (*this)[i].GetA(); 329 330 return A; 331 } 332 333 // -------------------------------------------------------------------------- 334 // 322 335 // Returns the distance between the pixels i and j. -1 if an index 323 336 // doesn't exist. The default for j is 0. Assuming that 0 is the index -
trunk/MagicSoft/Mars/mgeom/MGeomCam.h
r9385 r9398 91 91 Float_t GetAngle(UShort_t i, UShort_t j=0) const; 92 92 93 Float_t GetA() const; 94 93 95 Float_t GetPixRatio(UInt_t i) const; 94 96 Float_t GetPixRatioSqrt(UInt_t i) const; -
trunk/MagicSoft/Mars/mgeom/MGeomCamMagic.cc
r9385 r9398 33 33 //////////////////////////////////////////////////////////////////////////// 34 34 #include "MGeomCamMagic.h" 35 36 #include <TMath.h> 35 37 36 38 #include "MGeomPix.h"
Note:
See TracChangeset
for help on using the changeset viewer.