Ignore:
Timestamp:
Apr 16, 2018 10:50:33 AM (4 years ago)
Author:
srkline
Message:

Added two model functions for white beam smearing.

Many other small changes for processing of the back detector, shuffling of VSANS menu items, and consistent naming of V_ procedures.

File:
1 edited

Legend:

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

    r1093 r1095  
    6464                // it's OK to call both of these. these functions check detStr for the correct value 
    6565                if(cmpstr("T",detStr[1]) == 0 || cmpstr("B",detStr[1]) == 0) 
    66                         V_writeDet_LateralOffset(fileName,detStr,val)           // T/B panels 
     66                        V_writeDet_VerticalOffset(fileName,detStr,val)          // T/B panels 
    6767                else 
    68                         V_writeDet_VerticalOffset(fileName,detStr,val)          //  L/R panels, or back detector 
     68                        V_writeDet_LateralOffset(fileName,detStr,val)           //  L/R panels, or back detector 
    6969                endif 
    7070                // x and y pixel sizes for each detector should be correct in the "base" file - but if not... 
     
    134134                // returns the number of neutrons on the sample 
    135135                //Function VCALC_getImon() 
    136         V_writeMonitorCount(fileName,VCALC_getImon()) 
     136                // 
     137                // divide the monitor count by 1e8 to get a number small enough to write in the field. 
     138        V_writeMonitorCount(fileName,VCALC_getImon()/1e8) 
    137139 
    138140        // total detector count (sum of everything) 
     
    302304End 
    303305 
     306 
     307 
     308 
     309////// 
     310 
     311// 
     312// Function Profiling 
     313// 
     314// tests for where the speed bottlenecks are hiding 
     315// 
     316// in the built-in procedure, add the line: 
     317//#include <FunctionProfiling> 
     318// and check out the instructions in that file. 
     319// 
     320// essentially, create a function call with no parameters 
     321// and run that function as below: 
     322 
     323// RunFuncWithProfiling(yourFuncHere) 
     324 
     325// 
     326// function to profile can have no parameters, so hard-wire the file name 
     327Function V_ProfileFileLoad() 
     328        V_LoadHDF5Data("sans9999.nxs.ngv","RAW") 
     329End 
     330 
     331 
     332Function V_ProfileReduceOne() 
     333        V_ReduceOneButton("") 
     334End 
     335 
     336 
     337 
     338 
Note: See TracChangeset for help on using the changeset viewer.