5 #include "TMatrixDEigen.h"
6 #include "TMatrixDSym.h"
7 #include "TDecompSVD.h"
10 #include "TGeoSphere.h"
11 #include "TGeoMatrix.h"
12 #include "TEveGeoNode.h"
13 #include "TEveVSDStructs.h"
36 TEveElement& oItemHolder,
42 TEveElement& oItemHolder,
44 TEveGeoManagerHolder gmgr(TEveGeoShape::GetGeoMangeur());
45 TEvePointSet* pointSet =
new TEvePointSet();
46 pointSet->SetMainColor(
item()->defaultDisplayProperties().color());
50 TGeoSphere* sphere =
new TGeoSphere(0, 0.002);
52 TEveGeoShape* shape =
new TEveGeoShape();
53 sphere->SetBoxDimensions(2.5, 2.5, 2.5);
54 shape->SetShape(sphere);
55 shape->SetMainColor(
item()->defaultDisplayProperties().color());
56 shape->SetMainTransparency(10);
58 TEveTrans&
t = shape->RefMainTrans();
61 for (
int i = 0;
i < 3;
i++)
62 for (
int j = 0;
j < 3;
j++) {
67 TMatrixD mm = svd.GetU();
69 for (
int i = 0;
i < 3;
i++)
70 for (
int j = 0;
j < 3;
j++) {
71 t(
i + 1,
j + 1) = mm(
i,
j);
73 TVectorD vv(eig.GetEigenValuesRe());
74 t.Scale(
sqrt(vv(0)) * 1000.,
sqrt(vv(1)) * 1000.,
sqrt(vv(2)) * 1000.);
75 t.SetPos(
v.x(),
v.y(),
v.z());
79 pointSet->SetNextPoint(
v.x(),
v.y(),
v.z());
88 TEveTrack* trk =
new TEveTrack(&
t,
context().getTrackPropagator());
89 trk->SetMainColor(
item()->defaultDisplayProperties().color());