diff --git a/Framework/DataObjects/src/PeaksWorkspace.cpp b/Framework/DataObjects/src/PeaksWorkspace.cpp index 8f8ecd91dc2bfc665388b13f836e1c27a17621c2..a4708efa97b393b349f6880997cf9c5600f87aa5 100644 --- a/Framework/DataObjects/src/PeaksWorkspace.cpp +++ b/Framework/DataObjects/src/PeaksWorkspace.cpp @@ -40,6 +40,8 @@ namespace DataObjects { /// Register the workspace as a type DECLARE_WORKSPACE(PeaksWorkspace) +Mantid::Kernel::Logger g_log("PeaksWorkspace"); + //--------------------------------------------------------------------------------------------- /** Constructor. Create a table with all the required columns. * @@ -296,6 +298,9 @@ Peak *PeaksWorkspace::createPeakQSample(const V3D &position) const { wavelength = props->getPropertyValueAsType<double>("wavelength"); } goniometer.calcFromQSampleAndWavelength(position, wavelength); + g_log.information() << "Found goniometer rotation to be " + << goniometer.getEulerAngles()[0] + << " degrees for Q sample = " << position << "\n"; } else { goniometer = run().getGoniometer(); } diff --git a/Framework/Geometry/src/Instrument/Goniometer.cpp b/Framework/Geometry/src/Instrument/Goniometer.cpp index 57180430481abc95db1a4e5a79af2e0cebf47f9b..1002fd2ed07877a088b42ea910ef460aa4520cc9 100644 --- a/Framework/Geometry/src/Instrument/Goniometer.cpp +++ b/Framework/Geometry/src/Instrument/Goniometer.cpp @@ -204,8 +204,6 @@ void Goniometer::calcFromQSampleAndWavelength( std::vector<double> B{Q_lab[0], Q_lab[2]}; std::vector<double> X = A * B; double rot = atan2(X[1], X[0]); - g_log.information() << "Found goniometer rotation to be " << rot * 180 / M_PI - << " degrees for Q sample = " << Q << "\n"; Matrix<double> goniometer(3, 3, true); goniometer[0][0] = cos(rot); diff --git a/Framework/MDAlgorithms/src/FindPeaksMD.cpp b/Framework/MDAlgorithms/src/FindPeaksMD.cpp index 7c19297f430d340381f1a6fb6d2ba42f81c8a2c6..b71032b5f837448c74b838ba9d35c720bdd9bcd2 100644 --- a/Framework/MDAlgorithms/src/FindPeaksMD.cpp +++ b/Framework/MDAlgorithms/src/FindPeaksMD.cpp @@ -298,6 +298,9 @@ FindPeaksMD::createPeak(const Mantid::Kernel::V3D &Q, const double binCount, double wavelength = getProperty("Wavelength"); Geometry::Goniometer goniometer; goniometer.calcFromQSampleAndWavelength(Q, wavelength); + g_log.information() << "Found goniometer rotation to be " + << goniometer.getEulerAngles()[0] + << " degrees for Q sample = " << Q << "\n"; p = boost::make_shared<Peak>(inst, Q, goniometer.getR()); } else {