Skip to content

Commit

Permalink
refs #4401 wandering in Unix namspaces maze
Browse files Browse the repository at this point in the history
  • Loading branch information
abuts committed Apr 24, 2012
1 parent 0b1d5d1 commit 2822a81
Showing 1 changed file with 4 additions and 7 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -8,8 +8,6 @@ namespace Mantid
{
namespace MDAlgorithms
{
namespace ConvertToMD
{
/** Interface to set of internal classes used by ConvertToMDEvents algorithm and responsible for conversion of input workspace
* data into from 1 to 4 output dimensions as function of input parameters
*
Expand Down Expand Up @@ -47,7 +45,7 @@ namespace ConvertToMD
Code Documentation is available at: <http://doxygen.mantidproject.org>
*/

template<QMode Q,AnalMode MODE,CnvrtUnits CONV,XCoordType Type,SampleType Sample>
template<ConvertToMD::QMode Q,ConvertToMD::AnalMode MODE,ConvertToMD::CnvrtUnits CONV,ConvertToMD::XCoordType Type,ConvertToMD::SampleType Sample>
struct CoordTramsformer
{

Expand Down Expand Up @@ -131,23 +129,22 @@ struct CoordTramsformer
////----------------------------------------------------------------------------------------------------------------------
//------------------------------------------------------------------------------------------------------------------------------
// the module for the momentum transfer wavevector of the scattered neutrons
template<AnalMode MODE>
template<ConvertToMD::AnalMode MODE>
inline double k_trans(double Ei, double E_tr){
UNUSED_ARG(Ei);UNUSED_ARG(E_tr);
throw(Kernel::Exception::NotImplementedError("Generic K_tr should not be implemented"));
}
// Direct Inelastic analysis
template<>
inline double k_trans<Direct>(double Ei, double E_tr){
inline double k_trans<ConvertToMD::Direct>(double Ei, double E_tr){
return sqrt((Ei-E_tr)/PhysicalConstants::E_mev_toNeutronWavenumberSq);
}
// Indirect Inelastic analysis
template<>
inline double k_trans<Indir>(double Ei, double E_tr){
inline double k_trans<ConvertToMD::Indir>(double Ei, double E_tr){
return sqrt((Ei+E_tr)/PhysicalConstants::E_mev_toNeutronWavenumberSq);
}

}
} // End MDAlgorighms namespace
} // End Mantid namespace

Expand Down

0 comments on commit 2822a81

Please sign in to comment.