Ignore:
Timestamp:
03/15/09 15:31:10 (16 years ago)
Author:
tbretz
Message:
*** empty log message ***
Location:
trunk/MagicSoft/Mars/mgeom
Files:
3 edited

Legend:

Unmodified
Added
Removed
  • trunk/MagicSoft/Mars/mgeom/MGeomCam.cc

    r9385 r9398  
    320320// --------------------------------------------------------------------------
    321321//
     322// Return the total area of the camera
     323//
     324Float_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//
    322335// Returns the distance between the pixels i and j. -1 if an index
    323336// doesn't exist. The default for j is 0. Assuming that 0 is the index
  • trunk/MagicSoft/Mars/mgeom/MGeomCam.h

    r9385 r9398  
    9191    Float_t GetAngle(UShort_t i, UShort_t j=0) const;
    9292
     93    Float_t GetA() const;
     94
    9395    Float_t GetPixRatio(UInt_t i) const;
    9496    Float_t GetPixRatioSqrt(UInt_t i) const;
  • trunk/MagicSoft/Mars/mgeom/MGeomCamMagic.cc

    r9385 r9398  
    3333////////////////////////////////////////////////////////////////////////////
    3434#include "MGeomCamMagic.h"
     35
     36#include <TMath.h>
    3537
    3638#include "MGeomPix.h"
Note: See TracChangeset for help on using the changeset viewer.