Ignore:
Timestamp:
Apr 6, 2018 3:02:01 PM (5 years ago)
Author:
srkline
Message:

corrected issues with transmission calculation where the popup menu of sample files was limited in number. this limitation has been removed.

fixed the re-calculation of transmission when the same value is to be patched to multiple sample files with the same group ID. now the transmission is calculated once, for the first file in the popup and the values are simply written to the remaining files.

when the box for the open beam is defined, the panel where it is located is written to the file in a new field under /reduction. it is later recalled in the transmission panel.

Defined a "Reference" beam center position for each carriage as the RIGHT panel center. then all other panel centers (L, T, B) can be derived from this value. if the beam center is measured on the Left panel, it is converted to "right" coordinates before reporting.

File:
1 edited

Legend:

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

    r1084 r1094  
    301301                Print "X-center (cm) = ",x_mm/10 
    302302                Print "Y-center (cm) = ",y_mm/10 
     303                 
     304                if(cmpstr(detStr,"FR") == 0) 
     305                        Print "FRONT Reference X-center (cm) = ",x_mm/10 
     306                        Print "FRONT Reference Y-center (cm) = ",y_mm/10 
     307                endif 
     308 
     309                if(cmpstr(detStr,"MR") == 0) 
     310                        Print "MIDDLE Reference X-center (cm) = ",x_mm/10 
     311                        Print "MIDDLE Reference Y-center (cm) = ",y_mm/10 
     312                endif 
     313                 
     314// if measured on the LEFT panel, convert to the RIGHT coordinates for the reference value       
     315// these corrections are exactly the opposite of what is done in V_fDeriveBeamCenters(xFR,yFR,xMR,yMR) 
     316                if(cmpstr(detStr,"FL") == 0) 
     317                        Print "FRONT Reference X-center (cm) = ",x_mm/10 + (0.03 + 0.03)/2 
     318                        Print "FRONT Reference Y-center (cm) = ",y_mm/10 - (0.34 + 0.32)/2 
     319                endif 
     320                 
     321                if(cmpstr(detStr,"ML") == 0) 
     322                        Print "MIDDLE Reference X-center (cm) = ",x_mm/10 + (0.06 + 0.05)/2 
     323                        Print "MIDDLE Reference Y-center (cm) = ",y_mm/10 - (0.14 + 0.01)/2 
     324                endif 
    303325        endif 
    304326         
     
    311333 
    312334// 
    313 //function will write new box coordinates to the data file 
     335//function writes new box coordinates to the data file 
     336// 
     337// also writes the panel where the coordinates were set (non-nice field in /reduction) 
    314338// 
    315339Function V_UpdateBoxCoords() :  GraphMarquee 
     
    338362 
    339363                V_writeBoxCoordinates(gCurrentFile,V_List2NumWave(boxStr,";","inW")) 
     364         
     365                V_writeReduction_BoxPanel(gCurrentFile,detStr) 
    340366 
    341367//              count = V_SumCountsInBox(x1,x2,y1,y2,ct_err,gCurDispType,detStr)                 
Note: See TracChangeset for help on using the changeset viewer.