Ignore:
Timestamp:
10/15/02 17:02:46 (22 years ago)
Author:
tbretz
Message:
*** empty log message ***
Location:
trunk/MagicSoft/Mars/mgeom
Files:
2 edited

Legend:

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

    r1458 r1540  
    112112// --------------------------------------------------------------------------
    113113//
     114//  returns the ratio of the area of the given pixel to the pixel with
     115//  the id 0 to scale variables with the pixel size.
     116//
     117inline Float_t MGeomCam::GetPixRatio(Int_t i) const
     118{
     119    return (*this)[0].GetA()/(*this)[i].GetA();
     120}
     121
     122// --------------------------------------------------------------------------
     123//
    114124//  Prints the Geometry information of all pixels in the camera
    115125//
  • trunk/MagicSoft/Mars/mgeom/MGeomCam.h

    r1458 r1540  
    3131    virtual ~MGeomCam();
    3232
    33     Float_t GetCameraDist() const { return fCamDist; }
    34     Float_t GetConvMm2Deg() const { return fConvMm2Deg; }
     33    Float_t GetCameraDist() const      { return fCamDist; }
     34    Float_t GetConvMm2Deg() const      { return fConvMm2Deg; }
    3535
    36     UInt_t  GetNumPixels() const { return fNumPixels; }
    37     Float_t GetMaxRadius() const { return fMaxRadius; }
     36    UInt_t  GetNumPixels() const       { return fNumPixels; }
     37    Float_t GetMaxRadius() const       { return fMaxRadius; }
     38    Float_t GetPixRatio(Int_t i) const;
    3839
    3940    MGeomPix &operator[](Int_t i)       { return *(MGeomPix*)fPixels->UncheckedAt(i); }
    4041    MGeomPix &operator[](Int_t i) const { return *(MGeomPix*)fPixels->UncheckedAt(i); }
     42
     43
    4144
    4245    virtual void Print(Option_t *opt=NULL) const;
Note: See TracChangeset for help on using the changeset viewer.