if (down) peakType = IntegratedPeak::Type::VALLEY;
else peakType = IntegratedPeak::Type::PEAK;
- qDebug("Peak integrated");
+ Logger::log(Logger::Level::DEBUG, ME_SENDER_STR, __QFUNC__ + "Peak integrated");
//qDebug() << "SXC" << fromX << "SYC" << fromY << "EXC" << toX << "EYC" << toY << "Slope" << slope;
- qDebug() << "1st(X, Y, vY)" << startIdx << m_signal->valueAt(startIdx) << startY;
- qDebug() << "2nd(X, Y, vY)" << stopIdx << m_signal->valueAt(stopIdx) << stopY;
- qDebug("---");
+ Logger::log(Logger::Level::DEBUG, ME_SENDER_STR, __QFUNC__ + QString("1st(X: %1, Y: %2, vY: %3)").arg(startIdx).arg(m_signal->valueAt(startIdx)).arg(startY));
+ Logger::log(Logger::Level::DEBUG, ME_SENDER_STR, __QFUNC__ + QString("2nd(X: %1, Y: %2, vY: %3)").arg(stopIdx).arg(m_signal->valueAt(stopIdx)).arg(stopY));
+ Logger::log(Logger::Level::DEBUG, ME_SENDER_STR, __QFUNC__ + "---");
peak = std::shared_ptr<IntegratedPeak>(new IntegratedPeak(peakType, auc, peakValueIdx, m_signal->timeAt(peakValueIdx), m_signal->valueAt(peakValueIdx),
startIdx, stopIdx, m_signal->timeAt(startIdx), m_signal->timeAt(stopIdx),
emit addingPeak(m_peakCount);
addPeakToMap(peak);
emit peakAdded();
- qDebug() << "Peak added, count" << m_peakCount;
+ Logger::log(Logger::Level::DEBUG, ME_SENDER_STR, __QFUNC__ + QString("Peak added, count: %1").arg(m_peakCount));
return ReturnCode::SUCCESS;
}