Ticket #41 (closed: fixed)

Opened 13 years ago

Last modified 5 years ago

Create a convert To Wavelength algorithm

Reported by: Nick Draper Owned by: Russell Taylor
Priority: major Milestone: Iteration 3
Component: Keywords:
Cc: Blocked By:
Blocking: Tester:

Description

The algorithm converts all of the tof axes in a 2D workspace to there wavelength values.

The algorithm is wavelength = mn * (d1+d2)/tof

where mn is the mass of a neutron (this should be in a constants class d1 is the distance from the source to the sample d2 is the distance from the sample to the detector tof is the time of flight value.

We should use the std::franform function for efficiency

Change History

comment:1 Changed 13 years ago by Russell Taylor

  • Status changed from new to assigned

comment:2 Changed 13 years ago by Russell Taylor

(In [209]) Some small changes put in while writing the TOF to Wavelength conversion algorithm. Re #41.

comment:3 Changed 13 years ago by Nick Draper

  • Milestone changed from Iteration 2 to Iteration 3

comment:4 Changed 13 years ago by Nick Draper

(In [365]) re #41 Added an instrument class and loadInstrument data handling command.

comment:5 Changed 13 years ago by Nick Draper

(In [369]) re #41 fixed the detector bank location bug

comment:6 Changed 13 years ago by Nick Draper

(In [384]) re #41 corrected the test for the fix I did earlier

comment:7 Changed 13 years ago by Russell Taylor

(In [397]) First commit of convert to wavelength algorithm. Re #41.

comment:8 Changed 13 years ago by Russell Taylor

(In [398]) Stupid mistake in test that good old Microsoft alerted me to. Re #41.

comment:9 Changed 13 years ago by Russell Taylor

  • Status changed from assigned to closed
  • Resolution set to fixed

(In [399]) Added checks on dynamic casts. Closes #41.

comment:10 Changed 5 years ago by Stuart Campbell

This ticket has been transferred to github issue 889

Note: See TracTickets for help on using tickets.