Ignore:
Timestamp:
Apr 6, 2018 9:06:40 AM (5 years ago)
Author:
srkline
Message:

New dimensions added for the back detector. many functions neede to be updated to accomodate these changes. Beam center is handled in the same way (in cm, not pixels) as other panels even though this panel is like the 2D detectors on SANS.

Still missing is the real values for caibration, pixel size, dead time, etc. that are yet to be measured.

File:
1 edited

Legend:

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

    r1081 r1093  
    5555                V_writeDet_distance(fileName,detStr,val) 
    5656                 
    57                 val = VCALC_getTopBottomSDDSetback(detStr)*10           //val is in mm, as for data file 
     57                val = VCALC_getTopBottomSDDSetback(detStr)              //val is in cm, as for data file 
    5858                if(val != 0) 
    5959                        V_writeDet_TBSetback(fileName,detStr,val) 
     
    8686                if(cmpstr(detStr,"B") == 0) 
    8787                        //always write out the center of the detector since this is dummy data 
    88                         V_writeDet_beam_center_x(fileName,detStr,V_getDet_beam_center_x("VCALC",detStr)) 
    89                         V_writeDet_beam_center_y(fileName,detStr,V_getDet_beam_center_y("VCALC",detStr))                                 
     88                        V_writeDet_beam_center_x(fileName,detStr,V_getDet_beam_center_x("VCALC",detStr)/10)             //write out [cm] 
     89                        V_writeDet_beam_center_y(fileName,detStr,V_getDet_beam_center_y("VCALC",detStr)/10)      
     90                         
     91                        // write out the number of pixels x and y 
     92                        // patch n_pix_x and y 
     93                        V_writeDet_pixel_num_x(fileName,detStr,V_getDet_pixel_num_x("VCALC",detStr)) 
     94                        V_writeDet_pixel_num_y(fileName,detStr,V_getDet_pixel_num_y("VCALC",detStr))                     
    9095                endif 
    9196 
Note: See TracChangeset for help on using the changeset viewer.