Ignore:
Timestamp:
Mar 7, 2018 12:00:21 PM (5 years ago)
Author:
srkline
Message:

Adding proceures - not complete yet- to allow smearing of data under white beam conditions. currently only wavelength effects taken into account, not the geometry. Unknown if geometry is a significant correction given the width of the qhite beam distribution. further testing is needed.

File:
1 edited

Legend:

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

    r1076 r1090  
    14191419         
    14201420// S2 = sample aperture diameter [mm] 
     1421// as of 3/2018, the "internal" sample aperture is not in use, only the external 
    14211422        S2 = V_getSampleAp2_size(folderStr)*10          // sample ap 1 or 2? 2 = the "external", but may not exist? 
    14221423         
     
    14441445        Print lambda,lambdaWidth,DDet,apOff,S1,S2,L1,L2,BS,del_r,usingLenses 
    14451446endif 
     1447 
     1448 
     1449// TODO: 
     1450// this is the point where I need to switch on the different collimation types (white beam, slit, Xtal, etc) 
     1451// to calculate the correct resolution, or fill the waves with the correct "flags" 
     1452// 
     1453 
     1454// For white beam data, the wavelength distribution can't be represented as a gaussian, but all of the other  
     1455//  geometric corrections still apply. Passing zero for the lambdaWidth will return the grometry contribution, 
     1456//  as long as the wavelength can be handled separately. It appears to be correct to do as a double integral, 
     1457// with the inner(lambda) calculated first, then the outer(geometry). 
     1458// 
     1459 
    14461460 
    14471461        ii=0 
Note: See TracChangeset for help on using the changeset viewer.