fdhwlib  2.0.25
/home/kopmann/git-mirror/fdhwlib/fdhwlib/FE/FEimage.h
Go to the documentation of this file.
00001 /***************************************************************************
00002     FEimage.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 _INC_FEIMAGE_392B7D9D03A7_INCLUDED
00011 #define _INC_FEIMAGE_392B7D9D03A7_INCLUDED
00012 
00013 #include <Hw/Subrack.h>
00014 
00015 #include <FE/FEdef.h>
00016 
00017 #include <Hw/SltDef.h>
00018 #include <Hw/FltDef.h>
00019 
00020 #include <FE/febaseimage.h>
00021 
00022 
00080 class FEimage : public FEbaseImage {
00081 public:
00082   FEimage(Subrack *s);
00083 
00103   int read(int col, int row, int page, unsigned short *data);
00104 
00105 
00124   int read(int col, int row, int page,int start,
00125             unsigned short *data, int len=FLT_PAGE_SIZE);
00126 
00144   int read(int col, int row, int page, int start,
00145             unsigned short *data);
00146 
00153   void getStatistics(int col,int row, double *mean, double *var);
00154 
00163   void getStatistics(int col, int row, signed long *sum, unsigned long *sumSq);
00164 
00165 
00167   void getStatistics(signed long *sum, unsigned long *sumSq);
00168 
00173   void setStatisticParameters(bool enable, int offset, unsigned long n);
00174 
00178   bool getStatisticParameters(int col, int row, int  *offset, unsigned long *n);
00179 
00181   int getGain(int col,int row);
00182 
00184   void setGain(int col, int row, int gain);
00185 
00186 
00189   unsigned getCurrent(int col, int row);
00190 
00191 
00196   void readCurrent(int col, unsigned long *data);
00197 
00202   void initCurrentMonitor(int col);
00203 
00207   unsigned long getDisabledPixel(int col);
00211   unsigned long getFixedPixel(int col);
00212 
00218   unsigned long getFixedType(int col);
00219 
00222   void setDisabledPixel(int col, unsigned long status);
00223 
00226   void enablePixel(int col, unsigned long mask);
00227 
00229   void disablePixel(int col, unsigned long mask);
00230 
00232   void fixPixel(int col, unsigned long mask);
00233 
00234 
00240   void setFixedPixel(int col, unsigned long status);
00241 
00244   void setFixedType(int col, unsigned long status);
00245 
00248   void setFixedTypeToLow(int col, unsigned long mask);
00249 
00250 
00253   void setFixedTypeToHigh(int col, unsigned long mask);
00254 
00258   int waitForGainErr();
00259 
00260   void enableGainErr(int col);
00261 
00262   void disableGainErr(int col);
00263 
00264   bool isEnabledGainErr(int col);
00265 
00266 private:
00267 
00268   Subrack *s;
00269 
00270 };
00271 
00272 #endif /* _INC_FEIMAGE_392B7D9D03A7_INCLUDED */
00273 
00274