Skip to content

Commit

Permalink
Refs #5613 add intensity
Browse files Browse the repository at this point in the history
  • Loading branch information
VickieLynch committed Jul 14, 2012
1 parent d53dc62 commit fa482c5
Showing 1 changed file with 4 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -788,6 +788,10 @@ void InstrumentWindowPickTab::addPeak(double x,double y)
peak->setGoniometerMatrix(ws->run().getGoniometer().getR());
peak->setBinCount(count);
peak->setRunNumber(ws->getRunNumber());
const double counts = instrActor->getIntegratedCounts(m_currentDetID);
peak->setIntensity(counts);
if(counts > 0.) peak->setSigmaIntensity(std::sqrt(counts));

tw->addPeak(*peak);
delete peak;
tw->modified();
Expand Down

0 comments on commit fa482c5

Please sign in to comment.