Ignore:
Timestamp:
May 22, 2018 3:29:01 PM (4 years ago)
Author:
srkline
Message:

bug fixes for the back detector dimensions and beam center (pixels)

File:
1 edited

Legend:

Unmodified
Added
Removed
  • sans/Dev/trunk/NCNR_User_Procedures/Reduction/VSANS/V_WorkFolderUtils.ipf

    r1094 r1101  
    599599                 
    600600                V_NonLinearCorrection_B(fname,w,cal_x,cal_y,detStr,destPath) 
    601                  
    602                 if(kBCTR_CM) 
    603  
    604                         Make/O/D/N=1 $(destPath + ":entry:instrument:detector_"+detStr+":beam_center_x_mm") 
    605                         Make/O/D/N=1 $(destPath + ":entry:instrument:detector_"+detStr+":beam_center_y_mm") 
    606                         WAVE x_mm = $(destPath + ":entry:instrument:detector_"+detStr+":beam_center_x_mm") 
    607                         WAVE y_mm = $(destPath + ":entry:instrument:detector_"+detStr+":beam_center_y_mm") 
    608                         x_mm[0] = V_getDet_beam_center_x(fname,detStr) * 10             // convert cm to mm 
    609                         y_mm[0] = V_getDet_beam_center_y(fname,detStr) * 10             // convert cm to mm 
    610                          
    611                         // now I need to convert the beam center in mm to pixels 
    612                         // and have some rational place to look for it... 
    613                         V_ConvertBeamCtr_to_pixB(fname,detStr,destPath) 
    614                 else 
     601 
     602// "B" is always naturally defined in terms of a pixel center. This can be converted to mm,  
     603// but the experiment will measure pixel x,y - just like ordela detectors. 
     604                 
     605//              if(kBCTR_CM) 
     606// 
     607//                      Make/O/D/N=1 $(destPath + ":entry:instrument:detector_"+detStr+":beam_center_x_mm") 
     608//                      Make/O/D/N=1 $(destPath + ":entry:instrument:detector_"+detStr+":beam_center_y_mm") 
     609//                      WAVE x_mm = $(destPath + ":entry:instrument:detector_"+detStr+":beam_center_x_mm") 
     610//                      WAVE y_mm = $(destPath + ":entry:instrument:detector_"+detStr+":beam_center_y_mm") 
     611//                      x_mm[0] = V_getDet_beam_center_x(fname,detStr) * 10             // convert cm to mm 
     612//                      y_mm[0] = V_getDet_beam_center_y(fname,detStr) * 10             // convert cm to mm 
     613//                       
     614//                      // now I need to convert the beam center in mm to pixels 
     615//                      // and have some rational place to look for it... 
     616//                      V_ConvertBeamCtr_to_pixB(fname,detStr,destPath) 
     617//              else 
    615618                        // beam center is in pixels, so use the old routine 
    616619                        V_ConvertBeamCtr_to_mmB(fname,detStr,destPath) 
    617620 
    618                 endif 
     621//              endif 
    619622                V_Detector_CalcQVals(fname,detStr,destPath) 
    620623                 
Note: See TracChangeset for help on using the changeset viewer.