Refactoring #1546

Feature #1287: == Particle form factors ==

disambiguate getRadius()

Added by wuttke over 4 years ago. Updated about 4 years ago.

Status:ArchivedStart date:01 Aug 2016
Priority:HighDue date:
Assignee:wuttke% Done:


Target version:Sprint32


getRadius() currently has two different, though overlapping uses:
  • to return the value of Ā»RadiusĀ«, if the particle has such a parameter
  • to return a number that indicates the extension of a particle in the xy plane, for use in computing particle correlations.

Per #1428, in case (1) getRadius() will become getParameter("radius").

Until then, and perhaps permanently, a different function name should be chosen for case (2). Proposal: getExtension().

Also, a more precise definition of what is computed in case (2) would be nice to have.


#1 Updated by wuttke over 4 years ago

  • Assignee set to wuttke

Starting in branch parunit, as preparative step towards #1428.

#2 Updated by wuttke over 4 years ago

  • Status changed from Sprint to Resolved

Resolved in 4defcc9.

In passing: removed unnecessary 'virtual' attribute from 'clone' methods.

#3 Updated by herck about 4 years ago

  • Status changed from Resolved to Archived

Also available in: Atom PDF