Ignore:
Timestamp:
05/04/04 15:27:25 (21 years ago)
Author:
tbretz
Message:
*** empty log message ***
File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/MagicSoft/Mars/mhist/MHCamera.cc

    r3953 r3957  
    3434// To change the scale to a logarithmic scale SetLogy() of the Pad.
    3535//
     36// You can correct for the abberation. Assuming that the distance
     37// between the mean position of the light distribution and the position
     38// of a perfect reflection on a perfect mirror in the distance r on
     39// the camera plane is dr it is  d = a*dr  while a is the abberation
     40// constant (for the MAGIC mirror it is roughly 0.0713). You can
     41// set this constant by calling SetAbberation(a) which results in a
     42// 'corrected' display (all outer pixels are shifted towards the center
     43// of the camera to correct for this abberation)
     44//
    3645// Be carefull: Entries in this context means Entries/bin or Events
    3746//
     
    102111//  Default Constructor. To be used by the root system ONLY.
    103112//
    104 MHCamera::MHCamera() : TH1D(), fGeomCam(NULL), fColors(kItemsLegend)
     113MHCamera::MHCamera() : TH1D(), fGeomCam(NULL), fColors(kItemsLegend), fAbberation(0)
    105114{
    106115    Init();
     
    114123//
    115124MHCamera::MHCamera(const MGeomCam &geom, const char *name, const char *title)
    116 : fGeomCam(NULL), fColors(kItemsLegend)
     125: fGeomCam(NULL), fColors(kItemsLegend), fAbberation(0)
    117126{
    118127    //fGeomCam = (MGeomCam*)geom.Clone();
     
    759768        const MGeomPix &pix = (*fGeomCam)[i];
    760769
    761         const Float_t x = pix.GetX()*conv;
    762         const Float_t y = pix.GetY()*conv;
    763         const Float_t d = pix.GetD()*conv;
     770        Float_t x = pix.GetX()*conv/(fAbberation+1);
     771        Float_t y = pix.GetY()*conv/(fAbberation+1);
     772        Float_t d = pix.GetD()*conv;
    764773
    765774        if (!isbox)
Note: See TracChangeset for help on using the changeset viewer.