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

    r1106 r1117  
    8686                if(cmpstr(detStr,"B") == 0) 
    8787                        //always write out the center of the detector since this is dummy data 
    88                         V_writeDet_beam_center_x(fileName,detStr,V_getDet_beam_center_x("VCALC",detStr)/10)             //write out [cm] 
    89                         V_writeDet_beam_center_y(fileName,detStr,V_getDet_beam_center_y("VCALC",detStr)/10)      
     88                        // the back detector always has its beam center in pixels 
     89                        V_writeDet_beam_center_x(fileName,detStr,V_getDet_beam_center_x("VCALC",detStr)) 
     90                        V_writeDet_beam_center_y(fileName,detStr,V_getDet_beam_center_y("VCALC",detStr))         
    9091                         
    9192                        // write out the number of pixels x and y 
     
    115116 
    116117         
    117 // writes out "perfect" detector calibration constants for all 8 tube banks 
     118// writes out "perfect" detector calibration constants for all 8 tube banks + back detector 
    118119        V_WritePerfectSpatialCalib(filename) 
    119120// writes out "perfect" dead time constants for all 8 tube banks + back detector 
     
    195196         
    196197        // and for the back detector "B" 
     198        NVAR gHighResBinning = root:Packages:NIST:VSANS:Globals:gHighResBinning 
     199        Variable tmpPix 
     200        if(gHighResBinning == 1) 
     201                tmpPix = 0.00845                //[cm] 
     202        else 
     203                //binning 4x4 assumed 
     204                tmpPix = 0.034 
     205        endif 
     206         
    197207        Make/O/D/N=3 tmpCalib 
    198         tmpCalib[0] = 1 
     208        tmpCalib[0] = tmpPix 
    199209        tmpCalib[1] = 1 
    200210        tmpcalib[2] = 10000 
Note: See TracChangeset for help on using the changeset viewer.