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