Skip to content

Commit

Permalink
Re #4106. Trying to fix isis_lucid build
Browse files Browse the repository at this point in the history
  • Loading branch information
mantid-roman committed Nov 11, 2011
1 parent 144812a commit 89987ea
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions Code/Mantid/Framework/DataHandling/src/LoadEventNexus.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -1745,12 +1745,13 @@ void LoadEventNexus::loadTimeOfFlightData(::NeXus::File& file, DataObjects::Even
while(ev != ev_end && ev->m_tof < right)
{
++ev;
++m; // count events in the i-th bin
++m; // count events in the i-th bin
}

if (m > 0)
{// m events in this bin
boost::uniform_real<> distribution(double(tof[i-1]),right);
double left = double(tof[i-1]);
boost::uniform_real<> distribution(left,right);
// spread the events uniformly inside the bin
for(std::vector<TofEvent>::iterator ev1 = ev - m; ev1 != ev; ++ev1)
{
Expand Down

0 comments on commit 89987ea

Please sign in to comment.