00001 // ===================================================================== 00024 // ===================================================================== 00025 #ifndef CLDAQ__TCAMACSCALERMODULE_HH 00026 #define CLDAQ__TCAMACSCALERMODULE_HH 00027 00028 #include "Tglobals.h" 00029 #include "TCamacModule.hh" 00030 00031 class TDataSegment; 00032 class TDataElement; 00033 00034 00054 class TCamacScalerModule 00055 : public TCamacModule 00056 { 00057 00058 public: 00059 TCamacScalerModule( TCamacCrateController* cc7x00, Tint slot, Tint nch = 12, Tdata_t datalen = t24bitModule ); 00060 TCamacScalerModule( const TCamacScalerModule& right ); 00061 ~TCamacScalerModule(); 00062 00063 public: 00064 const TCamacScalerModule& operator=( const TCamacScalerModule& right ); 00065 Tbool operator==( const TCamacScalerModule& right ) const; 00066 Tbool operator!=( const TCamacScalerModule& right ) const; 00067 Tvoid FillData( TDataElement& element, Tint channel ); 00068 00069 public: 00070 Tint Clear(); 00071 Tint Update(); 00072 Tint Initialize(); 00073 00074 public: 00075 Tint ReadOverflowChannel(); 00076 Tint ClearOverflowChannel(); 00077 Tint IncrementAllChannel(); 00078 00079 }; 00080 00081 #endif