22using namespace Kernel;
24using namespace Geometry;
29 "Name of the workspace giving the instrument");
31 "Name of the workspace receiving the instrument");
58 std::string targParams;
60 std::string targComponent;
61 if (componentInfoGiv.isDetector(
index)) {
64 targComponent = componentInfoGiv.fullName(
index);
65 targComponent.replace(targComponent.find(Name1), Name1.size(), Name2);
74 clear->executeAsChildAlg();
93 if (componentInfoGiv.componentID(componentInfoGiv.root()) != componentInfoRec.componentID(componentInfoRec.root())) {
95 g_log.
warning() <<
"The base instrument in the output workspace is not the "
96 "same as the base instrument in the input workspace.\n";
#define DECLARE_ALGORITHM(classname)
std::map< DeltaEMode::Type, std::string > index
void declareProperty(std::unique_ptr< Kernel::Property > p, const std::string &doc="") override
Add a property to the list of managed properties.
void clear() override
Clears all properties under management.
TypedValue getProperty(const std::string &name) const override
Get the value of a property.
virtual std::shared_ptr< Algorithm > createChildAlgorithm(const std::string &name, const double startProgress=-1., const double endProgress=-1., const bool enableLogging=true, const int &version=-1)
Create a Child Algorithm.
A property class for workspaces.
void checkProperties()
Checks whether the two workspaces have the same base instrument, recording the result in m_different_...
void exec() override
Execution code.
void init() override
Initialisation code.
API::MatrixWorkspace_sptr m_givingWorkspace
The giving workspace.
bool m_different_instrument_sp
indicates that source workspace instrument and target workspace instrument have different share point...
API::MatrixWorkspace_sptr m_receivingWorkspace
The receiving workspace.
static std::string asStringEntry(const std::string &component, const Parameter ¶meter)
Returns the asString() entry for one parameter of a component, given as "detID:<id>" or by full name.
void warning(const std::string &msg)
Logs at warning level.
std::string to_string(const wide_integer< Bits, Signed > &n)
@ InOut
Both an input & output workspace.
@ Input
An input workspace.