Skip to content
Snippets Groups Projects
Commit a35f1cf8 authored by McDonnell, Marshall's avatar McDonnell, Marshall
Browse files

Clean up unnecessary includes

parent d3be36c4
No related branches found
No related tags found
No related merge requests found
#ifndef MANTID_ALGORITHM_MULTIPLE_SCATTERING_ABSORPTION_H_
#define MANTID_ALGORITHM_MULTIPLE_SCATTERING_ABSORPTION_H_
#include "MantidAPI/AlgorithmManager.h"
#include "MantidAPI/AnalysisDataService.h"
#include "MantidAPI/DataProcessorAlgorithm.h"
#include "MantidAPI/WorkspaceGroup.h"
#include "MantidAPI/WorkspaceUnitValidator.h"
#include "MantidHistogramData/Points.h"
#include <vector>
using namespace Mantid::API;
namespace Mantid {
namespace HistogramData {
class HistogramX;
class HistogramY;
class HistogramE;
}
namespace Algorithms {
/** Multiple scattering absorption correction, originally used to
correct vanadium spectrum at IPNS. Algorithm originally worked
......@@ -84,12 +77,12 @@ private:
const HistogramData::Points &wavelength,
HistogramData::HistogramY &y_val);
API::MatrixWorkspace_sptr
createOutputWorkspace(const API::MatrixWorkspace_sptr inputWS,
MatrixWorkspace_sptr
createOutputWorkspace(const MatrixWorkspace_sptr &inputWS,
const std::string) const;
void deleteWorkspace(API::MatrixWorkspace_sptr workspace);
API::MatrixWorkspace_sptr
setUncertainties(API::MatrixWorkspace_sptr workspace);
void deleteWorkspace(MatrixWorkspace_sptr workspace);
MatrixWorkspace_sptr
setUncertainties(MatrixWorkspace_sptr workspace);
};
} // namespace Algorithm
......
#ifndef MANTID_ALGORITHM_MULTIPLE_SCATTERING_ABSORPTION_H_
#define MANTID_ALGORITHM_MULTIPLE_SCATTERING_ABSORPTION_H_
#include "MantidAPI/AlgorithmManager.h"
#include "MantidAPI/AnalysisDataService.h"
#include "MantidAPI/DataProcessorAlgorithm.h"
#include "MantidAPI/WorkspaceGroup.h"
#include <vector>
......@@ -9,11 +7,6 @@
using namespace Mantid::API;
namespace Mantid {
namespace HistogramData {
class HistogramX;
class HistogramY;
class HistogramE;
}
namespace Algorithms {
/** Multiple scattering absorption correction, originally used to
correct vanadium spectrum at IPNS. Algorithm originally worked
......
#include "MantidAlgorithms/CalculateCarpenterSampleCorrection.h"
#include "MantidAPI/AlgorithmManager.h"
#include "MantidAPI/InstrumentValidator.h"
#include "MantidAPI/Sample.h"
#include "MantidAPI/SpectrumInfo.h"
......@@ -7,13 +6,9 @@
#include "MantidAPI/WorkspaceGroup.h"
#include "MantidAPI/WorkspaceUnitValidator.h"
#include "MantidDataObjects/EventWorkspace.h"
#include "MantidDataObjects/Workspace2D.h"
#include "MantidDataObjects/WorkspaceCreation.h"
#include "MantidGeometry/Instrument.h"
#include "MantidGeometry/IComponent.h"
#include "MantidKernel/CompositeValidator.h"
#include "MantidKernel/Material.h"
#include "MantidKernel/PhysicalConstants.h"
#include <stdexcept>
......@@ -25,14 +20,9 @@ DECLARE_ALGORITHM(CalculateCarpenterSampleCorrection) // Register the class
using namespace Kernel;
using namespace API;
using Mantid::DataObjects::EventList;
using Mantid::DataObjects::EventWorkspace;
using Mantid::DataObjects::EventWorkspace_sptr;
using Mantid::DataObjects::WeightedEventNoTime;
using Mantid::DataObjects::Workspace2D;
using Mantid::HistogramData::HistogramX;
using Mantid::HistogramData::HistogramY;
using Mantid::HistogramData::HistogramE;
using Mantid::HistogramData::Points;
using std::vector;
using namespace Mantid::PhysicalConstants;
......@@ -433,7 +423,7 @@ void CalculateCarpenterSampleCorrection::calculate_ms_correction(
}
MatrixWorkspace_sptr CalculateCarpenterSampleCorrection::createOutputWorkspace(
const MatrixWorkspace_sptr inputWksp, const std::string ylabel) const {
const MatrixWorkspace_sptr &inputWksp, const std::string ylabel) const {
MatrixWorkspace_sptr outputWS =
WorkspaceFactory::Instance().create(inputWksp);
// The algorithm computes the signal values at bin centres so they should
......
#include "MantidAlgorithms/CarpenterSampleCorrection.h"
#include "MantidAPI/AlgorithmManager.h"
#include "MantidAPI/InstrumentValidator.h"
#include "MantidAPI/Sample.h"
#include "MantidAPI/SpectrumInfo.h"
#include "MantidAPI/WorkspaceFactory.h"
#include "MantidAPI/WorkspaceUnitValidator.h"
#include "MantidDataObjects/EventWorkspace.h"
#include "MantidGeometry/Instrument.h"
#include "MantidGeometry/IComponent.h"
#include "MantidKernel/CompositeValidator.h"
#include "MantidKernel/Material.h"
#include "MantidKernel/PhysicalConstants.h"
#include <stdexcept>
......@@ -22,15 +14,10 @@ DECLARE_ALGORITHM(CarpenterSampleCorrection) // Register the class
using namespace Kernel;
using namespace API;
using Mantid::DataObjects::EventList;
using Mantid::DataObjects::EventWorkspace;
using Mantid::DataObjects::EventWorkspace_sptr;
using Mantid::DataObjects::WeightedEventNoTime;
using Mantid::HistogramData::HistogramX;
using Mantid::HistogramData::HistogramY;
using Mantid::HistogramData::HistogramE;
using std::vector;
using namespace Mantid::PhysicalConstants;
//using namespace Mantid::PhysicalConstants;
using namespace Geometry;
const std::string CarpenterSampleCorrection::name() const {
......
......@@ -5,11 +5,10 @@
#include <vector>
#include "MantidAlgorithms/CalculateCarpenterSampleCorrection.h"
#include "MantidDataObjects/EventWorkspace.h"
#include "MantidDataObjects/WorkspaceCreation.h"
#include "MantidAPI/AnalysisDataService.h"
#include "MantidAPI/Axis.h"
#include "MantidAPI/FrameworkManager.h"
#include "MantidAPI/WorkspaceGroup.h"
#include "MantidIndexing/IndexInfo.h"
#include "MantidHistogramData/LinearGenerator.h"
#include "MantidTestHelpers/WorkspaceCreationHelper.h"
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment