Ignore:
Timestamp:
Apr 29, 2016 5:04:20 PM (6 years ago)
Author:
srkline
Message:

more changes, bug fixes, detector dead time fix

File:
1 edited

Legend:

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

    r994 r995  
    597597// this works if the proper centers are in the file - otherwise, it's a mess     
    598598// "B" is skipped here, as it should be... 
    599         fname = "RAW" 
     599        SVAR type = root:Packages:NIST:VSANS:Globals:gCurDispType 
     600 
     601        fname = type 
    600602        for(ii=0;ii<ItemsInList(ksDetectorListNoB);ii+=1) 
    601603                detStr = StringFromList(ii, ksDetectorListNoB, ";") 
    602604                xCtr = V_getDet_beam_center_x(fname,detStr) 
    603605                yCtr = V_getDet_beam_center_y(fname,detStr) 
    604                 V_RescaleToBeamCenter("RAW",detStr,xCtr,yCtr) 
     606                V_RescaleToBeamCenter(type,detStr,xCtr,yCtr) 
    605607        endfor 
    606608                 
     
    620622Function V_SpreadOutPanels() 
    621623 
    622         V_RescaleToBeamCenter("RAW","MB",64,78) 
    623         V_RescaleToBeamCenter("RAW","MT",64,-30) 
    624         V_RescaleToBeamCenter("RAW","MR",-30,64) 
    625         V_RescaleToBeamCenter("RAW","ML",78,64) 
    626         V_RescaleToBeamCenter("RAW","FB",64,78) 
    627         V_RescaleToBeamCenter("RAW","FT",64,-30) 
    628         V_RescaleToBeamCenter("RAW","FR",-30,64) 
    629         V_RescaleToBeamCenter("RAW","FL",78,64) 
     624        SVAR type = root:Packages:NIST:VSANS:Globals:gCurDispType 
     625 
     626        V_RescaleToBeamCenter(type,"MB",64,78) 
     627        V_RescaleToBeamCenter(type,"MT",64,-30) 
     628        V_RescaleToBeamCenter(type,"MR",-30,64) 
     629        V_RescaleToBeamCenter(type,"ML",78,64) 
     630        V_RescaleToBeamCenter(type,"FB",64,78) 
     631        V_RescaleToBeamCenter(type,"FT",64,-30) 
     632        V_RescaleToBeamCenter(type,"FR",-30,64) 
     633        V_RescaleToBeamCenter(type,"FL",78,64) 
    630634        return(0) 
    631635end 
Note: See TracChangeset for help on using the changeset viewer.