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_Utils.ipf

    r1092 r1093  
    264264        if(cmpstr(detStr,"B") == 0) 
    265265                // and for the back detector "B" 
    266                 Make/O/D/N=3 tmpCalib 
    267                 tmpCalib[0] = 1 
    268                 tmpCalib[1] = 1 
    269                 tmpcalib[2] = 10000 
     266                Make/O/D/N=3 tmpCalibX,tmpCalibY 
     267                tmpCalibX[0] = VCALC_getPixSizeX(detStr)*10                     // pixel size in mm  VCALC_getPixSizeX(detStr) is [cm] 
     268                tmpCalibX[1] = 1 
     269                tmpcalibX[2] = 10000 
     270                tmpCalibY[0] = VCALC_getPixSizeY(detStr)*10                     // pixel size in mm  VCALC_getPixSizeX(detStr) is [cm] 
     271                tmpCalibY[1] = 1 
     272                tmpcalibY[2] = 10000 
    270273        endif 
    271274         
     
    273276        Variable tube_width = 8.4                       // TODO: UNITS!!! Hard-wired value in [mm] 
    274277        if(cmpstr(detStr,"B") == 0) 
    275                 V_NonLinearCorrection_B("VCALC",data,tmpCalib,tmpCalib,detStr,destPath) 
     278                V_NonLinearCorrection_B("VCALC",data,tmpCalibX,tmpCalibY,detStr,destPath) 
    276279        else 
    277280                V_NonLinearCorrection("VCALC",data,tmpCalib,tube_width,detStr,destPath) 
     
    353356        endif 
    354357         
    355         KillWaves/Z tmpCalib 
     358        KillWaves/Z tmpCalib,tmpCalibX,tmpCalibY 
    356359         
    357360        return(0) 
     
    11471150        // - so I upped nq to 600 
    11481151 
    1149         nq = 600 
     1152        if(cmpstr(type,"B") == 0) 
     1153                nq = 8000 
     1154        else 
     1155                nq=600 
     1156        endif 
    11501157 
    11511158//******TODO****** -- where to put the averaged data -- right now, folderStr is forced to ""     
Note: See TracChangeset for help on using the changeset viewer.