Ignore:
Timestamp:
Feb 10, 2011 1:29:02 PM (12 years ago)
Author:
srkline
Message:

Added patch to use the correct detector dead time based on whether VAX or ICE hardware was used. The switch is done based on the day of data acquisition using dates supplied by Jeff and Cedric for the date past which the VAX hardware was not used.

25-FEB-2010 for NG7
23-JUL-2009 for NG3

Any data collected after these dates will use the measured dead time with ICE hardware.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • sans/Dev/trunk/NCNR_User_Procedures/Reduction/SANS/Marquee.ipf

    r779 r788  
    581581// 
    582582// 
     583// The histogram could potentially be done with the Igor ImageLineProfile operation 
     584// but this seems to be just as efficient to do. 
     585// 
    583586Function DoHistogramPair(xin,yin) 
    584587        Variable xin,yin 
     
    597600        AvgCountsY=0 
    598601         
    599         //set position wave 
     602        //set position wave, in detector coordinates 
    600603        positionX=p+pt1 
    601604        positionY=p+pt1 
    602         //convert the position to Detector coordinates 
    603         positionX += 1 
    604         positionY += 1 
    605605         
    606606        //do the vertical, then the horizontal 
     
    642642        GetMarquee/K            //to keep from drawing the marquee on the new histo graph 
    643643        //draw the graph, or just bring to the front with the new data 
     644        Variable step = 30 
    644645        DoWindow/F HistoPair 
    645646        if(V_Flag != 1) 
    646647                Draw_HistoPair() 
    647         endif 
    648          
    649          
    650         //could draw the width lines on the graph using the normal drawing routines 
    651         // -- but can't draw horizontal and vertical on at the same time. MasterAngleDraw clears 
    652         // between drawing. Also, the lines are drawn though the beam center of the data file as 
    653         // loaded. Not good for beamstop alignment, since the beam center may not have been measured yet 
    654 //      SVAR tempStr = root:myGlobals:Drawing:gDrawInfoStr 
    655 //      String newStr = ReplaceNumberByKey("WIDTH", tempStr, xWidth, "=", ";") 
    656 //      newStr = ReplaceNumberByKey("PHI", newStr, 0, "=", ";") 
    657 //      String/G root:myGlobals:Drawing:gDrawInfoStr = newStr 
    658 //      //redraw the angles 
    659 //      MasterAngleDraw() 
     648        else 
     649                SetAxis bottom (xin-step),(xin+step) 
     650                SetAxis bottomY (yin-step),(yin+step) 
     651        endif 
    660652                 
    661653        // so use a pair of cursors instead (how do I easily get rid of them?) - a "done" button 
Note: See TracChangeset for help on using the changeset viewer.