Ignore:
Timestamp:
Jan 24, 2020 1:59:51 PM (3 years ago)
Author:
srkline
Message:

additions to the reduction for new corrections to the tube detectors for the angle dependent efficiency and the angle dependent tube shadowing. Calculations have been added, new folder for the efficiency has been added, and preference checkboxes have been updated.

File:
1 edited

Legend:

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

    r1227 r1236  
    9090        Variable/G root:Packages:NIST:VSANS:Globals:gDoMonitorNormalization = 1 
    9191 
     92        val = NumVarOrDefault("root:Packages:NIST:VSANS:Globals:gDoDownstreamWindowCorPref", 1 ) 
     93        Variable/G root:Packages:NIST:VSANS:Globals:gDoDownstreamWindowCorPref = 0 
     94         
    9295 
    9396        // Special global to prevent fake data from "B" detector from being written out 
     
    231234End 
    232235 
     236Function V_DoDownstreamWindowCorPref(ctrlName,checked) : CheckBoxControl 
     237        String ctrlName 
     238        Variable checked 
     239         
     240        NVAR gVal = root:Packages:NIST:VSANS:Globals:gDoDownstreamWindowCorPref 
     241        gVal = checked 
     242End 
     243 
     244 
    233245Function V_IgnoreDetBPref(ctrlName,checked) : CheckBoxControl 
    234246        String ctrlName 
     
    287299        CheckBox PrefCtrl_1f title="Do Transmssion Correction?",size={140,14},value=root:Packages:NIST:VSANS:Globals:gDoTransmissionCor,proc=V_DoTransCorrPref 
    288300        CheckBox PrefCtrl_1f pos={255,80},help={"TURN OFF ONLY FOR DEBUGGING. This corrects the data for angle dependent transmssion."} 
    289         CheckBox PrefCtrl_1g title="Do Efficiency Correction?",size={140,14},proc=V_DoEfficiencyCorrPref 
     301        CheckBox PrefCtrl_1g title="Do Tube Efficiency+Shadowing?",size={140,14},proc=V_DoEfficiencyCorrPref 
    290302        CheckBox PrefCtrl_1g value=root:Packages:NIST:VSANS:Globals:gDoDetectorEffCor,pos={255,100},help={"TURN OFF ONLY FOR DEBUGGING. This corrects the data for angle dependent detector efficiency."} 
    291303//      CheckBox PrefCtrl_1h title="Adjust RAW attenuation?",size={140,14},proc=V_DoRawAttenAdjPref 
     
    300312        CheckBox PrefCtrl_1l title="Do Non-linear Correction?",size={140,14},proc=V_DoNonLinearCorPref,disable=2 
    301313        CheckBox PrefCtrl_1l value=root:Packages:NIST:VSANS:Globals:gDoNonLinearCor,pos={255,180},help={"Non-linear correction can't be turned off"} 
    302         CheckBox PrefCtrl_1m title="Do Tube Shadow Correction?",size={140,14},proc=V_DoTubeShadowCorPref 
     314        CheckBox PrefCtrl_1m title="Do Downstream Window Corr?",size={140,14},proc=V_DoDownstreamWindowCorPref 
    303315        CheckBox PrefCtrl_1m value=root:Packages:NIST:VSANS:Globals:gDoTubeShadowCor,pos={255,200},help={"TURN OFF ONLY FOR DEBUGGING."} 
    304 //      CheckBox PrefCtrl_1n title="Do Tube Shadow Correction?",size={140,14},proc=V_DoMonitorNormPref 
     316//      CheckBox PrefCtrl_1n title="Do Monitor Normalization?",size={140,14},proc=V_DoMonitorNormPref 
    305317//      CheckBox PrefCtrl_1n value=root:Packages:NIST:VSANS:Globals:gDoMonitorNormalization,pos={255,220},help={"TURN OFF ONLY FOR DEBUGGING."} 
    306318        CheckBox PrefCtrl_1o title="Ignore Back Detector?",size={140,14},proc=V_IgnoreDetBPref 
     
    315327//      CheckBox PrefCtrl_1g,disable=1 
    316328//      CheckBox PrefCtrl_1h,disable=1 
    317         CheckBox PrefCtrl_1g,value=0,disable=2          // angle dependent efficiency not done yet 
    318         CheckBox PrefCtrl_1m,value=0,disable=2          // tube shadowing correctionn not done yet 
     329//      CheckBox PrefCtrl_1g,value=0,disable=2          // angle dependent efficiency not done yet 
     330        CheckBox PrefCtrl_1m,value=0,disable=2          // downstream window transmission no done yet 
    319331 
    320332//on tab(2) - Analysis 
Note: See TracChangeset for help on using the changeset viewer.