00001 // ===================================================================== 00002 // $Id: TCamacScalerModule.hh,v 1.1.1.1 2003/06/27 02:56:41 goiwai Exp $ 00003 // $Name: CLDAQ-1-06-02 $ 00004 // ===================================================================== 00005 #ifndef __TCAMACSCALERMODULE_HH 00006 #define __TCAMACSCALERMODULE_HH 00007 00008 #include "Tglobals.h" 00009 #include "TCamacModule.hh" 00010 00011 class TDataSegment; 00012 class TDataElement; 00013 00014 class TCamacScalerModule 00015 : public TCamacModule 00016 { 00017 00018 public: 00019 TCamacScalerModule( TCamacCrateController* cc7x00, Tint slot, Tint nch = 12, Tdata_t datalen = t24bitModule ); 00020 TCamacScalerModule( const TCamacScalerModule& right ); 00021 ~TCamacScalerModule(); 00022 00023 public: 00024 const TCamacScalerModule& operator=( const TCamacScalerModule& right ); 00025 Tbool operator==( const TCamacScalerModule& right ) const; 00026 Tbool operator!=( const TCamacScalerModule& right ) const; 00027 Tvoid FillData( TDataElement& element, Tint channel ); 00028 00029 public: 00030 Tint Clear(); 00031 Tint Update(); 00032 Tint Initialize(); 00033 00034 public: 00035 Tint ReadOverflowChannel(); 00036 Tint ClearOverflowChannel(); 00037 Tint IncrementAllChannel(); 00038 00039 }; 00040 00041 #endif