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

TMatrixElement.cc

解説を見る。
00001 // =====================================================================
00002 //  $Id: TMatrixElement.cc,v 1.4 2004/03/07 10:30:27 goiwai Exp $
00003 //  $Name: CLDAQ-1-14-03 $
00004 //  $Log: TMatrixElement.cc,v $
00005 //  Revision 1.4  2004/03/07 10:30:27  goiwai
00006 //  ROOTに組みこむためのおまじないマクロを埋めこみました。
00007 //  全てにおいて完全に動作するわけではありません。
00008 //
00009 //  Revision 1.3  2003/10/06 17:02:36  goiwai
00010 //  *** empty log message ***
00011 //
00012 //  Revision 1.2  2003/07/30 16:17:11  goiwai
00013 //  ファイルにコミットログをつけることにしました.
00014 //
00015 // =====================================================================
00016 #include "TMatrixElement.hh"
00017 
00018 TMatrixElement::TMatrixElement( const Tstring& idstr, Tobject_t objecttype, Tint ndata, Tint ntuple )
00019   : TDataMultiplicity( ndata, ntuple ), theMatrixID( idstr ), 
00020     theObjectType( objecttype )
00021 {;}
00022 
00023 TMatrixElement::TMatrixElement( const TMatrixElement& right )
00024   : TDataMultiplicity( right ), theMatrixID( right.theMatrixID ),
00025     theObjectType( right.theObjectType )
00026 {;}
00027 
00028 TMatrixElement::~TMatrixElement()
00029 {;}
00030 
00031 const TMatrixElement& TMatrixElement::operator=( const TMatrixElement& right )
00032 {
00033   *( (TDataMultiplicity*)this ) = *( (TDataMultiplicity*)(&right) );
00034   theMatrixID = right.theMatrixID;
00035   theObjectType = right.theObjectType;
00036   return *this;
00037 }
00038 
00039 Tbool TMatrixElement::operator==( const TMatrixElement& right ) const
00040 {
00041   Tbool retval = Ttrue;
00042   retval &= ( *( (TDataMultiplicity*)this ) == *( (TDataMultiplicity*)(&right) ) );
00043   retval &= ( theMatrixID == right.theMatrixID );
00044   retval &= ( theObjectType == right.theObjectType );
00045   return retval;
00046 }
00047 
00048 Tbool TMatrixElement::operator!=( const TMatrixElement& right ) const
00049 {
00050   Tbool retval = Tfalse;
00051   retval |= !( ( *( (TDataMultiplicity*)this ) == *( (TDataMultiplicity*)(&right) ) ) );
00052   retval |= ( theMatrixID != right.theMatrixID );
00053   retval |= ( theObjectType != right.theObjectType );
00054   return retval;
00055 }
00056 
00057 #ifdef __CLDAQ_ROOT_DLL
00058     ClassImp(TMatrixElement)
00059 #endif


CLDAQ - a Class Library for DataAcQuisition (Version 1.14.3)
Go IWAI -- goiwai at users.sourceforge.jp