Skip to content

Commit

Permalink
Refs #4814. Set the category.
Browse files Browse the repository at this point in the history
DetectorDiagnostics is now a Workflow/Diagnostics algorithm and all
of its children are Diagnostics algorithms.
  • Loading branch information
peterfpeterson committed Feb 24, 2012
1 parent 5f0d3e9 commit f2be786
Show file tree
Hide file tree
Showing 9 changed files with 24 additions and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -51,6 +51,7 @@ namespace Mantid
CreatePSDBleedMask();
/// Algorithm's name for identification overriding a virtual method
virtual const std::string name() const { return "CreatePSDBleedMask";}
virtual const std::string category() const;

private:
/// Sets documentation strings for this algorithm
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -59,6 +59,7 @@ namespace Mantid
virtual ~DetectorEfficiencyVariation() {};
/// Algorithm's name for identification overriding a virtual method
virtual const std::string name() const { return "DetectorEfficiencyVariation";}
virtual const std::string category() const;
/// Algorithm's version for identification overriding a virtual method
virtual int version() const { return (1);}

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -67,6 +67,7 @@ namespace Mantid
virtual ~FindDetectorsOutsideLimits() {}
/// Algorithm's name for identification overriding a virtual method
virtual const std::string name() const { return "FindDetectorsOutsideLimits";}
virtual const std::string category() const;
/// Algorithm's version for identification overriding a virtual method
virtual int version() const { return (1);}

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -68,6 +68,7 @@ namespace Mantid
virtual ~MedianDetectorTest() {};
/// Algorithm's name for identification overriding a virtual method
virtual const std::string name() const { return "MedianDetectorTest";}
virtual const std::string category() const;
/// Algorithm's version for identification overriding a virtual method
virtual int version() const { return 1;}

Expand Down
4 changes: 4 additions & 0 deletions Code/Mantid/Framework/Algorithms/src/CreatePSDBleedMask.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -39,6 +39,10 @@ namespace Mantid
this->setOptionalMessage("Runs a diagnostic test for saturation of PSD tubes and creates a MaskWorkspace marking the failed tube spectra.");
}

const std::string CreatePSDBleedMask::category() const
{
return "Diagnostics";
}

using API::MatrixWorkspace_sptr;
using API::MatrixWorkspace_const_sptr;
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -34,7 +34,7 @@ namespace Mantid
//--------------------------------------------------------------------------
const std::string DetectorDiagnostic::category() const
{
return "Diagnostics";
return "Diagnostics;Workflow\\Diagnostics";
}

const std::string DetectorDiagnostic::name() const
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -38,7 +38,11 @@ namespace Mantid
this->setWikiSummary("Compares two white beam vanadium workspaces from the same instrument to find detectors whose efficiencies have changed beyond a threshold. ");
this->setOptionalMessage("Compares two white beam vanadium workspaces from the same instrument to find detectors whose efficiencies have changed beyond a threshold.");
}


const std::string DetectorEfficiencyVariation::category() const
{
return "Diagnostics";
}

using namespace Kernel;
using namespace API;
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -35,7 +35,11 @@ namespace Mantid
this->setOptionalMessage("Identifies histograms and their detectors that have total numbers of counts over a user defined maximum or less than the user define minimum.");
}


const std::string FindDetectorsOutsideLimits::category() const
{
return "Diagnostics";
}

using namespace Kernel;
using namespace API;
using namespace DataObjects;
Expand Down
5 changes: 5 additions & 0 deletions Code/Mantid/Framework/Algorithms/src/MedianDetectorTest.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -38,6 +38,11 @@ namespace Mantid
{
};

const std::string MedianDetectorTest::category() const
{
return "Diagnostics";
}

/// Declare algorithm properties
void MedianDetectorTest::init()
{
Expand Down

0 comments on commit f2be786

Please sign in to comment.