00001 // ===================================================================== 00021 // ===================================================================== 00022 #ifndef __TMATRIXELEMENT_HH 00023 #define __TMATRIXELEMENT_HH 00024 00025 #include "Tglobals.h" 00026 #include "TDataMultiplicity.hh" 00027 00028 00048 class TMatrixElement 00049 : public TDataMultiplicity 00050 { 00051 00052 private: 00053 Tstring theMatrixID; 00054 Tobject_t theObjectType; 00055 00056 public: 00057 TMatrixElement( const Tstring& idstr = "", Tobject_t objecttype = tObjectUnknown, Tint ndata = 0, Tint ntuple = 0 ); 00058 TMatrixElement( const TMatrixElement& right ); 00059 ~TMatrixElement(); 00060 00061 public: 00062 const TMatrixElement& operator=( const TMatrixElement& right ); 00063 Tbool operator==( const TMatrixElement& right ) const; 00064 Tbool operator!=( const TMatrixElement& right ) const; 00065 00066 public: 00067 const Tstring& GetMatrixID() const; 00068 Tstring& GetMatrixID(); 00069 Tvoid SetMatrixID( const Tstring& id ); 00070 Tobject_t GetObjectType() const; 00071 Tvoid SetObjectType( Tobject_t objecttype ); 00072 00073 public: 00074 Tint GetNumberOfTuples() const; 00075 Tint GetNumberOfEvents() const; 00076 00077 }; 00078 00079 inline const Tstring& TMatrixElement::GetMatrixID() const 00080 { 00081 return theMatrixID; 00082 } 00083 00084 inline Tstring& TMatrixElement::GetMatrixID() 00085 { 00086 return theMatrixID; 00087 } 00088 00089 inline Tvoid TMatrixElement::SetMatrixID( const Tstring& id ) 00090 { 00091 theMatrixID = id; 00092 return; 00093 } 00094 00095 inline Tint TMatrixElement::GetNumberOfTuples() const 00096 { 00097 return num_col(); 00098 } 00099 00100 inline Tint TMatrixElement::GetNumberOfEvents() const 00101 { 00102 return num_row(); 00103 } 00104 00105 inline Tobject_t TMatrixElement::GetObjectType() const 00106 { 00107 return theObjectType; 00108 } 00109 00110 inline Tvoid TMatrixElement::SetObjectType( Tobject_t objecttype ) 00111 { 00112 theObjectType = objecttype; 00113 return; 00114 } 00115 00116 #endif