Changeset 5283
- Timestamp:
- 10/18/04 18:48:57 (20 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/MagicSoft/AMC/activemirrorcontrol/activemirrorcontrol/amcmirrorpanel.cpp
r4508 r5283 17 17 #include <math.h> 18 18 #include <qstring.h> 19 20 extern bool g_zInfinityFocus; 19 21 20 22 AMCMirrorPanel::AMCMirrorPanel( int i, int j, int iType, int iPort, int iBox, int iDriver) … … 66 68 // paper or styropor surface) to the PMT camera 67 69 // plane (front of winston cone surface) 70 const double kDistInfinityFocus = 30.0; // Difference in focal plane for 71 // 10 km and infinity focusing. 68 72 69 73 /* … … 199 203 */ 200 204 double dFocus = kDistMirror + kFocPlaneRoque; 201 double dCorrection2 = (dMirrorRadius / (dFocus - dHeightMirror - kDistWinstonCones) ) * kDistWinstonCones; 205 double dFocusShift; 206 if ( g_zInfinityFocus ) 207 dFocusShift = kDistWinstonCones + kDistInfinityFocus; 208 else 209 dFocusShift = kDistWinstonCones; 210 211 double dCorrection2 = (dMirrorRadius / (dFocus - dHeightMirror - dFocusShift) ) * dFocusShift; 202 212 203 213 return ( (dCorrection1 + dCorrection2) / 2.0 );
Note:
See TracChangeset
for help on using the changeset viewer.