Skip to content

Commit

Permalink
Refs #8534. MuonCalculateAsymmetry: documentation.
Browse files Browse the repository at this point in the history
  • Loading branch information
arturbekasov committed Dec 3, 2013
1 parent 9787ec7 commit cc5158e
Show file tree
Hide file tree
Showing 2 changed files with 30 additions and 14 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@ namespace WorkflowAlgorithms
using namespace Kernel;
using namespace API;

/** MuonCalculateAsymmetry : TODO: DESCRIPTION
/** MuonCalculateAsymmetry : converts loaded/prepared Muon data to a data suitable for analysis.
Copyright © 2013 ISIS Rutherford Appleton Laboratory & NScD Oak Ridge National Laboratory
Expand Down Expand Up @@ -48,10 +48,10 @@ namespace WorkflowAlgorithms
void init();
void exec();

/// TODO: comment
/// Converts given workspace according to the OutputType
MatrixWorkspace_sptr convertWorkspace(MatrixWorkspace_sptr ws);

/// TODO: comment
/// Merges two period workspaces according to PeriodOperation specified
MatrixWorkspace_sptr mergePeriods(MatrixWorkspace_sptr ws1, MatrixWorkspace_sptr ws2);
};

Expand Down
Original file line number Diff line number Diff line change
@@ -1,5 +1,12 @@
/*WIKI*
TODO: Enter a full wiki-markup description of your algorithm here. You can then use the Build/wiki_maker.py script to generate your full wiki page.
Converts loaded/prepared Muon data to a data suitable for analysis.
Supports three modes:
* PairAsymmetry - asymmetry is calculated for a given pair of groups, using the alpha value provided.
* GroupAsymmetry - asymmetry between given group and Muon exponential decay is calculated.
* GroupCount - '''no asymmetry is calculated''', pure counts of the specified group are used.
For every mode, either one or two data acquisition period workspaces can be provided. PeriodOperation determines in which way period data will be merged at the end.
*WIKI*/

#include "MantidWorkflowAlgorithms/MuonCalculateAsymmetry.h"
Expand All @@ -16,23 +23,23 @@ namespace WorkflowAlgorithms
DECLARE_ALGORITHM(MuonCalculateAsymmetry)

//----------------------------------------------------------------------------------------------

/**
* Constructor
*/
MuonCalculateAsymmetry::MuonCalculateAsymmetry()
{
}
{}

//----------------------------------------------------------------------------------------------

/**
* Destructor
*/
MuonCalculateAsymmetry::~MuonCalculateAsymmetry()
{
}

{}

//----------------------------------------------------------------------------------------------

/// Algorithm's name for identification. @see Algorithm::name
const std::string MuonCalculateAsymmetry::name() const { return "MuonCalculateAsymmetry";};

Expand All @@ -43,15 +50,18 @@ namespace WorkflowAlgorithms
const std::string MuonCalculateAsymmetry::category() const { return "Workflow\\Muon"; }

//----------------------------------------------------------------------------------------------

/// Sets documentation strings for this algorithm
void MuonCalculateAsymmetry::initDocs()
{
this->setWikiSummary("TODO: Enter a quick description of your algorithm.");
this->setOptionalMessage("TODO: Enter a quick description of your algorithm.");
this->setWikiSummary("Converts loaded/prepared Muon data to a data suitable for analysis.");
this->setOptionalMessage("Converts loaded/prepared Muon data to a data suitable for analysis.");
}

//----------------------------------------------------------------------------------------------
/** Initialize the algorithm's properties.

/**
* Initialize the algorithm's properties.
*/
void MuonCalculateAsymmetry::init()
{
Expand Down Expand Up @@ -91,6 +101,7 @@ namespace WorkflowAlgorithms
}

//----------------------------------------------------------------------------------------------

/**
* Execute the algorithm.
*/
Expand All @@ -117,7 +128,9 @@ namespace WorkflowAlgorithms
}

/**
* TODO: comment
* Converts given workspace according to the OutputType.
* @param ws :: Workspace to convert
* @return Converted workspace
*/
MatrixWorkspace_sptr MuonCalculateAsymmetry::convertWorkspace(MatrixWorkspace_sptr ws)
{
Expand Down Expand Up @@ -190,7 +203,10 @@ namespace WorkflowAlgorithms
}

/**
* TODO: comment
* Merges two period workspaces according to PeriodOperation specified.
* @param ws1 :: First period workspace
* @param ws2 :: Second period workspace
* @return Merged workspace
*/
MatrixWorkspace_sptr MuonCalculateAsymmetry::mergePeriods(MatrixWorkspace_sptr ws1, MatrixWorkspace_sptr ws2)
{
Expand Down

0 comments on commit cc5158e

Please sign in to comment.