00001 #ifndef PDSCALIBDATA_CSPAD2X2PIXELGAINV1_H
00002 #define PDSCALIBDATA_CSPAD2X2PIXELGAINV1_H
00003
00004
00005
00006
00007
00008
00009
00010
00011
00012
00013
00014
00015
00016 #include <string>
00017 #include <boost/utility.hpp>
00018
00019
00020
00021
00022
00023
00024
00025
00026 #include "ndarray/ndarray.h"
00027 #include "pdsdata/psddl/cspad2x2.ddl.h"
00028
00029
00030
00031
00032
00033
00034
00035
00036
00037 namespace pdscalibdata {
00038
00039
00040
00041
00042
00043
00044
00045
00046
00047
00048
00049
00050
00051
00052
00053
00054 class CsPad2x2PixelGainV1 : boost::noncopyable {
00055 public:
00056
00057 enum { Sections = 2 };
00058 enum { Columns = Pds::CsPad2x2::ColumnsPerASIC };
00059 enum { Rows = Pds::CsPad2x2::MaxRowsPerASIC*2 };
00060 enum { Size = Sections*Columns*Rows };
00061
00062 typedef float pixelGain_t;
00063
00064
00065 CsPad2x2PixelGainV1 () ;
00066
00067
00068 CsPad2x2PixelGainV1 (const std::string& fname) ;
00069
00070
00071 ~CsPad2x2PixelGainV1 () ;
00072
00073
00074 ndarray<pixelGain_t, 3> pixelGains() const {
00075 return make_ndarray(m_pixelGains, Columns, Rows, Sections);
00076 }
00077
00078 protected:
00079
00080 private:
00081
00082
00083 mutable pixelGain_t m_pixelGains[Size];
00084
00085 };
00086
00087 }
00088
00089 #endif // PDSCALIBDATA_CSPAD2X2PIXELGAINV1_H