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/VC_DetectorBinning_Q.ipf

    r1082 r1093  
    12511251// TODO (make the N along the tube length a variable, since this can be reset @ acquisition) 
    12521252//      SetDataFolder root:Packages:NIST:VSANS:VCALC:Back 
    1253         WAVE det_B = $(folderPath+instPath+"B"+":det_B")                        // this is nominally (150,150) 
     1253        WAVE det_B = $(folderPath+instPath+"B"+":det_B")                        // this is nominally (680,1656) 
    12541254 
    12551255//Back detector 
     
    12661266        qz_B = 0         
    12671267         
    1268 // TODO - these are to be set from globals, not hard-wired. N and pixelSixze will be known (or pre-measured) 
     1268// TODO - these are to be set from globals, not hard-wired. N and pixelSize will be known (or pre-measured) 
    12691269// pixel sizes are in cm 
    12701270        pixSizeX = VCALC_getPixSizeX("B") 
    12711271        pixSizeY = VCALC_getPixSizeY("B") 
    1272          
    1273         xCtr = trunc( DimSize(det_B,0)/2 )              //should be 150/2=75 
    1274         yCtr = trunc( DimSize(det_B,1)/2 )              //should be 150/2=75 
     1272 
     1273        if(kBCTR_CM) 
     1274                xCtr = trunc( DimSize(det_B,0)/2 ) *pixSizeX * 10 
     1275                yCtr = trunc( DimSize(det_B,1)/2 ) *pixSizeY * 10       //values in mm -- beam is nominally at 0,0 in space 
     1276        else     
     1277                xCtr = trunc( DimSize(det_B,0)/2 )              // 
     1278                yCtr = trunc( DimSize(det_B,1)/2 )              // 
     1279        endif 
     1280         
    12751281                //put these  beam center values into the local folder 
    12761282        V_putDet_beam_center_x("VCALC","B",xCtr) 
Note: See TracChangeset for help on using the changeset viewer.