Ignore:
Timestamp:
Jun 21, 2018 9:42:24 AM (4 years ago)
Author:
srkline
Message:

changes mostly to VCALC to add in what bits of information I have about the instrument dimensions. Added in stubs (based on NG3 SANS) for the beam intensity. Added in a preset condition for Front+Middle. Still need a more uniform way to do this.

File:
1 edited

Legend:

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

    r1098 r1108  
    620620        SetDataFolder root: 
    621621                 
    622         // set any "shadowed" area of the T/B detectors to NaN to get a realitic 
     622        // set any "shadowed" area of the T/B detectors to NaN to get a realistic 
    623623        // view of how much of the detectors are actually collecting data 
    624624        // -- I can get the separation L/R from the panel - only this "open" width is visible. 
     
    12681268        qz_B = 0         
    12691269         
    1270 // TODO - these are to be set from globals, not hard-wired. N and pixelSize will be known (or pre-measured) 
     1270// (DONE) - these are set from globals, not hard-wired. N and pixelSize will be known (or pre-measured) 
    12711271// pixel sizes are in cm 
     1272// beam center for the back detector is in PIXELS. always. 
    12721273        pixSizeX = VCALC_getPixSizeX("B") 
    12731274        pixSizeY = VCALC_getPixSizeY("B") 
    12741275 
    1275         if(kBCTR_CM) 
    1276                 xCtr = trunc( DimSize(det_B,0)/2 ) *pixSizeX * 10 
    1277                 yCtr = trunc( DimSize(det_B,1)/2 ) *pixSizeY * 10       //values in mm -- beam is nominally at 0,0 in space 
    1278         else     
    1279                 xCtr = trunc( DimSize(det_B,0)/2 )              // 
    1280                 yCtr = trunc( DimSize(det_B,1)/2 )              // 
    1281         endif 
    1282          
    1283                 //put these  beam center values into the local folder 
    1284         V_putDet_beam_center_x("VCALC","B",xCtr) 
    1285         V_putDet_beam_center_y("VCALC","B",yCtr) 
     1276        xCtr = V_getDet_beam_center_x("VCALC","B") 
     1277        yCtr = V_getDet_beam_center_y("VCALC","B") 
     1278 
     1279//      if(kBCTR_CM) 
     1280//              xCtr = trunc( DimSize(det_B,0)/2 ) *pixSizeX * 10 
     1281//              yCtr = trunc( DimSize(det_B,1)/2 ) *pixSizeY * 10       //values in mm -- beam is nominally at 0,0 in space 
     1282//      else     
     1283//              xCtr = trunc( DimSize(det_B,0)/2 )              // 
     1284//              yCtr = trunc( DimSize(det_B,1)/2 )              // 
     1285//      endif 
     1286//       
     1287//              //put these  beam center values into the local folder 
     1288//      V_putDet_beam_center_x("VCALC","B",xCtr) 
     1289//      V_putDet_beam_center_y("VCALC","B",yCtr) 
    12861290         
    12871291//      VC_Detector_2Q(det_B,qTot_B,qx_B,qy_B,qz_B,xCtr,yCtr,sdd,lam,pixSizeX,pixSizeY) 
Note: See TracChangeset for help on using the changeset viewer.