Ignore:
Timestamp:
Oct 18, 2018 12:09:16 PM (4 years ago)
Author:
srkline
Message:

extensive changes to accomodate 1x1 binning of the HighRes? detector. It is implemented as a global flag. Currently only 4x4 and 1x1 are allowed. 1x1 has never been tested in reality, only simulated data - so my assumed dimensions may not be correct. look for TODOHIGHRES in the file for places that may need to be updated for different file dimensions. Testing of the simulated data is proving to be excruciatingly slow, but passable for a test. Speed optimization will be needed if this is the final solution. Memory management will also be an issue since every "copy" of the highRes matrix is enormous. Carry as few of these around as possible in the future to keep the experiment size to something reasonable.

File:
1 edited

Legend:

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

    r1109 r1117  
    10141014        Variable/G gBack_h = 50.4 
    10151015         
    1016         Make/O/D/N=1 :entry:instrument:detector_B:x_pixel_size = 0.034          // 340 micron resolution (units of [cm] here) 
    1017         Make/O/D/N=1 :entry:instrument:detector_B:y_pixel_size = 0.034           
    1018  
    1019  
    1020         Make/O/D/N=1 :entry:instrument:detector_B:pixel_num_x = 680             // detector pixels in x-direction 
    1021         Make/O/D/N=1 :entry:instrument:detector_B:pixel_num_y = 1656 
    1022          
    1023  
    1024 // pixel beam center - HDF style 
    1025         Make/O/D/N=1 :entry:instrument:detector_B:beam_center_x = 340.1 // == x beam center, in pixels +0.1 so I know it's from here 
    1026         Make/O/D/N=1 :entry:instrument:detector_B:beam_center_y = 828.1         // == y beam center, in pixels 
     1016         
     1017        // TODOHIRES -- be sure that all of this is correct, since it is hard-wired values 
     1018        // -- can't use a switch so I'm using an if(), where the default is 4x4 binning 
     1019        if(root:Packages:NIST:VSANS:Globals:gHighResBinning == 1) 
     1020                Make/O/D/N=1 :entry:instrument:detector_B:x_pixel_size = 0.00845                // 340 micron resolution (units of [cm] here) 
     1021                Make/O/D/N=1 :entry:instrument:detector_B:y_pixel_size = 0.00845                 
     1022         
     1023                Make/O/D/N=1 :entry:instrument:detector_B:pixel_num_x = 2720            // detector pixels in x-direction 
     1024                Make/O/D/N=1 :entry:instrument:detector_B:pixel_num_y = 6624 
     1025                 
     1026        // pixel beam center - HDF style 
     1027                Make/O/D/N=1 :entry:instrument:detector_B:beam_center_x = 1360.1        // == x beam center, in pixels +0.1 so I know it's from here 
     1028                Make/O/D/N=1 :entry:instrument:detector_B:beam_center_y = 3312.1                // == y beam center, in pixels 
     1029        else 
     1030                Make/O/D/N=1 :entry:instrument:detector_B:x_pixel_size = 0.034          // 340 micron resolution (units of [cm] here) 
     1031                Make/O/D/N=1 :entry:instrument:detector_B:y_pixel_size = 0.034           
     1032         
     1033                Make/O/D/N=1 :entry:instrument:detector_B:pixel_num_x = 680             // detector pixels in x-direction 
     1034                Make/O/D/N=1 :entry:instrument:detector_B:pixel_num_y = 1656 
     1035                 
     1036        // pixel beam center - HDF style 
     1037                Make/O/D/N=1 :entry:instrument:detector_B:beam_center_x = 340.1 // == x beam center, in pixels +0.1 so I know it's from here 
     1038                Make/O/D/N=1 :entry:instrument:detector_B:beam_center_y = 828.1         // == y beam center, in pixels 
     1039        endif 
    10271040 
    10281041 
Note: See TracChangeset for help on using the changeset viewer.