Changeset 9398


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

Legend:

Unmodified
Added
Removed
  • trunk/MagicSoft/Mars/Changelog

    r9394 r9398  
    1818
    1919                                                 -*-*- 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
    2031 2009/03/07 Thomas Bretz
    2132
  • 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.