メインページ   モジュール   クラス階層   アルファベット順一覧   構成   ファイル一覧   構成メンバ   ファイルメンバ   関連ページ  

TMatrixElement.hh

解説を見る。
00001 // =====================================================================
00002 //  $Id: TMatrixElement.hh,v 1.2 2003/07/30 16:17:11 goiwai Exp $
00003 //  $Name: CLDAQ-1-07-01 $
00004 //
00005 //  $Log: TMatrixElement.hh,v $
00006 //  Revision 1.2  2003/07/30 16:17:11  goiwai
00007 //  ファイルにコミットログをつけることにしました.
00008 //
00009 // =====================================================================
00010 #ifndef __TMATRIXELEMENT_HH
00011 #define __TMATRIXELEMENT_HH
00012 
00013 #include "Tglobals.h"
00014 #include "TDataMultiplicity.hh"
00015 
00016 class TMatrixElement
00017   : public TDataMultiplicity
00018 {
00019 
00020   private:
00021     Tstring theMatrixID;
00022     Tobject_t theObjectType;
00023 
00024   public:
00025     TMatrixElement( const Tstring& idstr = "", Tobject_t objecttype = tObjectUnknown, Tint ndata = 0, Tint ntuple = 0 );
00026     TMatrixElement( const TMatrixElement& right );
00027     ~TMatrixElement();
00028 
00029   public:
00030     const TMatrixElement& operator=( const TMatrixElement& right );
00031     Tbool operator==( const TMatrixElement& right ) const;
00032     Tbool operator!=( const TMatrixElement& right ) const;
00033 
00034   public:
00035     const Tstring& GetMatrixID() const;
00036     Tstring& GetMatrixID();
00037     Tvoid SetMatrixID( const Tstring& id );
00038     Tobject_t GetObjectType() const;
00039     Tvoid SetObjectType( Tobject_t objecttype );
00040 
00041   public:
00042     Tint GetNumberOfTuples() const;
00043     Tint GetNumberOfEvents() const;
00044 
00045 };
00046 
00047 inline const Tstring& TMatrixElement::GetMatrixID() const
00048 {
00049   return( theMatrixID );
00050 }
00051 
00052 inline Tstring& TMatrixElement::GetMatrixID()
00053 {
00054   return( theMatrixID );
00055 }
00056 
00057 inline Tvoid TMatrixElement::SetMatrixID( const Tstring& id )
00058 {
00059   theMatrixID = id;
00060   return;
00061 }
00062 
00063 inline Tint TMatrixElement::GetNumberOfTuples() const
00064 {
00065   return( num_col() );
00066 }
00067 
00068 inline Tint TMatrixElement::GetNumberOfEvents() const
00069 {
00070   return( num_row() );
00071 }
00072 
00073 inline Tobject_t TMatrixElement::GetObjectType() const
00074 {
00075   return( theObjectType );
00076 }
00077 
00078 inline Tvoid TMatrixElement::SetObjectType( Tobject_t objecttype )
00079 {
00080   theObjectType = objecttype;
00081   return;
00082 }
00083 
00084 #endif

CLDAQ - a Class Library for Data AcQuisition (Version 1.7.1)
Go IWAI <goiwai@users.sourceforge.jp>