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