Ignore:
Timestamp:
Sep 5, 2019 3:00:05 PM (3 years ago)
Author:
srkline
Message:

Corrected attenuator table for VSANS to include the range 4.52->19. Patching of the attenuation factor is disabled since the factor is always calculated rather than read from the file.

Added a few help links in preparation for the full help file integration

Added a "super" white beam distribution definition and a single model function for testing of this new mode. Still need the normalization and mean wavelength for the distribution + a way to identify it in the file metadata.

File:
1 edited

Legend:

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

    r1095 r1203  
    11#pragma TextEncoding = "MacRoman" 
    22#pragma rtGlobals=3             // Use modern global access method and strict wave access. 
    3  
    4  
    5  
    6  
    73 
    84 
     
    2521// result when compared to the AgBeh data 
    2622// 
     23 
     24 
     25// 9/2019 
     26// added an empirical functional form for the "Super" white beam mode where the deflector is out 
     27// and the wavelength is not cut off at the higher wavelength, but extends to 20  
     28// 
     29// Integral = 30955 (cts*A) for middle fit 
     30// 
     31 
     32 
     33 
     34 
     35 
    2736 
    2837Function V_WhiteBeamDist_top(lam) 
     
    128137End 
    129138 
     139 
     140// 
     141// 
     142// 
     143Function V_SuperWhiteBeamDist_mid(lam) 
     144        Variable lam 
     145         
     146        if(lam < 3.37) 
     147                return(0) 
     148        endif 
     149         
     150        if(lam < 3.72) 
     151                return(-33536 + 9919*lam) 
     152        endif 
     153         
     154        if(lam < 3.88) 
     155                return(28941 - 6848*lam) 
     156        endif 
     157         
     158//// the "middle" of the spikes  
     159        if(lam < 4.16) 
     160                return(-1.0111e5 + 26689*lam) 
     161        endif 
     162         
     163        if(lam < 20) 
     164                return(5 - 10081*exp(-( (lam-4.161)/0.9788 )) + 19776*exp(-( (lam-4.161)/1.921 )) ) 
     165        endif 
     166 
     167//       anything larger than 20, return 0       
     168        return(0) 
     169         
     170End 
     171 
     172 
Note: See TracChangeset for help on using the changeset viewer.