fdhwlib
2.0.25
|
00001 /*************************************************************************** 00002 fe4image.h - description 00003 00004 begin : Mon Jul 3 2000 00005 copyright : (C) 2000 by Andreas Kopmann 00006 email : kopmann@hpe.fzk.de 00007 ***************************************************************************/ 00008 00009 00010 #ifndef FE4IMAGE_H 00011 #define FE4IMAGE_H 00012 00013 #include <hw4/subrackauger.h> 00014 #include <hw4/flt.h> 00015 00016 #include <FE/FEdef.h> 00017 00018 #include <hw4/fltdef.h> 00019 #include <hw4/sltdef.h> 00020 00021 #include <FE/febaseimage.h> 00022 00023 00066 class FE4image : public FEbaseImage { 00067 public: 00068 FE4image(hw4::SubrackAuger *s); 00069 00070 using FEbaseImage::read; 00071 //-tb- 00103 int read(int col, int row, int page, unsigned short *data); 00104 00105 00115 int readPage(int col, int row, int imgAddr, unsigned short *data); 00116 00117 00132 int readPage(int col, int row, int imgAddr, unsigned short *data, 00133 int start=0,int len=hw4::kFLT_PAGE_SIZE ); 00134 00135 00156 int read(int col, int row, int page,int start, 00157 unsigned short *data, int len=hw4::kFLT_PAGE_SIZE); 00158 00178 int read(int col, int row, int page, int start, 00179 unsigned short *data); 00180 00187 void getStatistics(int col,int row, double *mean, double *var); 00188 00197 void getStatistics(int col, int row, signed long *sum, unsigned long *sumSq); 00198 00199 00205 void getStatistics(signed long *sum, unsigned long *sumSq); 00206 00211 void setStatisticParameters(bool enable, int offset, unsigned long n); 00212 00216 bool getStatisticParameters(int col, int row, int *offset, unsigned long *n); 00217 00219 int getGain(int col,int row); 00220 00222 void setGain(int col, int row, int gain); 00223 //-tb- 2009-05-04 00231 void loadGains(int col); 00232 //-tb- 2009-05-04 00238 int isBusyLoadingGains(int col); 00239 00241 unsigned long getDisabledPixel(int col); 00242 00244 unsigned long getFixedPixel(int col); 00245 00250 unsigned long getFixedType(int col); 00251 00253 void setDisabledPixel(int col, unsigned long status); 00254 00259 void enablePixel(int col, unsigned long mask); 00260 00262 void disablePixel(int col, unsigned long mask); 00263 00265 void fixPixel(int col, unsigned long mask); 00266 00270 void setFixedPixel(int col, unsigned long status); 00271 00273 void setFixedType(int col, unsigned long status); 00274 00276 void setFixedTypeToLow(int col, unsigned long mask); 00277 00279 void setFixedTypeToHigh(int col, unsigned long mask); 00280 00285 int waitForGainErr(); 00286 00288 void enableGainErr(int col); 00289 00291 void disableGainErr(int col); 00292 00294 bool isEnabledGainErr(int col); 00295 00296 private: 00297 00298 hw4::SubrackAuger *s; 00299 00300 }; 00301 00302 #endif // FE4IMAGE_H 00303 00304 00305