- Timestamp:
- Mar 19, 2020 4:35:21 PM (2 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
sans/Dev/trunk/NCNR_User_Procedures/Reduction/VSANS/V_Marquee_Operations.ipf
r1243 r1246 379 379 380 380 if(cmpstr(detStr,"FR") == 0) 381 Print "Reference Y-Center is corrected for tube #7 zero position"381 Print "Reference Y-Center is corrected for FR tube #7 zero position" 382 382 383 383 yCorrection = 61.70 - yCorrection 384 384 Print "yCorrection (pix) = ",yCorrection 385 385 Print "yCorrection (cm) = ",yCorrection*yPixSize 386 Print "FRONT Reference X-center (cm) = ",x_mm/10387 Print "FRONT Reference Y-center (cm) = ",y_mm/10 + yCorrection*yPixSize388 386 xRef = x_mm/10 389 387 yRef = y_mm/10 + yCorrection*yPixSize 388 Print "FRONT Reference X-center (cm) = ",xRef 389 Print "FRONT Reference Y-center (cm) = ",yRef 390 390 391 endif 391 392 392 393 if(cmpstr(detStr,"MR") == 0) 393 Print "Reference Y-Center is corrected for tube #10 zero position"394 Print "Reference Y-Center is corrected for MR tube #10 zero position" 394 395 395 396 yCorrection = 61.94 - yCorrection 396 397 Print "yCorrection (pix) = ",yCorrection 397 398 Print "yCorrection (cm) = ",yCorrection*yPixSize 398 Print "MIDDLE Reference X-center (cm) = ",x_mm/10399 Print "MIDDLE Reference Y-center (cm) = ",y_mm/10 + yCorrection*yPixSize400 399 xRef = x_mm/10 401 400 yRef = y_mm/10 + yCorrection*yPixSize 401 Print "MIDDLE Reference X-center (cm) = ",xRef 402 Print "MIDDLE Reference Y-center (cm) = ",yRef 403 402 404 endif 403 405 404 406 // if measured on the LEFT panel, convert to the RIGHT coordinates for the reference value 405 407 // these corrections are exactly the opposite (subtract, not add) of what is done in V_fDeriveBeamCenters(xFR,yFR,xMR,yMR) 408 // since the lateral scans to determine the relative centers were done at the same time 409 // the pixel values for the zero are on the same y-level, set by the beam height 410 // 406 411 if(cmpstr(detStr,"FL") == 0) 407 Print "FRONT Reference X-center (cm) = ",x_mm/10 - kBCtrOffset_FL_x // NEW Dec 2018 values 408 Print "FRONT Reference Y-center (cm) = ",y_mm/10 - kBCtrOffset_FL_y 412 Print "Reference Y-Center is corrected for FR tube #7 zero position" 413 414 yCorrection = 61.70 - yCorrection 415 Print "yCorrection (pix) = ",yCorrection 416 Print "yCorrection (cm) = ",yCorrection*yPixSize 409 417 xRef = x_mm/10 - kBCtrOffset_FL_x 410 yRef = y_mm/10 - kBCtrOffset_FL_y 418 yRef = y_mm/10 - kBCtrOffset_FL_y + yCorrection*yPixSize 419 Print "FRONT Reference X-center (cm) = ",xRef // NEW Dec 2018 values 420 Print "FRONT Reference Y-center (cm) = ",yRef 421 411 422 endif 412 423 413 424 if(cmpstr(detStr,"ML") == 0) 414 Print "MIDDLE Reference X-center (cm) = ",x_mm/10 - kBCtrOffset_ML_x 415 Print "MIDDLE Reference Y-center (cm) = ",y_mm/10 - kBCtrOffset_ML_y 425 Print "Reference Y-Center is corrected for MR tube #10 zero position" 426 427 yCorrection = 61.94 - yCorrection 428 Print "yCorrection (pix) = ",yCorrection 429 Print "yCorrection (cm) = ",yCorrection*yPixSize 416 430 xRef = x_mm/10 - kBCtrOffset_ML_x 417 yRef = y_mm/10 - kBCtrOffset_ML_y 431 yRef = y_mm/10 - kBCtrOffset_ML_y + yCorrection*yPixSize 432 Print "MIDDLE Reference X-center (cm) = ",xRef 433 Print "MIDDLE Reference Y-center (cm) = ",yRef 434 418 435 endif 419 436 endif
Note: See TracChangeset
for help on using the changeset viewer.