BornAgain  1.19.79
Open-source research software to simulate and fit neutron and x-ray reflectometry and grazing-incidence small-angle scattering
AxisNames.h File Reference

Description

Defines axisUnitLabel and maps in namespace AxisNames.

Homepage:\n http://www.bornagainproject.org
License:\n GNU General Public License v3 or higher (see COPYING)
Authors
Scientific Computing Group at MLZ (see CITATION, AUTHORS)

Definition in file AxisNames.h.

Include dependency graph for AxisNames.h:
This graph shows which files directly or indirectly include this file:

Go to the source code of this file.

Namespaces

 DataUtils
 
 DataUtils::AxisNames
 Contains const maps that give the right axis names for different detector types and units.
 

Macros

#define BORNAGAIN_DEVICE_COORD_AXISNAMES_H
 

Variables

const std::map< Coords, const char * > axisUnitLabel
 

Macro Definition Documentation

◆ BORNAGAIN_DEVICE_COORD_AXISNAMES_H

#define BORNAGAIN_DEVICE_COORD_AXISNAMES_H

Definition at line 21 of file AxisNames.h.

Variable Documentation

◆ axisUnitLabel

const std::map<Coords, const char*> axisUnitLabel
Initial value:
= {
{Coords::UNDEFINED, "undefined"}, {Coords::NBINS, "bin"}, {Coords::RADIANS, "rad"},
{Coords::DEGREES, "deg"}, {Coords::MM, "mm"}, {Coords::QSPACE, "1/nm"},
{Coords::QXQY, "1/nm"}, {Coords::RQ4, "nm^-4?"}}

Definition at line 28 of file AxisNames.h.

Referenced by ICoordSystem::throwUnitsError().