Ignore:
Timestamp:
Jan 5, 2018 10:32:55 AM (5 years ago)
Author:
srkline
Message:

more utilities and bug fixes to handle:
(1) generation of DIV files
(2) generation and loading of slit-smeared VSANS data sets

Loading of VSANS data sets and generating the resolution smearing matrix required adding a conditional compile statement to the PlotUtilsMacro? file, to distinguish VSANS data - crudely done now by checking to see that VSANS is defined (which will NOT be the case for a "normal" Analysis experiment. This will need to be revisited in the future.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • sans/Dev/trunk/NCNR_User_Procedures/Common/Packages/PlotManager/PlotUtilsMacro_v40.ipf

    r1039 r1078  
    360360                                //$(baseStr+"_res")[][3] = $w0[p]               //Qvalues 
    361361                                dQv = -$w3[0] 
     362 
     363//TODO: be sure that this works correctly and can be included in either 
     364// a VSANS reduction experiment, or a standalone analysis package 
     365#if (exists("NCNR_VSANS")==6)                   //defined in the main #includes file. 
     366                                DoAlert 0,"**Treating data as VSANS data**" 
     367                                Duplicate/O $w3,$(baseStr+"_dQv")                       //save a copy for VSANS 
     368                                $(baseStr+"_dQv") = -$(baseStr+"_dQv") 
     369                                V_USANS_CalcWeights(baseStr,dQv) 
     370#else 
     371                                DoAlert 0,"Treating data as USANS (normal slit-smeared data)" 
     372                                USANS_CalcWeights(baseStr,dQv) 
     373#endif                           
     374 
    362375                                 
    363                                 USANS_CalcWeights(baseStr,dQv) 
    364376                                 
    365377                        endif 
Note: See TracChangeset for help on using the changeset viewer.