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