00001 #ifndef PDSCALIBDATA_EPIX100ABASEV1_H
00002 #define PDSCALIBDATA_EPIX100ABASEV1_H
00003
00004
00005
00006
00007
00008
00009
00010
00011
00012
00013
00014
00015
00016
00017
00018 #include <cstring>
00019
00020
00021
00022
00023
00024
00025
00026
00027
00028 namespace pdscalibdata {
00029
00030
00031
00032
00033
00034
00035
00036
00037
00038
00039
00040
00041 class Epix100aBaseV1 {
00042 public:
00043
00044 typedef unsigned shape_t;
00045 typedef double cmod_t;
00046
00047 const static size_t Ndim = 2;
00048 const static size_t Rows = 704;
00049 const static size_t Cols = 768;
00050 const static size_t Size = Rows*Cols;
00051 const static size_t SizeCM = 16;
00052
00053 const shape_t* shape_base() { return &m_shape[0]; }
00054 const cmod_t* cmod_base() { return &m_cmod[0]; }
00055 const size_t size_base() { return Size; }
00056
00057 ~Epix100aBaseV1 () {};
00058
00059 protected:
00060
00061 Epix100aBaseV1 (){
00062 shape_t shape[Ndim]={Rows,Cols};
00063 cmod_t cmod[SizeCM]={4,6,30,10, 0,0,0,0, 0,0,0,0, 0,0,0,0};
00064
00065 std::memcpy(m_shape, &shape[0], sizeof(shape_t)*Ndim);
00066 std::memcpy(m_cmod, &cmod[0], sizeof(cmod_t)*SizeCM);
00067 };
00068
00069 private:
00070 shape_t m_shape[Ndim];
00071 cmod_t m_cmod[SizeCM];
00072 };
00073
00074 }
00075
00076 #endif // PDSCALIBDATA_EPIX100ABASEV1_H