BornAgain  1.18.0
Simulate and fit neutron and x-ray scattering at grazing incidence
UnitConverterUtils Namespace Reference

Namespace enclosing a number of utilities/helpers for unit converters. More...

Functions

std::unique_ptr< OutputData< double > > createOutputData (const IUnitConverter &converter, Axes::Units units)
 Returns zero-valued output data array in specified units.
 
std::unique_ptr< IUnitConvertercreateConverterForGISAS (const Instrument &instrument)
 Helper factory function to use in GISASSimulation. More...
 
std::unique_ptr< IUnitConvertercreateConverter (const Simulation &simulation)
 

Detailed Description

Namespace enclosing a number of utilities/helpers for unit converters.

Function Documentation

◆ createConverterForGISAS()

std::unique_ptr< IUnitConverter > UnitConverterUtils::createConverterForGISAS ( const Instrument instrument)

Helper factory function to use in GISASSimulation.

Depending on the type of detector, returns either RectangularConverter or SphericalConverter.

Definition at line 36 of file UnitConverterUtils.cpp.