-
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 #5244 further modifications to allow ConvToMD running multithread
refs #5537 Renamed couple of classes responsible for event conversion
- Loading branch information
Showing
21 changed files
with
309 additions
and
215 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
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
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
74 changes: 74 additions & 0 deletions
74
Code/Mantid/Framework/MDEvents/inc/MantidMDEvents/ConvToMDEventsWS.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,74 @@ | ||
#ifndef H_CONVERT_TO_MD_EVENTWS | ||
#define H_CONVERT_TO_MD_EVENTWS | ||
// | ||
#include "MantidKernel/System.h" | ||
#include "MantidKernel/Exception.h" | ||
#include "MantidAPI/Algorithm.h" | ||
#include <vector> | ||
|
||
#include "MantidDataObjects/EventWorkspace.h" | ||
|
||
#include "MantidAPI/NumericAxis.h" | ||
#include "MantidAPI/Progress.h" | ||
#include "MantidKernel/PhysicalConstants.h" | ||
|
||
#include "MantidMDEvents/MDEventWSWrapper.h" | ||
#include "MantidMDEvents/MDEvent.h" | ||
|
||
#include "MantidMDEvents/ConvToMDPreprocDet.h" | ||
#include "MantidMDEvents/ConvToMDBase.h" | ||
// coordinate transformation | ||
#include "MantidMDEvents/MDTransfFactory.h" | ||
|
||
namespace Mantid | ||
{ | ||
namespace MDEvents | ||
{ | ||
/** The class specializes ConvToMDEventsBase for the case when the conversion occurs from Events WS to the MD events WS | ||
* | ||
* @date 11-10-2011 | ||
Copyright © 2010 ISIS Rutherford Appleton Laboratory & NScD Oak Ridge National Laboratory | ||
This file is part of Mantid. | ||
Mantid is free software; you can redistribute it and/or modify | ||
it under the terms of the GNU General Public License as published by | ||
the Free Software Foundation; either version 3 of the License, or | ||
(at your option) any later version. | ||
Mantid is distributed in the hope that it will be useful, | ||
but WITHOUT ANY WARRANTY; without even the implied warranty of | ||
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the | ||
GNU General Public License for more details. | ||
You should have received a copy of the GNU General Public License | ||
along with this program. If not, see <http://www.gnu.org/licenses/>. | ||
File/ change history is stored at: <https://svn.mantidproject.org/mantid/trunk/Code/Mantid> | ||
Code Documentation is available at: <http://doxygen.mantidproject.org> | ||
*/ | ||
|
||
// Class to process event workspace by direct conversion: | ||
|
||
class ConvToMDEventsWS: public ConvToMDBase | ||
{ | ||
public: | ||
size_t initialize(const MDEvents::MDWSDescription &WSD, boost::shared_ptr<MDEvents::MDEventWSWrapper> inWSWrapper); | ||
void runConversion(API::Progress *pProg); | ||
|
||
private: | ||
// function runs the conversion on | ||
virtual size_t conversionChunk(size_t workspaceIndex); | ||
// the pointer to the source event workspace as event ws does not work through the public Matrix WS interface | ||
DataObjects::EventWorkspace_const_sptr pEventWS; | ||
|
||
/**function converts particular type of events into MD space and add these events to the workspace itself */ | ||
template <class T> size_t convertEventList(size_t workspaceIndex); | ||
|
||
}; | ||
|
||
} // endNamespace MDEvents | ||
} // endNamespace Mantid | ||
|
||
#endif |
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
93 changes: 0 additions & 93 deletions
93
Code/Mantid/Framework/MDEvents/src/ConvToMDEventsEvents.cpp
This file was deleted.
Oops, something went wrong.
Oops, something went wrong.