qse
0.5.4
|
#include <qsenormalizer.h>
Public Member Functions | |
QseNormalizer (QseDataSet *inData, QseDataSet *outData, const QString &name, QObject *parent=0) | |
void | exec () |
bool | matchesScanPattern (int n) |
bool | matchesScan (int n) |
double | energyScalingRatio () |
void | normalizeScan (int n, QseScan *out) |
void | setScanException (int s, QseScanRole role) |
void | setColumnException (int s, int c, QseColumnRole role) |
bool | matchesScanException (int s) |
bool | matchesColumnException (int s, int c) |
QseColumnRole | exceptionalColumnRole (int s, int c) |
QseColumnRole | patternColumnRole (int s, int c) |
QseColumnRole | columnRole (int s, int c) |
Public Member Functions inherited from QseEXAFSOperator | |
QseEXAFSOperator (QseDataSet *inData, QseDataSet *outData, const QString &name, QObject *parent=0) | |
QseDataSet * | inputData () |
QseDataSet * | outputData () |
bool | matchesEnergyPattern (const QseColumn *col, int colnum) |
bool | matchesEnergyColumn (const QseColumn *col, int colnum) |
bool | matchesDetectorPattern (const QseColumn *col, int colnum) |
bool | matchesDetectorColumn (const QseColumn *col, int colnum) |
bool | matchesNormalizationPattern (const QseColumn *col, int colnum) |
bool | matchesNormalizationColumn (const QseColumn *col, int colnum) |
bool | matchesSecondsPattern (const QseColumn *col, int colnum) |
bool | matchesSecondsColumn (const QseColumn *col, int colnum) |
bool | matchesCopyPattern (const QseColumn *col, int colnum) |
bool | matchesCopyColumn (const QseColumn *col, int colnum) |
bool | matchesCopyNormalizedPattern (const QseColumn *col, int colnum) |
bool | matchesCopyNormalizedColumn (const QseColumn *col, int colnum) |
bool | matchesCopyRatePattern (const QseColumn *col, int colnum) |
bool | matchesCopyRateColumn (const QseColumn *col, int colnum) |
bool | matchesCopyTotalCountsPattern (const QseColumn *col, int colnum) |
bool | matchesCopyTotalCountsColumn (const QseColumn *col, int colnum) |
Public Member Functions inherited from QseOperator | |
QseOperator (const QString &name, QObject *parent=0) | |
QString | name () const |
void | setName (const QString &name) |
void | addParameter (QseParameter *parameter) |
Friends | |
class | QseNormalizerUI |
Additional Inherited Members | |
Public Types inherited from QseEXAFSOperator | |
enum | QseScanRole { UnspecifiedScanRole = -1, ScanNotUsedRole, ScanUsedRole } |
enum | QseColumnRole { UnspecifiedRole = -1, NotUsedRole, DetectorRole, NormalizationRole, EnergyRole, SecondsRole, CopyRole, CopyNormalizedRole, CopyRateRole, CopyTotalCountsRole } |
Signals inherited from QseOperator | |
void | message (const QString &msg) |
Static Public Member Functions inherited from QseEXAFSOperator | |
static QColor | colorForRole (QseColumnRole r) |
static QColor | backgroundColorForRole (QseColumnRole r) |
Definition at line 14 of file qsenormalizer.h.
QseNormalizer::QseNormalizer | ( | QseDataSet * | inData, |
QseDataSet * | outData, | ||
const QString & | name, | ||
QObject * | parent = 0 |
||
) |
Definition at line 8 of file qsenormalizer.cpp.
QseNormalizer::QseColumnRole QseNormalizer::columnRole | ( | int | s, |
int | c | ||
) |
Definition at line 347 of file qsenormalizer.cpp.
References exceptionalColumnRole(), patternColumnRole(), and QseEXAFSOperator::UnspecifiedRole.
double QseNormalizer::energyScalingRatio | ( | ) |
Definition at line 237 of file qsenormalizer.cpp.
References m_InputEnergyUnits, m_OutputEnergyUnits, and QseParameter::value().
Referenced by normalizeScan().
QseNormalizer::QseColumnRole QseNormalizer::exceptionalColumnRole | ( | int | s, |
int | c | ||
) |
Definition at line 303 of file qsenormalizer.cpp.
References QseEXAFSOperator::m_Exceptions, QseEXAFSOperator::m_InputData, and QseEXAFSOperator::UnspecifiedRole.
Referenced by columnRole(), and QseNormalizerModel::data().
|
virtual |
Implements QseOperator.
Definition at line 24 of file qsenormalizer.cpp.
References QseEXAFSOperator::m_InputData, QseEXAFSOperator::m_OutputData, matchesScan(), and normalizeScan().
Referenced by QseController::runNormalizer().
bool QseNormalizer::matchesColumnException | ( | int | s, |
int | c | ||
) |
Definition at line 290 of file qsenormalizer.cpp.
References QseEXAFSOperator::m_Exceptions, and QseEXAFSOperator::m_InputData.
bool QseNormalizer::matchesScan | ( | int | n | ) |
Definition at line 95 of file qsenormalizer.cpp.
References QseScan::columnCount(), QseEXAFSOperator::m_InputData, m_MaxScanColumnCount, m_MaxScanRowCount, m_MinScanColumnCount, m_MinScanRowCount, QseEXAFSOperator::m_ScanExceptions, m_ScanPattern, QseScan::maxRowCount(), QseDataSet::scan(), QseScan::scanCommand(), QseEXAFSOperator::ScanUsedRole, QseEXAFSOperator::UnspecifiedScanRole, and QseParameter::value().
Referenced by exec().
bool QseNormalizer::matchesScanException | ( | int | s | ) |
Definition at line 283 of file qsenormalizer.cpp.
References QseEXAFSOperator::m_InputData, and QseEXAFSOperator::m_ScanExceptions.
bool QseNormalizer::matchesScanPattern | ( | int | n | ) |
Definition at line 52 of file qsenormalizer.cpp.
References QseScan::columnCount(), QseEXAFSOperator::m_InputData, m_MaxScanColumnCount, m_MaxScanRowCount, m_MinScanColumnCount, m_MinScanRowCount, m_ScanPattern, QseScan::maxRowCount(), QseDataSet::scan(), QseScan::scanCommand(), and QseParameter::value().
void QseNormalizer::normalizeScan | ( | int | n, |
QseScan * | out | ||
) |
Definition at line 148 of file qsenormalizer.cpp.
References QseScan::appendColumn(), QseScan::column(), QseColumn::division(), energyScalingRatio(), QseScan::header(), QseEXAFSOperator::m_InputData, QseEXAFSOperator::matchesCopyColumn(), QseEXAFSOperator::matchesCopyNormalizedColumn(), QseEXAFSOperator::matchesCopyRateColumn(), QseEXAFSOperator::matchesCopyTotalCountsColumn(), QseEXAFSOperator::matchesDetectorColumn(), QseEXAFSOperator::matchesEnergyColumn(), QseEXAFSOperator::matchesNormalizationColumn(), QseEXAFSOperator::matchesSecondsColumn(), QseOperator::message(), QseColumn::multiplication(), QseColumn::name(), QseScan::name(), QseDataSet::scan(), QseScan::scanCommand(), QseScan::scanNumber(), and QseOperator::setName().
Referenced by exec().
QseNormalizer::QseColumnRole QseNormalizer::patternColumnRole | ( | int | s, |
int | c | ||
) |
Definition at line 318 of file qsenormalizer.cpp.
References QseEXAFSOperator::CopyNormalizedRole, QseEXAFSOperator::CopyRateRole, QseEXAFSOperator::CopyRole, QseEXAFSOperator::CopyTotalCountsRole, QseEXAFSOperator::DetectorRole, QseEXAFSOperator::EnergyRole, QseEXAFSOperator::m_InputData, QseEXAFSOperator::matchesCopyNormalizedPattern(), QseEXAFSOperator::matchesCopyPattern(), QseEXAFSOperator::matchesCopyRatePattern(), QseEXAFSOperator::matchesCopyTotalCountsPattern(), QseEXAFSOperator::matchesDetectorPattern(), QseEXAFSOperator::matchesEnergyPattern(), QseEXAFSOperator::matchesNormalizationPattern(), QseEXAFSOperator::matchesSecondsPattern(), QseEXAFSOperator::NormalizationRole, QseEXAFSOperator::SecondsRole, and QseEXAFSOperator::UnspecifiedRole.
Referenced by columnRole(), and QseNormalizerModel::data().
void QseNormalizer::setColumnException | ( | int | s, |
int | c, | ||
QseColumnRole | role | ||
) |
Definition at line 266 of file qsenormalizer.cpp.
References QseEXAFSOperator::m_Exceptions, QseEXAFSOperator::m_InputData, and QseEXAFSOperator::UnspecifiedRole.
void QseNormalizer::setScanException | ( | int | s, |
QseScanRole | role | ||
) |
Definition at line 253 of file qsenormalizer.cpp.
References QseEXAFSOperator::m_InputData, QseEXAFSOperator::m_ScanExceptions, and QseEXAFSOperator::UnspecifiedScanRole.
|
friend |
Definition at line 24 of file qsenormalizer.h.
|
protected |
Definition at line 53 of file qsenormalizer.h.
Referenced by energyScalingRatio().
|
protected |
Definition at line 52 of file qsenormalizer.h.
Referenced by matchesScan(), and matchesScanPattern().
|
protected |
Definition at line 50 of file qsenormalizer.h.
Referenced by matchesScan(), and matchesScanPattern().
|
protected |
Definition at line 51 of file qsenormalizer.h.
Referenced by matchesScan(), and matchesScanPattern().
|
protected |
Definition at line 49 of file qsenormalizer.h.
Referenced by matchesScan(), and matchesScanPattern().
|
protected |
Definition at line 54 of file qsenormalizer.h.
Referenced by energyScalingRatio().
|
protected |
Definition at line 47 of file qsenormalizer.h.
Referenced by matchesScan(), and matchesScanPattern().