void MDHistoToWorkspace2D::copyMetaData( Mantid::API::IMDHistoWorkspace_sptr inWS, Mantid::DataObjects::Workspace2D_sptr outWS) { if (inWS->getNumExperimentInfo() > 0) { ExperimentInfo_sptr info = inWS->getExperimentInfo(0); outWS->copyExperimentInfoFrom(info.get()); } outWS->setTitle(inWS->getTitle()); }
void SliceMDHisto::copyMetaData(Mantid::API::IMDHistoWorkspace_sptr inws, Mantid::API::IMDHistoWorkspace_sptr outws) { outws->setTitle(inws->getTitle()); ExperimentInfo_sptr info; if (inws->getNumExperimentInfo() > 0) { info = inws->getExperimentInfo(0); outws->addExperimentInfo(info); } }