QXRD
0.11.16
|
#include <qxrdintegratorcache.h>
Public Member Functions | |
QxrdIntegratorCache (QxrdExperimentWPtr exp, QxrdIntegratorWPtr integ, QxrdPolarTransformWPtr xform, QxrdCenterFinderWPtr cf) | |
virtual | ~QxrdIntegratorCache () |
int | get_NRows () const |
int | get_NCols () const |
void | grabScriptEngine () |
void | releaseScriptEngine () |
QcepInt32ImageDataPtr | cachedGeometry () |
QcepInt32ImageDataPtr | cachedPolarGeometry () |
QcepDoubleImageDataPtr | cachedIntensity () |
void | performIntegration (QcepDataObjectPtr res, QcepDoubleImageDataPtr dimg, QcepMaskDataPtr mask, int normalize) |
Private Member Functions | |
double | getTTH (double x, double y) |
double | getDistance (double x, double y) |
double | getChi (double x, double y) |
double | getQ (double x, double y) |
double | getR (double x, double y) |
double | XValue (double x, double y) |
double | YValue (double x, double y) |
double | NormValue (double x, double y) |
QString | XLabel () const |
QString | XUnits () const |
QString | YLabel () const |
QString | YUnits () const |
void | partialIntegrationStep1 (int i, int n) |
void | partialIntegrationStep2 (int i, int n) |
void | partialIntegrationStep3 (int i, int n, QcepDoubleImageDataPtr dimg, QcepMaskDataPtr mask, int normalize) |
Definition at line 21 of file qxrdintegratorcache.h.
QxrdIntegratorCache::QxrdIntegratorCache | ( | QxrdExperimentWPtr | exp, |
QxrdIntegratorWPtr | integ, | ||
QxrdPolarTransformWPtr | xform, | ||
QxrdCenterFinderWPtr | cf | ||
) |
Definition at line 28 of file qxrdintegratorcache.cpp.
References DEBUG_CONSTRUCTORS, m_AttenuationLength, m_CenterFinder, m_CenterX, m_CenterY, m_DetectorDistance, m_DetectorTilt, m_DetectorXPixelSize, m_DetectorYPixelSize, m_EnableAbsorption, m_EnableGeometry, m_EnablePolarization, m_EnableUserAbsorption, m_EnableUserGeometry, m_Energy, m_HasChi, m_ImplementTilt, m_Integrator, m_Oversample, m_PolarEnd, m_Polarization, m_PolarNSteps, m_PolarStart, m_PolarStep, m_PolarTransform, m_PolarUnits, m_RadialEnd, m_RadialNSteps, m_RadialStart, m_RadialStep, m_RadialUnits, m_ScalingFactor, m_SelfNormalization, m_SelfNormalizationMaximum, m_SelfNormalizationMinimum, m_TiltPlaneRotation, m_UserAbsorptionFunction, m_UserAbsorptionScript, m_UserGeometryFunction, m_UserGeometryScript, and qcepDebug().
|
virtual |
Definition at line 158 of file qxrdintegratorcache.cpp.
References DEBUG_CONSTRUCTORS, and qcepDebug().
QcepInt32ImageDataPtr QxrdIntegratorCache::cachedGeometry | ( | ) |
Definition at line 1052 of file qxrdintegratorcache.cpp.
References m_CachedRadialBinNumbers.
QcepDoubleImageDataPtr QxrdIntegratorCache::cachedIntensity | ( | ) |
Definition at line 1057 of file qxrdintegratorcache.cpp.
References m_CachedNormalization.
QcepInt32ImageDataPtr QxrdIntegratorCache::cachedPolarGeometry | ( | ) |
int QxrdIntegratorCache::get_NCols | ( | ) | const |
int QxrdIntegratorCache::get_NRows | ( | ) | const |
|
private |
Definition at line 198 of file qxrdintegratorcache.cpp.
References QxrdDetectorGeometry::getQChi(), m_CenterX, m_CenterY, m_DetectorDistance, m_DetectorTilt, m_DetectorXPixelSize, m_DetectorYPixelSize, m_Energy, m_ImplementTilt, and m_TiltPlaneRotation.
Referenced by NormValue(), and YValue().
|
private |
Definition at line 191 of file qxrdintegratorcache.cpp.
References getTTH(), and m_DetectorDistance.
Referenced by NormValue().
|
private |
Definition at line 221 of file qxrdintegratorcache.cpp.
References QxrdDetectorGeometry::getQChi(), m_CenterX, m_CenterY, m_DetectorDistance, m_DetectorTilt, m_DetectorXPixelSize, m_DetectorYPixelSize, m_Energy, m_ImplementTilt, and m_TiltPlaneRotation.
Referenced by NormValue(), and XValue().
|
private |
Definition at line 244 of file qxrdintegratorcache.cpp.
References getTTH(), and m_DetectorDistance.
Referenced by NormValue(), and XValue().
|
private |
Definition at line 175 of file qxrdintegratorcache.cpp.
References QxrdDetectorGeometry::getTwoTheta(), m_CenterX, m_CenterY, m_DetectorDistance, m_DetectorTilt, m_DetectorXPixelSize, m_DetectorYPixelSize, m_ImplementTilt, and m_TiltPlaneRotation.
Referenced by getDistance(), getR(), NormValue(), and XValue().
void QxrdIntegratorCache::grabScriptEngine | ( | ) |
Definition at line 980 of file qxrdintegratorcache.cpp.
References m_EnableUserAbsorption, m_EnableUserGeometry, m_Experiment, m_UserAbsorptionFunction, m_UserAbsorptionFunctionValue, m_UserAbsorptionScript, m_UserGeometryFunction, m_UserGeometryFunctionValue, and m_UserGeometryScript.
Referenced by performIntegration().
|
private |
Definition at line 289 of file qxrdintegratorcache.cpp.
References getChi(), getDistance(), getQ(), getR(), getTTH(), m_AttenuationLength, m_CenterX, m_CenterY, m_DetectorDistance, m_EnableAbsorption, m_EnableGeometry, m_EnablePolarization, m_EnableUserAbsorption, m_Polarization, m_UserAbsorptionFunctionValue, QxrdCenterFinder::UserAbsorptionFromCenter, QxrdCenterFinder::UserAbsorptionPixelCoords, QxrdCenterFinder::UserAbsorptionQChi, and QxrdCenterFinder::UserAbsorptionRChi.
Referenced by partialIntegrationStep2().
|
private |
Definition at line 406 of file qxrdintegratorcache.cpp.
References m_CachedPolarValues, m_CachedRadialValues, m_CFirst, m_CMax, m_CMin, m_CStep, m_HasChi, m_Mutex, m_NCols, m_NRows, m_Oversample, m_PolarNSteps, m_PolarStep, m_RadialNSteps, m_RadialStep, m_RFirst, m_RMax, m_RMin, m_RStep, m_ThreadCount, XValue(), and YValue().
Referenced by performIntegration().
|
private |
Definition at line 526 of file qxrdintegratorcache.cpp.
References m_CachedNormalization, m_CachedPolarBinNumbers, m_CachedPolarValues, m_CachedRadialBinNumbers, m_CachedRadialValues, m_CStep, m_HasChi, m_NCols, m_NCSteps, m_NRows, m_NRSteps, m_Oversample, m_PolarStart, m_RadialStart, m_RStep, m_ThreadCount, and NormValue().
Referenced by performIntegration().
|
private |
Definition at line 589 of file qxrdintegratorcache.cpp.
References m_CachedNormalization, m_CachedPolarBinNumbers, m_CachedRadialBinNumbers, m_HasChi, m_Integral, m_Mutex, m_NCols, m_NRows, m_NRSteps, m_Oversample, m_ResultSize, m_SumValue, and m_ThreadCount.
Referenced by performIntegration().
void QxrdIntegratorCache::performIntegration | ( | QcepDataObjectPtr | res, |
QcepDoubleImageDataPtr | dimg, | ||
QcepMaskDataPtr | mask, | ||
int | normalize | ||
) |
Definition at line 666 of file qxrdintegratorcache.cpp.
References QcepAllocator::AlwaysAllocate, DEBUG_INTEGRATOR, grabScriptEngine(), m_CachedNormalization, m_CachedPolarBinNumbers, m_CachedPolarValues, m_CachedRadialBinNumbers, m_CachedRadialValues, m_CacheFillLevel, m_CacheFullLevel, m_CenterX, m_CenterY, m_CFirst, m_CStep, m_EnableUserAbsorption, m_EnableUserGeometry, m_Experiment, m_HasChi, m_Integral, m_NCols, m_NCSteps, m_NPix, m_NRows, m_NRSteps, m_Oversample, m_PolarEnd, m_PolarNSteps, m_PolarStart, m_PolarStep, m_PolarTransform, m_RadialEnd, m_RadialNSteps, m_RadialStart, m_RadialStep, m_ResultSize, m_RFirst, m_RMin, m_RStep, m_ScalingFactor, m_SelfNormalization, m_SelfNormalizationMaximum, m_SelfNormalizationMinimum, m_SumValue, m_ThreadCount, QThreadAccess::msleep(), QcepAllocator::newDoubleImage(), QcepAllocator::newInt32Image(), partialIntegrationStep1(), partialIntegrationStep2(), partialIntegrationStep3(), qcepDebug(), releaseScriptEngine(), XLabel(), XUnits(), YLabel(), and YUnits().
void QxrdIntegratorCache::releaseScriptEngine | ( | ) |
Definition at line 1028 of file qxrdintegratorcache.cpp.
References m_EnableUserAbsorption, m_EnableUserGeometry, m_Experiment, m_UserAbsorptionFunctionValue, and m_UserGeometryFunctionValue.
Referenced by performIntegration().
|
private |
Definition at line 354 of file qxrdintegratorcache.cpp.
References m_RadialUnits, QxrdIntegrator::RadialIntegrateQ, QxrdIntegrator::RadialIntegrateR, and QxrdIntegrator::RadialIntegrateTTH.
Referenced by performIntegration().
|
private |
Definition at line 375 of file qxrdintegratorcache.cpp.
References m_RadialUnits, QxrdIntegrator::RadialIntegrateQ, QxrdIntegrator::RadialIntegrateR, and QxrdIntegrator::RadialIntegrateTTH.
Referenced by performIntegration().
|
private |
Definition at line 252 of file qxrdintegratorcache.cpp.
References getQ(), getR(), getTTH(), m_EnableUserGeometry, m_RadialUnits, m_UserGeometryFunctionValue, QxrdIntegrator::RadialIntegrateQ, QxrdIntegrator::RadialIntegrateR, and QxrdIntegrator::RadialIntegrateTTH.
Referenced by partialIntegrationStep1().
|
private |
Definition at line 396 of file qxrdintegratorcache.cpp.
Referenced by performIntegration().
|
private |
Definition at line 401 of file qxrdintegratorcache.cpp.
Referenced by performIntegration().
|
private |
Definition at line 277 of file qxrdintegratorcache.cpp.
References getChi(), m_PolarUnits, and QxrdIntegrator::PolarIntegrateChi.
Referenced by partialIntegrationStep1().
|
private |
Definition at line 68 of file qxrdintegratorcache.h.
Referenced by NormValue(), and QxrdIntegratorCache().
|
private |
Definition at line 85 of file qxrdintegratorcache.h.
|
private |
Definition at line 132 of file qxrdintegratorcache.h.
Referenced by cachedIntensity(), partialIntegrationStep2(), partialIntegrationStep3(), and performIntegration().
|
private |
Definition at line 131 of file qxrdintegratorcache.h.
Referenced by partialIntegrationStep2(), partialIntegrationStep3(), and performIntegration().
|
private |
Definition at line 134 of file qxrdintegratorcache.h.
Referenced by partialIntegrationStep1(), partialIntegrationStep2(), and performIntegration().
|
private |
Definition at line 130 of file qxrdintegratorcache.h.
Referenced by cachedGeometry(), partialIntegrationStep2(), partialIntegrationStep3(), and performIntegration().
|
private |
Definition at line 133 of file qxrdintegratorcache.h.
Referenced by partialIntegrationStep1(), partialIntegrationStep2(), and performIntegration().
|
private |
Definition at line 127 of file qxrdintegratorcache.h.
Referenced by performIntegration().
|
private |
Definition at line 128 of file qxrdintegratorcache.h.
Referenced by performIntegration().
|
private |
Definition at line 140 of file qxrdintegratorcache.h.
Referenced by QxrdIntegratorCache().
|
private |
Definition at line 55 of file qxrdintegratorcache.h.
Referenced by getChi(), getQ(), getTTH(), NormValue(), performIntegration(), and QxrdIntegratorCache().
|
private |
Definition at line 56 of file qxrdintegratorcache.h.
Referenced by getChi(), getQ(), getTTH(), NormValue(), performIntegration(), and QxrdIntegratorCache().
|
private |
Definition at line 77 of file qxrdintegratorcache.h.
Referenced by partialIntegrationStep1(), and performIntegration().
|
private |
Definition at line 79 of file qxrdintegratorcache.h.
Referenced by partialIntegrationStep1().
|
private |
Definition at line 78 of file qxrdintegratorcache.h.
Referenced by partialIntegrationStep1().
|
private |
Definition at line 86 of file qxrdintegratorcache.h.
|
private |
Definition at line 89 of file qxrdintegratorcache.h.
|
private |
Definition at line 76 of file qxrdintegratorcache.h.
Referenced by partialIntegrationStep1(), partialIntegrationStep2(), and performIntegration().
|
private |
Definition at line 59 of file qxrdintegratorcache.h.
Referenced by getChi(), getDistance(), getQ(), getR(), getTTH(), NormValue(), and QxrdIntegratorCache().
|
private |
Definition at line 62 of file qxrdintegratorcache.h.
Referenced by getChi(), getQ(), getTTH(), and QxrdIntegratorCache().
|
private |
Definition at line 57 of file qxrdintegratorcache.h.
Referenced by getChi(), getQ(), getTTH(), and QxrdIntegratorCache().
|
private |
Definition at line 58 of file qxrdintegratorcache.h.
Referenced by getChi(), getQ(), getTTH(), and QxrdIntegratorCache().
|
private |
Definition at line 67 of file qxrdintegratorcache.h.
Referenced by NormValue(), and QxrdIntegratorCache().
|
private |
Definition at line 64 of file qxrdintegratorcache.h.
Referenced by NormValue(), and QxrdIntegratorCache().
|
private |
Definition at line 65 of file qxrdintegratorcache.h.
Referenced by NormValue(), and QxrdIntegratorCache().
|
private |
Definition at line 94 of file qxrdintegratorcache.h.
Referenced by grabScriptEngine(), NormValue(), performIntegration(), QxrdIntegratorCache(), and releaseScriptEngine().
|
private |
Definition at line 91 of file qxrdintegratorcache.h.
Referenced by grabScriptEngine(), performIntegration(), QxrdIntegratorCache(), releaseScriptEngine(), and XValue().
|
private |
Definition at line 60 of file qxrdintegratorcache.h.
Referenced by getChi(), getQ(), and QxrdIntegratorCache().
|
private |
Definition at line 137 of file qxrdintegratorcache.h.
Referenced by grabScriptEngine(), performIntegration(), and releaseScriptEngine().
|
private |
Definition at line 129 of file qxrdintegratorcache.h.
Referenced by partialIntegrationStep1(), partialIntegrationStep2(), partialIntegrationStep3(), performIntegration(), and QxrdIntegratorCache().
|
private |
Definition at line 61 of file qxrdintegratorcache.h.
Referenced by getChi(), getQ(), getTTH(), and QxrdIntegratorCache().
|
private |
Definition at line 135 of file qxrdintegratorcache.h.
Referenced by partialIntegrationStep3(), and performIntegration().
|
private |
Definition at line 138 of file qxrdintegratorcache.h.
Referenced by QxrdIntegratorCache().
|
private |
Definition at line 42 of file qxrdintegratorcache.h.
Referenced by partialIntegrationStep1(), and partialIntegrationStep3().
|
private |
Definition at line 70 of file qxrdintegratorcache.h.
Referenced by get_NCols(), partialIntegrationStep1(), partialIntegrationStep2(), partialIntegrationStep3(), and performIntegration().
|
private |
Definition at line 83 of file qxrdintegratorcache.h.
Referenced by partialIntegrationStep2(), and performIntegration().
|
private |
Definition at line 71 of file qxrdintegratorcache.h.
Referenced by performIntegration().
|
private |
Definition at line 69 of file qxrdintegratorcache.h.
Referenced by get_NRows(), partialIntegrationStep1(), partialIntegrationStep2(), partialIntegrationStep3(), and performIntegration().
|
private |
Definition at line 82 of file qxrdintegratorcache.h.
Referenced by partialIntegrationStep2(), partialIntegrationStep3(), and performIntegration().
|
private |
Definition at line 44 of file qxrdintegratorcache.h.
Referenced by partialIntegrationStep1(), partialIntegrationStep2(), partialIntegrationStep3(), performIntegration(), and QxrdIntegratorCache().
|
private |
Definition at line 53 of file qxrdintegratorcache.h.
Referenced by performIntegration(), and QxrdIntegratorCache().
|
private |
Definition at line 66 of file qxrdintegratorcache.h.
Referenced by NormValue(), and QxrdIntegratorCache().
|
private |
Definition at line 51 of file qxrdintegratorcache.h.
Referenced by partialIntegrationStep1(), performIntegration(), and QxrdIntegratorCache().
|
private |
Definition at line 52 of file qxrdintegratorcache.h.
Referenced by partialIntegrationStep2(), performIntegration(), and QxrdIntegratorCache().
|
private |
Definition at line 50 of file qxrdintegratorcache.h.
Referenced by partialIntegrationStep1(), performIntegration(), and QxrdIntegratorCache().
|
private |
Definition at line 139 of file qxrdintegratorcache.h.
Referenced by performIntegration(), and QxrdIntegratorCache().
|
private |
Definition at line 54 of file qxrdintegratorcache.h.
Referenced by QxrdIntegratorCache(), and YValue().
|
private |
Definition at line 48 of file qxrdintegratorcache.h.
Referenced by performIntegration(), and QxrdIntegratorCache().
|
private |
Definition at line 46 of file qxrdintegratorcache.h.
Referenced by partialIntegrationStep1(), performIntegration(), and QxrdIntegratorCache().
|
private |
Definition at line 47 of file qxrdintegratorcache.h.
Referenced by partialIntegrationStep2(), performIntegration(), and QxrdIntegratorCache().
|
private |
Definition at line 45 of file qxrdintegratorcache.h.
Referenced by partialIntegrationStep1(), performIntegration(), and QxrdIntegratorCache().
|
private |
Definition at line 49 of file qxrdintegratorcache.h.
Referenced by QxrdIntegratorCache(), XLabel(), XUnits(), and XValue().
|
private |
Definition at line 81 of file qxrdintegratorcache.h.
Referenced by partialIntegrationStep3(), and performIntegration().
|
private |
Definition at line 73 of file qxrdintegratorcache.h.
Referenced by partialIntegrationStep1(), and performIntegration().
|
private |
Definition at line 75 of file qxrdintegratorcache.h.
Referenced by partialIntegrationStep1().
|
private |
Definition at line 74 of file qxrdintegratorcache.h.
Referenced by partialIntegrationStep1(), and performIntegration().
|
private |
Definition at line 88 of file qxrdintegratorcache.h.
|
private |
Definition at line 72 of file qxrdintegratorcache.h.
Referenced by partialIntegrationStep1(), partialIntegrationStep2(), and performIntegration().
|
private |
Definition at line 97 of file qxrdintegratorcache.h.
Referenced by performIntegration(), and QxrdIntegratorCache().
|
private |
Definition at line 98 of file qxrdintegratorcache.h.
Referenced by performIntegration(), and QxrdIntegratorCache().
|
private |
Definition at line 100 of file qxrdintegratorcache.h.
Referenced by performIntegration(), and QxrdIntegratorCache().
|
private |
Definition at line 99 of file qxrdintegratorcache.h.
Referenced by performIntegration(), and QxrdIntegratorCache().
|
private |
Definition at line 87 of file qxrdintegratorcache.h.
|
private |
Definition at line 90 of file qxrdintegratorcache.h.
|
private |
Definition at line 136 of file qxrdintegratorcache.h.
Referenced by partialIntegrationStep3(), and performIntegration().
|
private |
Definition at line 43 of file qxrdintegratorcache.h.
Referenced by partialIntegrationStep1(), partialIntegrationStep2(), partialIntegrationStep3(), and performIntegration().
|
private |
Definition at line 63 of file qxrdintegratorcache.h.
Referenced by getChi(), getQ(), getTTH(), and QxrdIntegratorCache().
|
private |
Definition at line 96 of file qxrdintegratorcache.h.
Referenced by grabScriptEngine(), and QxrdIntegratorCache().
|
private |
Definition at line 142 of file qxrdintegratorcache.h.
Referenced by grabScriptEngine(), NormValue(), and releaseScriptEngine().
|
private |
Definition at line 95 of file qxrdintegratorcache.h.
Referenced by grabScriptEngine(), and QxrdIntegratorCache().
|
private |
Definition at line 93 of file qxrdintegratorcache.h.
Referenced by grabScriptEngine(), and QxrdIntegratorCache().
|
private |
Definition at line 141 of file qxrdintegratorcache.h.
Referenced by grabScriptEngine(), releaseScriptEngine(), and XValue().
|
private |
Definition at line 92 of file qxrdintegratorcache.h.
Referenced by grabScriptEngine(), and QxrdIntegratorCache().