Skip to content

Commit

Permalink
expanded muon info on load. re #9258
Browse files Browse the repository at this point in the history
  • Loading branch information
Anders-Markvardsen committed Apr 22, 2014
1 parent 983616e commit 3d11098
Showing 1 changed file with 10 additions and 1 deletion.
11 changes: 10 additions & 1 deletion Code/Mantid/MantidQt/CustomInterfaces/src/MuonAnalysisHelper.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -127,6 +127,13 @@ void printRunInfo(MatrixWorkspace_sptr runWs, std::ostringstream& out)
out << end.toSimpleString();
}

// Add the end time for the run
out << "\nGood frames: ";
if ( run.hasProperty("goodfrm") )
{
out << run.getProperty("goodfrm")->value();
}

// Add counts to run information
out << "\nCounts: ";
double counts(0.0);
Expand All @@ -137,8 +144,10 @@ void printRunInfo(MatrixWorkspace_sptr runWs, std::ostringstream& out)
counts += runWs->dataY(i)[j];
}
}
// output this number to three decimal places
out << std::setprecision(3);
out << counts/1000000 << " MEv";

out << std::setprecision(12);
// Add average temperature.
out << "\nAverage Temperature: ";
if ( run.hasProperty("Temp_Sample") )
Expand Down

0 comments on commit 3d11098

Please sign in to comment.