-
Notifications
You must be signed in to change notification settings - Fork 122
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
refs #6865 merge with develop and resolve conflicts (again)
Merge branch 'feature/6856_ConvertToDiffractionMDWS_v2' into develop Conflicts: Code/Mantid/Framework/MDAlgorithms/src/ConvertToMD.cpp
- Loading branch information
Showing
13 changed files
with
672 additions
and
69 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
65 changes: 65 additions & 0 deletions
65
Code/Mantid/Framework/MDAlgorithms/inc/MantidMDAlgorithms/ConvertToDiffractionMDWorkspace2.h
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,65 @@ | ||
#ifndef MANTID_MDEVENTS_CONVERTTODIFFRACTIONMDWORKSPACE2_H_ | ||
#define MANTID_MDEVENTS_CONVERTTODIFFRACTIONMDWORKSPACE2_H_ | ||
|
||
#include "MantidAPI/Algorithm.h" | ||
#include "MantidAPI/IMDEventWorkspace.h" | ||
#include "MantidAPI/Progress.h" | ||
#include "MantidDataObjects/EventWorkspace.h" | ||
#include "MantidKernel/PhysicalConstants.h" | ||
#include "MantidKernel/ProgressBase.h" | ||
#include "MantidKernel/ProgressText.h" | ||
#include "MantidKernel/System.h" | ||
#include "MantidKernel/V3D.h" | ||
#include "MantidMDEvents/BoxControllerSettingsAlgorithm.h" | ||
#include "MantidMDAlgorithms/ConvertToMD.h" | ||
#include "MantidMDEvents/MDEventFactory.h" | ||
#include "MantidMDEvents/MDEventWorkspace.h" | ||
|
||
namespace Mantid | ||
{ | ||
namespace MDAlgorithms | ||
{ | ||
|
||
/** ConvertToDiffractionMDWorkspace2 : | ||
* Create a MDEventWorkspace with events in reciprocal space (Qx, Qy, Qz) from an input EventWorkspace. | ||
* | ||
* This is the wrapper for ConvertToMD algorithm transferring the properties of the old ConvertToDiffractionMDWorkspace into ConvertToMD properties | ||
* and running ConvertToMD as a subalgorithm. | ||
* | ||
* @date 2013-05-20 | ||
*/ | ||
class DLLExport ConvertToDiffractionMDWorkspace2 : public MDEvents::BoxControllerSettingsAlgorithm | ||
{ | ||
public: | ||
/** Constructor */ | ||
ConvertToDiffractionMDWorkspace2(){}; | ||
/** Destructor */ | ||
virtual ~ConvertToDiffractionMDWorkspace2(){}; | ||
|
||
/// Algorithm's name for identification | ||
virtual const std::string name() const { return "ConvertToDiffractionMDWorkspace";}; | ||
/// Algorithm's version for identification | ||
virtual int version() const { return 2;}; | ||
/// Algorithm's category for identification | ||
virtual const std::string category() const { return "MDAlgorithms";} | ||
|
||
private: | ||
/// Sets documentation strings for this algorithm | ||
virtual void initDocs(); | ||
void init(); | ||
void exec(); | ||
|
||
// the target frame names exposed as the algorithm properties and recognized by old convertToDiffractionWorkspace algorithm. | ||
std::vector<std::string> frameOptions; | ||
protected: // for testing | ||
// method to convert the value of the target frame specified for the ConvertToDiffractionMDWorksapce into the properties names of the ConvertToMD | ||
void convertFramePropertyNames(const std::string &ConvToDifrWSPropName,std::string &TargFrameName,std::string & ScalingName); | ||
// method to convert the extents specified for the ConvertToDiffractionMDWorksapce into the min-max properties names of the ConvertToMD | ||
void convertExtents(const std::vector<double> &Extents,std::vector<double> &minVal,std::vector<double> &maxVal)const; | ||
}; | ||
|
||
|
||
} // namespace Mantid | ||
} // namespace MDEvents | ||
|
||
#endif /* MANTID_MDEVENTS_CONVERTTODIFFRACTIONMDWORKSPACE_H_ */ |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.