25using namespace Kernel;
27using Geometry::Instrument;
37 "The name of the workspace in which to attach the imported instrument");
40 "The name (including its full or relative path) of the Nexus file to "
41 "attempt to load the instrument from. The file extension must either be "
69 instrument->add(samplepos);
70 instrument->markAsSamplePos(samplepos);
71 samplepos->
setPos(0.0, 0.0, 0.0);
74 instrument->add(source);
75 instrument->markAsSource(source);
81 double l1 = l1ConfigVal.get_value_or(10.0);
83 source->
setPos(0.0, -1.0 * l1, 0.0);
84 localWorkspace->setInstrument(instrument);
#define DECLARE_ALGORITHM(classname)
void declareProperty(std::unique_ptr< Kernel::Property > p, const std::string &doc="") override
Add a property to the list of managed properties.
std::string getPropertyValue(const std::string &name) const override
Get the value of a property as a string.
TypedValue getProperty(const std::string &name) const override
Get the value of a property.
void progress(double p, const std::string &msg="", double estimatedTime=0.0, int progressPrecision=0)
Sends ProgressNotification.
@ Load
allowed here which will be passed to the algorithm
A property class for workspaces.
void init() override
Overwrites Algorithm method. Does nothing at present.
LoadInstrumentFromNexus()
Default constructor.
std::string m_filename
The name and path of the input file.
void exec() override
Overwrites Algorithm method.
Component is a wrapper for a Component which can modify some of its parameters, e....
void setPos(double, double, double) override
Set the IComponent position, x, y, z respective to parent (if present)
Object Component class, this class brings together the physical attributes of the component to the po...
static T & Instance()
Return a reference to the Singleton instance, creating it if it does not already exist Creation is do...
MuunNexusReader opens a Nexus file and reads certain fields expected for a ISIS Muon data file (old f...
void readFromFile(const std::string &filename)
read histogram data
std::string getInstrumentName() const
return instrument name
std::shared_ptr< MatrixWorkspace > MatrixWorkspace_sptr
shared pointer to the matrix workspace base class
std::shared_ptr< Instrument > Instrument_sptr
Shared pointer to an instrument object.
@ InOut
Both an input & output workspace.