Ignore:
Timestamp:
May 18, 2009 5:15:08 PM (14 years ago)
Author:
srkline
Message:

(1) fix in ProtocolAsPanel? that correctly calculates Kappa for data taken with the Cerca detectors. In the Kappa calculation, the data is manually scaled, bypassing the normal "ADD" step where the 4x detector data is correctly renormalized. Added a flag to divide by 4 if ILL detector type found.

(2) lots of bits to try to accomodate 2D resolution smearing. Changes to the QxQy? output to have everything needed: Qz, sigX, sigY, and shadowing. So presumably, all of the information is in the reduced data, where it should be.

  • added a 2D resolution calculation based on David Mildner's notes.
  • added 2D quadrature calculation for smearing, and new structure definitions

File:
1 edited

Legend:

Unmodified
Added
Removed
  • sans/Dev/trunk/NCNR_User_Procedures/Common/GaussUtils_v40.ipf

    r480 r509  
    6161EndStructure 
    6262 
     63 
     64// tentative pass at 2D resolution smearing 
     65// 
     66Structure ResSmear_2D_AAOStruct 
     67        Wave coefW 
     68        Wave zw                 //answer 
     69        Wave qy                 // q-value 
     70        Wave qx 
     71        Wave qz 
     72        Wave sigQx              //resolution 
     73        Wave sigQy 
     74        Wave fs 
     75        String info 
     76EndStructure 
    6377 
    6478 
     
    10621076end 
    10631077 
     1078// prototype function for 2D smearing routine 
     1079Function SANS_2D_ModelAAO_proto(w,zw,xw,yw) 
     1080        Wave w,zw,xw,yw 
     1081         
     1082        Print "in SANSModelAAO_proto function" 
     1083        return(1) 
     1084end 
     1085 
     1086// prototype function for fit wrapper using 2D smearing 
     1087// not used (yet) 
     1088Function SANS_2D_ModelSTRUCT_proto(s) 
     1089        Struct ResSmear_2D_AAOStruct &s  
     1090 
     1091        Print "in SANSModelSTRUCT_proto function" 
     1092        return(1) 
     1093end 
     1094 
    10641095//Numerical Recipes routine to calculate the nn(th) stage 
    10651096//refinement of a trapezoid integration 
Note: See TracChangeset for help on using the changeset viewer.