00001 // ===================================================================== 00028 // ===================================================================== 00029 #ifndef CLDAQ__TCAMACSCALERMODULE_HH 00030 #define CLDAQ__TCAMACSCALERMODULE_HH 00031 00032 #include "Tglobals.h" 00033 #include "TCamacModule.hh" 00034 00035 class TDataSegment; 00036 class TDataElement; 00037 00038 00058 class TCamacScalerModule 00059 : public TCamacModule 00060 { 00061 00062 public: 00063 TCamacScalerModule( TCamacCrateController* cc7x00, Tint slot, Tint nch = 12, Tdata_t datalen = t24bitModule ); 00064 TCamacScalerModule( const TCamacScalerModule& right ); 00065 ~TCamacScalerModule(); 00066 00067 public: 00068 const TCamacScalerModule& operator=( const TCamacScalerModule& right ); 00069 Tbool operator==( const TCamacScalerModule& right ) const; 00070 Tbool operator!=( const TCamacScalerModule& right ) const; 00071 Tvoid FillData( TDataElement& element, Tint channel ); 00072 00073 public: 00074 Tint Clear(); 00075 Tint Update(); 00076 Tint Initialize(); 00077 00078 public: 00079 Tint ReadOverflowChannel(); 00080 Tint ClearOverflowChannel(); 00081 Tint IncrementAllChannel(); 00082 00083 #ifdef __CLDAQ_ROOT_DLL 00084 ClassDef(TCamacScalerModule,0) 00085 #endif 00086 00087 }; 00088 00089 #endif