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

    r1092 r1093  
    182182// tab(3) - Middle detector panels, initially not visible 
    183183        SetVariable VCALCCtrl_3a,pos={30,260},size={150,15},title="LEFT Offset (cm)",proc=VC_MDet_LR_SetVarProc 
    184         SetVariable VCALCCtrl_3a,limits={-20,19,0.1},disable=1,value=_NUM:-6 
     184        SetVariable VCALCCtrl_3a,limits={-20,19,0.1},disable=1,value=_NUM:-7 
    185185        SetVariable VCALCCtrl_3aa,pos={30,290},size={150,15},title="RIGHT Offset (cm)",proc=VC_MDet_LR_SetVarProc 
    186         SetVariable VCALCCtrl_3aa,limits={-19,20,0.1},disable=1,value=_NUM:6 
     186        SetVariable VCALCCtrl_3aa,limits={-19,20,0.1},disable=1,value=_NUM:7 
    187187                 
    188188        SetVariable VCALCCtrl_3b,pos={30,330},size={150,15},title="TOP Offset (cm)",proc=VC_MDet_LR_SetVarProc 
    189         SetVariable VCALCCtrl_3b,limits={0,18,0.1},disable=1,value=_NUM:6 
     189        SetVariable VCALCCtrl_3b,limits={0,18,0.1},disable=1,value=_NUM:14 
    190190        SetVariable VCALCCtrl_3bb,pos={30,360},size={150,15},title="BOTTOM Offset (cm)",proc=VC_MDet_LR_SetVarProc 
    191         SetVariable VCALCCtrl_3bb,limits={-18,0,0.1},disable=1,value=_NUM:-6 
     191        SetVariable VCALCCtrl_3bb,limits={-18,0,0.1},disable=1,value=_NUM:-14 
    192192 
    193193        SetVariable VCALCCtrl_3d,pos={205,260},size={230,15},title="Sample to Detector Distance (cm)",proc=VC_MDet_SDD_SetVarProc 
    194         SetVariable VCALCCtrl_3d,limits={800,2000,1},disable=1,value=_NUM:1500 
     194        SetVariable VCALCCtrl_3d,limits={800,2000,1},disable=1,value=_NUM:1000 
    195195 
    196196         
     
    199199        SetVariable VCALCCtrl_4a,limits={0,20,0.1},disable=1,value=_NUM:0 
    200200        SetVariable VCALCCtrl_4b,pos={188,260},size={230,15},title="Sample to Detector Distance (cm)",proc=VC_BDet_SDD_SetVarProc 
    201         SetVariable VCALCCtrl_4b,limits={2000,2500,1},disable=1,value=_NUM:2000 
     201        SetVariable VCALCCtrl_4b,limits={2000,2500,1},disable=1,value=_NUM:2200 
    202202//      PopupMenu VCALCCtrl_4c,pos={40,260},size={180,20},title="Detector type",disable=1 
    203203//      PopupMenu VCALCCtrl_4c,mode=1,popvalue="2D",value= root:Packages:NIST:VSANS:VCALC:gBackDetType 
     
    205205// tab(5) - Simulation setup 
    206206        SetVariable VCALCCtrl_5a,pos={40,290},size={200,15},title="Neutrons on Sample (imon)" 
    207         SetVariable VCALCCtrl_5a,limits={1e7,1e15,1e7},disable=1,value=_NUM:1e10,proc=VC_SimImon_SetVarProc 
     207        SetVariable VCALCCtrl_5a,limits={1e7,1e15,1e7},disable=1,value=_NUM:1e11,proc=VC_SimImon_SetVarProc 
    208208        PopupMenu VCALCCtrl_5b,pos={40,260},size={180,20},title="Model Function",disable=1 
    209209        PopupMenu VCALCCtrl_5b,mode=1,popvalue="Debye",value= root:Packages:NIST:VSANS:VCALC:gModelFunctionType,proc=VC_SimModelFunc_PopProc 
     
    801801 
    802802//// BACK DETECTOR 
    803         Variable/G gBack_w = 15.0                               //w and h for the back detector, (cm) 150 pix * 1mm/pix 
    804         Variable/G gBack_h = 15.0 
    805          
    806         Make/O/D/N=1 :entry:instrument:detector_B:x_pixel_size = 0.1            // 1 mm resolution (units of cm here) 
    807         Make/O/D/N=1 :entry:instrument:detector_B:y_pixel_size = 0.1             
    808  
    809  
    810         Make/O/D/N=1 :entry:instrument:detector_B:pixel_num_x = 150     // detector pixels in x-direction 
    811         Make/O/D/N=1 :entry:instrument:detector_B:pixel_num_y = 150 
     803        Variable/G gBack_w = 22.2                               //w and h for the back detector [cm] 
     804        Variable/G gBack_h = 50.4 
     805         
     806        Make/O/D/N=1 :entry:instrument:detector_B:x_pixel_size = 0.034          // 340 micron resolution (units of cm here) 
     807        Make/O/D/N=1 :entry:instrument:detector_B:y_pixel_size = 0.034           
     808 
     809 
     810        Make/O/D/N=1 :entry:instrument:detector_B:pixel_num_x = 680             // detector pixels in x-direction 
     811        Make/O/D/N=1 :entry:instrument:detector_B:pixel_num_y = 1656 
    812812         
    813813 
    814814// pixel beam center - HDF style 
    815         Make/O/D/N=1 :entry:instrument:detector_B:beam_center_x = 75            // == x beam center, in pixels 
    816         Make/O/D/N=1 :entry:instrument:detector_B:beam_center_y = 75            // == y beam center, in pixels 
     815        Make/O/D/N=1 :entry:instrument:detector_B:beam_center_x = 340           // == x beam center, in pixels 
     816        Make/O/D/N=1 :entry:instrument:detector_B:beam_center_y = 828           // == y beam center, in pixels 
    817817 
    818818 
Note: See TracChangeset for help on using the changeset viewer.