[Tobyfit-tickets] [TOBYFIT] #107: fix MC integration for detector area

Tobyfit tobyfit-trac at svr2.nd.rl.ac.uk
Mon Apr 4 09:51:53 BST 2011


#107: fix MC integration for detector area
--------------------------+-------------------------------------------------
Reporter:  Ronald Fowler  |      Owner:  Ronald Fowler
    Type:  defect         |     Status:  new          
Priority:  major          |   Keywords:               
--------------------------+-------------------------------------------------
 The integration for detector area used the code:
        if (mc_detector_area) then
           y_vec(9)  = det_width * (ranvec(imc) - 0.5d0)
           y_vec(10) = det_height* (ranvec(imc) - 0.5d0)
           imc = imc + 2

 This is incorrect in that the second ranvec(imc) should be ranvec(imc+1).
 This makes a small change to the calculated scattering for the demo
 example.

-- 
Ticket URL: <http://trac.isis.rl.ac.uk/Tobyfit/ticket/107>
Tobyfit <http://tobyfit.isis.rl.ac.uk/>
Tobyfit



More information about the Tobyfit-tickets mailing list