00001 // ===================================================================== 00002 // $Id: TCamacScalerModule.hh,v 1.2 2003/07/30 16:19:10 goiwai Exp $ 00003 // $Name: CLDAQ-1-07-01 $ 00004 // 00005 // $Log: TCamacScalerModule.hh,v $ 00006 // Revision 1.2 2003/07/30 16:19:10 goiwai 00007 // ファイルにコミットログをつけることにしました. 00008 // 00009 // ===================================================================== 00010 #ifndef __TCAMACSCALERMODULE_HH 00011 #define __TCAMACSCALERMODULE_HH 00012 00013 #include "Tglobals.h" 00014 #include "TCamacModule.hh" 00015 00016 class TDataSegment; 00017 class TDataElement; 00018 00019 class TCamacScalerModule 00020 : public TCamacModule 00021 { 00022 00023 public: 00024 TCamacScalerModule( TCamacCrateController* cc7x00, Tint slot, Tint nch = 12, Tdata_t datalen = t24bitModule ); 00025 TCamacScalerModule( const TCamacScalerModule& right ); 00026 ~TCamacScalerModule(); 00027 00028 public: 00029 const TCamacScalerModule& operator=( const TCamacScalerModule& right ); 00030 Tbool operator==( const TCamacScalerModule& right ) const; 00031 Tbool operator!=( const TCamacScalerModule& right ) const; 00032 Tvoid FillData( TDataElement& element, Tint channel ); 00033 00034 public: 00035 Tint Clear(); 00036 Tint Update(); 00037 Tint Initialize(); 00038 00039 public: 00040 Tint ReadOverflowChannel(); 00041 Tint ClearOverflowChannel(); 00042 Tint IncrementAllChannel(); 00043 00044 }; 00045 00046 #endif