Skip to content

Commit

Permalink
refs #4401 Fixing CXX test error
Browse files Browse the repository at this point in the history
  • Loading branch information
abuts committed Apr 24, 2012
1 parent c372a49 commit 41b065c
Showing 1 changed file with 4 additions and 5 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,7 @@ using namespace Mantid::MDEvents;
using namespace Mantid::MDAlgorithms;
using namespace Mantid::MDAlgorithms::ConvertToMD;

class ConvertEventsToMDEventsTestPerformance : public CxxTest::TestSuite
class ConvertToMDEventsTestPerformance : public CxxTest::TestSuite
{

Mantid::API::MatrixWorkspace_sptr inWs2D;
Expand All @@ -32,18 +32,17 @@ class ConvertEventsToMDEventsTestPerformance : public CxxTest::TestSuite
std::auto_ptr<IConvertToMDEventsMethods> pConvMethods;
PreprocessedDetectors det_loc;


public:
static ConvertEventsToMDEventsTestPerformance *createSuite() { return new ConvertEventsToMDEventsTestPerformance(); }
static void destroySuite(ConvertEventsToMDEventsTestPerformance * suite) { delete suite; }
static ConvertToMDEventsTestPerformance *createSuite() { return new ConvertToMDEventsTestPerformance(); }
static void destroySuite(ConvertToMDEventsTestPerformance * suite) { delete suite; }

void test_EventNoUnitsConv()
{
pConvMethods = std::auto_ptr<IConvertToMDEventsMethods>(new ConvertToMDEventsWS<EventWSType,Q3D,Direct,ConvertNo,CrystType>());
}


ConvertEventsToMDEventsTestPerformance()
ConvertToMDEventsTestPerformance()
{
int numHist=100*100;
Mantid::API::MatrixWorkspace_sptr inWsEv = boost::dynamic_pointer_cast<MatrixWorkspace>(WorkspaceCreationHelper::CreateRandomEventWorkspace(1000, numHist, 0.1));
Expand Down

0 comments on commit 41b065c

Please sign in to comment.