00001 #ifndef PDSCALIBDATA_CSPADPIXELSTATUSV2_H
00002 #define PDSCALIBDATA_CSPADPIXELSTATUSV2_H
00003
00004
00005
00006
00007
00008
00009
00010
00011
00012
00013
00014
00015
00016 #include <string>
00017
00018
00019
00020
00021 #include "pdscalibdata/CsPadBaseV2.h"
00022 #include "pdscalibdata/GlobalMethods.h"
00023
00024
00025
00026
00027 #include "ndarray/ndarray.h"
00028
00029
00030
00031
00032
00033 #include "MsgLogger/MsgLogger.h"
00034
00035
00036
00037
00038
00039 namespace pdscalibdata {
00040
00041
00042
00043
00044
00045
00046
00047
00048
00049
00050
00051
00052 class CsPadPixelStatusV2: public CsPadBaseV2 {
00053 public:
00054
00055 typedef uint16_t pars_t;
00056
00057
00058 CsPadPixelStatusV2()
00059 : CsPadBaseV2 ()
00060 {
00061 std::fill_n(m_pars, int(Size), pars_t(0));
00062 }
00063
00064
00065 CsPadPixelStatusV2 (const std::string& fname)
00066 : CsPadBaseV2 ()
00067 {
00068 load_pars_from_file <pars_t> (fname, "pixel_status", Size, m_pars);
00069 }
00070
00071
00072 ~CsPadPixelStatusV2 (){}
00073
00074
00075 ndarray<pars_t, 4> pixel_status() const {
00076 return make_ndarray(m_pars, Quads, Segs, Rows, Cols);
00077 }
00078
00079
00080 void print()
00081 {
00082 MsgLog("CsPadPixelStatusV2", info, "pixel_status:\n" << pixel_status());
00083 }
00084
00085 protected:
00086
00087 private:
00088
00089
00090 mutable pars_t m_pars[Size];
00091
00092
00093
00094
00095 CsPadPixelStatusV2 ( const CsPadPixelStatusV2& ) ;
00096 CsPadPixelStatusV2& operator = ( const CsPadPixelStatusV2& ) ;
00097 };
00098
00099 }
00100
00101 #endif // PDSCALIBDATA_CSPADPIXELSTATUSV2_H