qse  0.5.4
qsenormalizer.h
Go to the documentation of this file.
1 #ifndef QSENORMALIZER_H
2 #define QSENORMALIZER_H
3 
4 #include "qseexafsoperator.h"
5 #include "qseregexpparameter.h"
6 #include "qsestringparameter.h"
7 #include "qseenumparameter.h"
8 #include <QHash>
9 
10 class QseDataSet;
11 class QseScan;
12 class QseColumn;
13 
15 {
16  Q_OBJECT;
17 
18  public:
19  QseNormalizer(QseDataSet* inData,
20  QseDataSet* outData,
21  const QString& name,
22  QObject* parent=0);
23 
24  friend class QseNormalizerUI;
25 
26  void exec();
27 
28  public:
29  bool matchesScanPattern(int n);
30  bool matchesScan(int n);
31  double energyScalingRatio();
32 
33  void normalizeScan(int n, QseScan* out);
34 
35  void setScanException(int s, QseScanRole role);
36  void setColumnException(int s, int c, QseColumnRole role);
37 
38  bool matchesScanException(int s);
39  bool matchesColumnException(int s, int c);
40 
42  QseColumnRole patternColumnRole(int s, int c);
43  QseColumnRole columnRole(int s, int c);
44 
45  protected:
46 
48 
55 };
56 
57 #endif
QseRegExpParameter m_ScanPattern
Definition: qsenormalizer.h:47
bool matchesScanPattern(int n)
QseStringParameter m_MinScanColumnCount
Definition: qsenormalizer.h:51
double energyScalingRatio()
bool matchesScan(int n)
QseNormalizer(QseDataSet *inData, QseDataSet *outData, const QString &name, QObject *parent=0)
QseColumnRole exceptionalColumnRole(int s, int c)
QseEnumParameter m_InputEnergyUnits
Definition: qsenormalizer.h:53
QseColumnRole patternColumnRole(int s, int c)
QString name() const
Definition: qseoperator.cpp:11
void setScanException(int s, QseScanRole role)
bool matchesScanException(int s)
QseStringParameter m_MaxScanRowCount
Definition: qsenormalizer.h:50
void setColumnException(int s, int c, QseColumnRole role)
QseStringParameter m_MinScanRowCount
Definition: qsenormalizer.h:49
QseColumnRole columnRole(int s, int c)
QseStringParameter m_MaxScanColumnCount
Definition: qsenormalizer.h:52
void normalizeScan(int n, QseScan *out)
QseEnumParameter m_OutputEnergyUnits
Definition: qsenormalizer.h:54
bool matchesColumnException(int s, int c)