ITableWorkspace_sptr ALCBaselineModellingModel::exportModel() { if (m_parameterTable) { return m_parameterTable; } else { return ITableWorkspace_sptr(); } }
ITableWorkspace_sptr ALCPeakFittingModel::exportFittedPeaks() { if ( m_parameterTable ) { return m_parameterTable; } else { return ITableWorkspace_sptr(); } }
ITableWorkspace_sptr ALCBaselineModellingModel::exportSections() { if (!m_sections.empty()) { ITableWorkspace_sptr table = WorkspaceFactory::Instance().createTable("TableWorkspace"); table->addColumn("double", "Start X"); table->addColumn("double", "End X"); for (auto it = m_sections.begin(); it != m_sections.end(); ++it) { TableRow newRow = table->appendRow(); newRow << it->first << it->second; } return table; } else { return ITableWorkspace_sptr(); } }