Ignore:
Timestamp:
05/04/04 15:27:25 (21 years ago)
Author:
tbretz
Message:
*** empty log message ***
Location:
trunk/MagicSoft/Mars/mhist
Files:
2 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)
  • trunk/MagicSoft/Mars/mhist/MHCamera.h

    r3929 r3957  
    4747//#endif
    4848
     49    Float_t fAbberation;
     50
    4951    void Init();
    5052
     
    188190    void     Draw(Option_t *option="");
    189191    TObject *DrawClone(Option_t *option="") const;
    190     void     DrawProjection (Int_t fit=0) const;       
    191     void     DrawRadialProfile()           const;       
     192    void     DrawProjection (Int_t fit=0) const;
     193    void     DrawRadialProfile()           const;
    192194
    193195    void     SavePrimitive(ofstream &out, Option_t *);
     
    209211    Bool_t   IsFreezed() const { return TestBit(kFreezed); }
    210212    //void  SetOptStat(Int_t os=-1) { fOptStat = os; } // *MENU*
     213
     214    void     SetAbberation(Float_t f=0.0713) { fAbberation=f; } // *MENU*
    211215
    212216    void     AddNotify(TObject *event);
Note: See TracChangeset for help on using the changeset viewer.