Skip to content

Commit

Permalink
Refs #4720: NormaliseToMonitor preserves events
Browse files Browse the repository at this point in the history
  • Loading branch information
Janik Zikovsky committed Apr 4, 2012
1 parent 6fc6962 commit 8f0aa08
Showing 1 changed file with 8 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -10,10 +10,12 @@
#include "MantidKernel/Property.h"
#include "MantidKernel/SingletonHolder.h"
#include "MantidAPI/FrameworkManager.h"
#include "MantidDataObjects/EventWorkspace.h"

using namespace Mantid::Kernel;
using namespace Mantid::API;
using namespace Mantid::Algorithms;
using namespace Mantid::DataObjects;
using Mantid::Geometry::Instrument;

class NormaliseToMonitorTestHelper : public NormaliseToMonitor
Expand Down Expand Up @@ -151,6 +153,12 @@ class NormaliseToMonitorTest : public CxxTest::TestSuite
TS_ASSERT_DELTA( output->readY(0)[k], 10, 0.00001 )
TS_ASSERT_DELTA( output->readE(0)[k], 4.24264, 0.00001 )
}

if (events)
{
EventWorkspace_const_sptr eventOut = boost::dynamic_pointer_cast<const EventWorkspace>(output);
TS_ASSERT(eventOut);
}
}


Expand Down

0 comments on commit 8f0aa08

Please sign in to comment.