TMatrixElement.hxx
Go to the documentation of this file.
1 #ifndef TMatrixElement_hxx_seen
2 #define TMatrixElement_hxx_seen
3 
4 #include <TEveGeoShape.h>
5 #include <TMatrixD.h>
6 #include <TMatrixF.h>
7 #include <TVector3.h>
8 
9 namespace EDep {
10  class TMatrixElement;
11 }
12 
13 /// A Eve Element object to represent a 3x3 matrix (either the moments of a
14 /// distribution, or the covariance) at a position. This can be used to
15 /// represent clusters, or other objects, and handles some of the matrix
16 /// algebra necessary. Since Eve can't draw a spheriod, the spheriod
17 /// described by the matrix is drawn as an eliptical tube. If the longAxis
18 /// variable is true, then the longest axis of the spheriod is used as the
19 /// axis of the tube, but if it's false, the shortest axis of the spheriod is
20 /// used as the axis of the tube.
21 class EDep::TMatrixElement: public TEveGeoShape {
22 public:
23  TMatrixElement(const char* name,
24  const TVector3& position,
25  const TMatrixD& matrix,
26  bool longAxis);
27  TMatrixElement(const char* name,
28  const TVector3& position,
29  const TMatrixF& matrix,
30  bool longAxis);
31  virtual ~TMatrixElement();
32 
33 private:
34  void Initialize(const TVector3& position,
35  const TMatrixD& matrix,
36  bool longAxis);
37 };
38 #endif
static QCString name
Definition: declinfo.cpp:673
void Initialize(const TVector3 &position, const TMatrixD &matrix, bool longAxis)
TMatrixElement(const char *name, const TVector3 &position, const TMatrixD &matrix, bool longAxis)