| 1 |
/* |
/* |
| 2 |
* The MIT License |
* The MIT License |
| 3 |
|
|
| 4 |
Conograph (powder auto-indexing program) |
BLDConograph (Bravais lattice determination module in Conograph) |
| 5 |
|
|
| 6 |
Copyright (c) <2012> <Ryoko Oishi-Tomiyasu, KEK> |
Copyright (c) <2012> <Ryoko Oishi-Tomiyasu, KEK> |
| 7 |
|
|
| 24 |
THE SOFTWARE. |
THE SOFTWARE. |
| 25 |
* |
* |
| 26 |
*/ |
*/ |
| 27 |
#ifndef COMMON_HH_ |
#ifndef RietveldAnalysisTypes_HH_ |
| 28 |
#define COMMON_HH_ |
#define RietveldAnalysisTypes_HH_ |
|
|
|
|
#if defined(__cplusplus) |
|
| 29 |
|
|
| 30 |
#include<vector> |
#include<vector> |
| 31 |
#include<complex> |
#include<complex> |
| 32 |
|
|
| 33 |
using namespace std; |
using namespace std; |
|
#endif |
|
| 34 |
|
|
| 35 |
typedef char Char; |
typedef char Char; |
| 36 |
typedef unsigned char UChar; |
typedef unsigned char UChar; |
| 43 |
typedef double Double; |
typedef double Double; |
| 44 |
typedef float Float; |
typedef float Float; |
| 45 |
|
|
|
#ifdef __x86_64__ |
|
|
typedef Int8 ArrayIndex; |
|
|
#else |
|
|
typedef Int4 ArrayIndex; |
|
|
#endif |
|
|
|
|
|
typedef enum _ConographAnalysisMode { |
|
|
ConographQuickSearch = 0, |
|
|
ConographRegularSearch = 1 |
|
|
} eConographAnalysisMode; |
|
|
|
|
|
typedef enum { |
|
|
kZRietveldTemperatureFactorUnitB = 0, |
|
|
kZRietveldTemperatureFactorUnitU = 1, |
|
|
kZRietveldTemperatureFactorUnitUndefined = 2 |
|
|
}ZRietveldTemperatureFactorUnit; |
|
|
|
|
|
#if defined(__cplusplus) |
|
|
extern "C" { |
|
|
#endif |
|
|
|
|
|
/*! @enum ZRietveldBeamType |
|
|
FitDataParam.hh m_Beam_Type |
|
|
*/ |
|
|
typedef enum _ZRietveldBeamType |
|
|
{ |
|
|
kZRietveldBeamTypeNeutron = 0, //!< Neutron Beam |
|
|
kZRietveldBeamTypeXRay = 1 //!< X-ray |
|
|
}ZRietveldBeamType; |
|
|
|
|
|
/*! @enum ZRietveldMesurementMethod |
|
|
FitDataParam.hh m_TOForAD |
|
|
*/ |
|
|
typedef enum _ZRietveldMesurementMethod { |
|
|
kZRietveldMeasurementMethodTimeOfFlight = 0, //!< TOF (Time Of Flight) |
|
|
kZRietveldMeasurementMethodReactor = 1, //!< Reactor (Neutron) |
|
|
kZRietveldBraggBrentanoGeometryConventionalDivergenceSlit = 2,//!< Bragg-Brentano geometry (conventional divergence slit) |
|
|
kZRietveldBraggBrentanoGeometryAutomaticDivergenceSlit = 3 //!<Bragg-Brentano geometry (automatic divergence slit*) |
|
|
}ZRietveldMesurementMethod; |
|
|
|
|
|
/*! @enum ZRietveldHistogramFileFormat |
|
|
*/ |
|
|
typedef enum _ZRietveldHistogramFileFormat { |
|
|
kZRietveldHistogramFileFormatGeneral = 0, //!< General Format |
|
|
kZRietveldHistogramFileFormatIGOR = 1, //!< IGOR Format |
|
|
kZRietveldHistogramFileFormatRietan = 2 //!< Rietan Format |
|
|
}ZRietveldHistogramFileFormat; |
|
|
|
|
|
#if defined(__cplusplus) |
|
|
} |
|
|
#endif |
|
|
|
|
|
|
|
|
#if defined(__cplusplus) |
|
|
|
|
| 46 |
typedef vector<double> Vec_DP; |
typedef vector<double> Vec_DP; |
| 47 |
typedef vector<int> Vec_INT; |
typedef vector<int> Vec_INT; |
| 48 |
typedef vector<char> Vec_CHAR; |
typedef vector<char> Vec_CHAR; |
| 49 |
typedef vector<bool> Vec_BOOL; |
typedef vector<bool> Vec_BOOL; |
|
//typedef vector< vector<int> > Mat_INT_iconstr; |
|
| 50 |
typedef vector< vector<double> > Mat_DP_iconstr; |
typedef vector< vector<double> > Mat_DP_iconstr; |
| 51 |
|
|
| 52 |
typedef complex<double> CMPX_DP; |
typedef complex<double> CMPX_DP; |
| 54 |
typedef vector< vector<double> > each_Vec_DP; |
typedef vector< vector<double> > each_Vec_DP; |
| 55 |
typedef vector< vector<Int4> > each_Vec_INT; |
typedef vector< vector<Int4> > each_Vec_INT; |
| 56 |
|
|
| 57 |
typedef struct{ |
typedef enum _ConographAnalysisMode { |
| 58 |
Double Rwp; |
ConographQuickSearch = 0, |
| 59 |
Double Rp; |
ConographRegularSearch = 1 |
| 60 |
Double Re; |
} eConographAnalysisMode; |
|
Double DW; |
|
|
Vec_DP RB; |
|
|
Vec_DP RF; |
|
|
} statistics_data; |
|
|
#endif |
|
| 61 |
|
|
| 62 |
#endif /*COMMON_HH_*/ |
#endif /*COMMON_HH_*/ |