Ignore:
Timestamp:
02/13/02 16:40:37 (23 years ago)
Author:
tbretz
Message:
*** empty log message ***
Location:
trunk/MagicSoft/Mars/mgui
Files:
4 edited

Legend:

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

    r1082 r1216  
    4949// are deleted when the corresponding array is deleted.
    5050//
    51 MGeomCam::MGeomCam(UInt_t npix, const char *name, const char *title)
    52     : fNumPixels(npix)
     51MGeomCam::MGeomCam(UInt_t npix, Float_t dist, const char *name, const char *title)
     52    : fNumPixels(npix), fCamDist(dist), fMm2Deg(kRad2Deg/(dist*1000))
    5353{
    5454    fName  = name  ? name  : "MGeomCam";
  • trunk/MagicSoft/Mars/mgui/MGeomCam.h

    r1052 r1216  
    1717    Float_t  fMaxRadius;  // maximum radius of the camera (eg. for GUI layout)
    1818
     19    Float_t  fCamDist;    // [m] Average distance of the camera from the mirror
     20    Float_t  fMm2Deg;     // conversion factor to convert mm in the camera plain into degrees
     21
    1922    TObjArray *fPixels;   // Array of singel pixels storing the geometry
    2023
     
    2427public:
    2528
    26     MGeomCam(UInt_t npix, const char *name=NULL, const char *title=NULL);
     29    MGeomCam(UInt_t npix, Float_t dist, const char *name=NULL, const char *title=NULL);
    2730
    2831    virtual ~MGeomCam();
     32
     33    Float_t GetCameraDist() const { return fCamDist; }
     34    Float_t GetConvMm2Deg() const { return fMm2Deg; }
    2935
    3036    UInt_t  GetNumPixels() const { return fNumPixels; }
  • trunk/MagicSoft/Mars/mgui/MGeomCamCT1.cc

    r1082 r1216  
    5353//  CreateCam and CreateNN
    5454//
    55 MGeomCamCT1::MGeomCamCT1(const char *name) : MGeomCam(127, name, "Geometry information of CT1 camera")
     55MGeomCamCT1::MGeomCamCT1(const char *name)
     56    : MGeomCam(127, 4.88, name, "Geometry information of CT1 camera")
    5657{
    5758    CreateCam();
  • trunk/MagicSoft/Mars/mgui/MGeomCamMagic.cc

    r1082 r1216  
    4242#include "MGeomPix.h"
    4343
    44 ClassImp(MGeomCamMagic)
     44ClassImp(MGeomCamMagic);
    4545
    4646// --------------------------------------------------------------------------
     
    4949//  CreateCam and CreateNN
    5050//
    51 MGeomCamMagic::MGeomCamMagic(const char *name) : MGeomCam(577, name, "Geometry information of Magic Camera")
     51MGeomCamMagic::MGeomCamMagic(const char *name)
     52    : MGeomCam(577, 17, name, "Geometry information of Magic Camera")
    5253{
    5354    CreateCam();
Note: See TracChangeset for help on using the changeset viewer.