fdhwlib  2.0.25
/home/kopmann/git-mirror/fdhwlib/fdhwlib/Hw/FltHitRate.h
Go to the documentation of this file.
00001 /***************************************************************************
00002     FltHitRate.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 #if defined (_MSC_VER) && (_MSC_VER >= 1000)
00011 #pragma once
00012 #endif
00013 #ifndef _INC_FLTHITRATE_391C157A0277_INCLUDED
00014 #define _INC_FLTHITRATE_391C157A0277_INCLUDED
00015 
00016 
00017 #include <Hw/FltDef.h>
00018 #include <Hw/FltPixRegister.h>
00019 
00020 
00035 //##ModelId=3991220A0342
00036 class FltHitrate : public FltPixRegister {
00037 public:
00038         //##ModelId=3991220A035B
00039   FltHitrate(const char *name, int slotID, int regID, int r, int w, int len);
00040 
00045         //##ModelId=3991220A0359
00046   bool isOverflow(int ch);
00047 
00051         //##ModelId=3991220A0357
00052   int getCountLength(int ch);
00053 
00057         //##ModelId=3991220A0351
00058   int getHitrate(int ch);
00059 
00064   void getHitrate(int *data);
00065    
00073         //To get all three parameters the argument list is used.
00074         //(Note: Herfore pointers are required). Is it better to 
00075         //user structures instead?
00076         //##ModelId=3991220A034D
00077         int get(int pixel, int * length, bool * overflow);
00078 
00079 
00082   int get(unsigned long data, int *length = 0, bool *overflow = 0);
00083 
00084 
00085 };
00086 
00087 #endif /* _INC_FLTHITRATE_391C157A0277_INCLUDED */
00088