Changeset 9398
- Timestamp:
- 03/15/09 15:31:10 (16 years ago)
- Location:
- trunk/MagicSoft/Mars
- Files:
-
- 4 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/MagicSoft/Mars/Changelog
r9394 r9398 18 18 19 19 -*-*- END OF LINE -*-*- 20 2009/03/15 Thomas Bretz 21 22 * mgeom/MGeomCam.[h,cc]: 23 - added member function to get the total sensitive area of the 24 camera 25 26 * mgeom/MGeomCamMagic.cc: 27 - included TMath for newer root versions 28 29 30 20 31 2009/03/07 Thomas Bretz 21 32 -
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.