Skip to content

Commit

Permalink
Code clean-up regarding usage of a namespace.
Browse files Browse the repository at this point in the history
Refs #7229
  • Loading branch information
arturbekasov committed Oct 10, 2013
1 parent 5950a63 commit b2ada41
Showing 1 changed file with 7 additions and 6 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -18,6 +18,7 @@ namespace Mantid

namespace Algorithms
{
using namespace API;
/**Takes a muon workspace as input and sums all the spectra into two spectra which represent
the two detector groupings. The resultant spectra are used to calculate (F-aB) / (F+aB) the results of which
are stored in the output workspace.
Expand Down Expand Up @@ -59,7 +60,7 @@ namespace Mantid
{
public:
/// Default constructor
PlotAsymmetryByLogValue() : API::Algorithm() {};
PlotAsymmetryByLogValue() : Algorithm() {};
/// Destructor
virtual ~PlotAsymmetryByLogValue() {};
/// Algorithm's name for identification overriding a virtual method
Expand All @@ -77,15 +78,15 @@ namespace Mantid
void exec();

/// Calculate the integral asymmetry for a workspace (single period)
void calcIntAsymmetry(API::MatrixWorkspace_sptr ws, double& Y, double& E);
void calcIntAsymmetry(MatrixWorkspace_sptr ws, double& Y, double& E);

/// Calculate the integral asymmetry for a workspace (red & green)
void calcIntAsymmetry(API::MatrixWorkspace_sptr ws_red,
API::MatrixWorkspace_sptr ws_geen,double& Y, double& E);
void calcIntAsymmetry(MatrixWorkspace_sptr ws_red, MatrixWorkspace_sptr ws_geen,double& Y, double& E);
/// Group detectors
void groupDetectors(API::MatrixWorkspace_sptr& ws,const std::vector<int>& spectraList);
void groupDetectors(MatrixWorkspace_sptr& ws,const std::vector<int>& spectraList);
/// Get log value
double getLogValue(API::MatrixWorkspace& ws,const std::string& logName);
double getLogValue(MatrixWorkspace& ws,const std::string& logName);


/// Stores property "Int"
bool m_int;
Expand Down

0 comments on commit b2ada41

Please sign in to comment.