Skip to content
Snippets Groups Projects
Commit 54ec19b3 authored by LamarMoore's avatar LamarMoore Committed by Lamar Moore
Browse files

Updated codebase with new DateAndTime

parent cd755fab
No related branches found
No related tags found
No related merge requests found
......@@ -269,8 +269,8 @@ void CalculateCountRate::calcRateLog(
double dt = (dTRangeMax - dTRangeMin) / static_cast<double>(m_numLogSteps);
auto t0 = m_TRangeMin.totalNanoseconds();
for (auto i = 0; i < m_numLogSteps; i++) {
times[i] = Mantid::Types::DateAndTime(
t0 + static_cast<int64_t>((0.5 + double(i)) * dt));
times[i] =
Mantid::Types::DateAndTime(t0 + static_cast<int64_t>((0.5 + double(i)) * dt));
}
// store calculated values within the target log.
targLog->replaceValues(times, countRate);
......
......@@ -6,6 +6,7 @@
#endif
#include "MantidAPI/MatrixWorkspace_fwd.h" // get MantidVec declaration
#include "MantidKernel/System.h"
#include "MantidTypes/DateAndTime.h"
#include "MantidKernel/TimeSplitter.h"
#include "MantidKernel/cow_ptr.h"
#include "MantidTypes/DateAndTime.h"
......@@ -181,9 +182,7 @@ inline double WeightedEventNoTime::tof() const { return m_tof; }
/** Return the pulse time; this returns 0 since this
* type of Event has no time associated.
*/
inline Mantid::Types::DateAndTime WeightedEventNoTime::pulseTime() const {
return 0;
}
inline Mantid::Types::DateAndTime WeightedEventNoTime::pulseTime() const { return 0; }
/// Return the weight of the neutron, as a double (it is saved as a float).
inline double WeightedEventNoTime::weight() const { return m_weight; }
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment