Changeset 3957 for trunk/MagicSoft/Mars/mhist/MHCamera.cc
- Timestamp:
- 05/04/04 15:27:25 (21 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/MagicSoft/Mars/mhist/MHCamera.cc
r3953 r3957 34 34 // To change the scale to a logarithmic scale SetLogy() of the Pad. 35 35 // 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 // 36 45 // Be carefull: Entries in this context means Entries/bin or Events 37 46 // … … 102 111 // Default Constructor. To be used by the root system ONLY. 103 112 // 104 MHCamera::MHCamera() : TH1D(), fGeomCam(NULL), fColors(kItemsLegend) 113 MHCamera::MHCamera() : TH1D(), fGeomCam(NULL), fColors(kItemsLegend), fAbberation(0) 105 114 { 106 115 Init(); … … 114 123 // 115 124 MHCamera::MHCamera(const MGeomCam &geom, const char *name, const char *title) 116 : fGeomCam(NULL), fColors(kItemsLegend) 125 : fGeomCam(NULL), fColors(kItemsLegend), fAbberation(0) 117 126 { 118 127 //fGeomCam = (MGeomCam*)geom.Clone(); … … 759 768 const MGeomPix &pix = (*fGeomCam)[i]; 760 769 761 const Float_t x = pix.GetX()*conv;762 const Float_t y = pix.GetY()*conv;763 constFloat_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; 764 773 765 774 if (!isbox)
Note:
See TracChangeset
for help on using the changeset viewer.