fdhwlib  2.0.25
/home/kopmann/git-mirror/fdhwlib/fdhwlib/FE/fe4hitratecontrol.h
Go to the documentation of this file.
00001 /***************************************************************************
00002     fe4hitratecontrol.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 FE4HITRATECONTROL_H
00011 #define FE4HITRATECONTROL_H
00012 
00013 #include <hw4/subrackauger.h>
00014 
00015 
00016 #include <FE/FEdef.h>
00017 
00018 #include <hw4/fltdef.h>
00019 #include <hw4/sltdef.h>
00020 
00021 #include <FE/FEhitrateParameter.h>
00022 #include <FE/febasehitratecontrol.h>
00023 
00024 
00074 class FE4hitrateControl : public FEbaseHitrateControl {
00075 public:
00076   FE4hitrateControl(hw4::SubrackAuger *s);
00077 
00079   int getActThresh(int col,int row);
00080 
00082   int getPrevThresh(int col,int row);
00083 
00085   void getThresh(int *act, int *prev = 0);
00086 
00089   void readThresh(unsigned long *data);
00090 
00098   void setActThresh(int col, int row, int treshold);
00099 
00101   int getHitrate(int col, int row);
00102 
00107   void getHitrate(int col, int *data);
00108 
00110   void getHitrate(int *data);
00111 
00116   void readHitrate(int col, unsigned long *data);
00117 
00122   void readHitrate(unsigned long *data);
00123 
00124 
00126   void getParameters(int col, FEhitrateParameter *parm);
00127 
00129   void setParameters(int col, FEhitrateParameter *parm);
00130 
00131 
00136   unsigned long getMode(int col);
00137 
00142   void setMode(int col, unsigned long mode);
00143 
00145   void setModeOn(int col, unsigned long mask);
00146 
00148   void setModeOff(int col, unsigned long mask);
00149 
00151   int waitForThreshErr();
00152 
00153   void enableThreshErr(int col);
00154 
00155   void disableThreshErr(int col);
00156 
00157   bool isEnabledThreshErr(int col);
00158 
00159   int waitForHitrateErr();
00160 
00161   void enableHitrateErr(int col);
00162 
00163   void disableHitrateErr(int col);
00164 
00165   bool isEnabledHitrateErr(int col);
00166 
00167 private:
00168 
00169   hw4::SubrackAuger *s;
00170 };
00171 
00172 #endif // FE4HITRATECONTROL_H
00173