26 #include "TEvePointSet.h"
27 #include "TMatrixDEigen.h"
28 #include "TMatrixDSym.h"
29 #include "TDecompSVD.h"
31 #include "TEveTrans.h"
32 #include "TEveTrack.h"
33 #include "TEveTrackPropagator.h"
34 #include "TEveStraightLineSet.h"
35 #include "TEveBoxSet.h"
36 #include "TGeoSphere.h"
37 #include "TEveGeoNode.h"
38 #include "TEveGeoShape.h"
39 #include "TEveVSDStructs.h"
54 "Ellipse Color Index", 6
l, 0
l, (
long)
context().colorManager()->numberOfLimitedColors());
69 TEveElement* iCompound,
76 TEveElement& oItemHolder,
81 TEveGeoManagerHolder gmgr(TEveGeoShape::GetGeoMangeur());
82 TEvePointSet* pointSet =
new TEvePointSet();
83 pointSet->SetNextPoint(
v.x(),
v.y(),
v.z());
87 if (
item()->getConfig()->value<bool>(
"Draw Ellipse")) {
90 eveEllipsoid->
RefPos().Set(
v.x(),
v.y(),
v.z());
94 for (
int i = 0;
i < 3;
i++)
95 for (
int j = 0;
j < 3;
j++) {
101 double ellipseScale = 1.;
105 eveEllipsoid->
SetScale(ellipseScale);
108 TMatrixDEigen eig(
m);
109 TVectorD vv(eig.GetEigenValuesRe());
110 eveEllipsoid->
RefExtent3D().Set(
sqrt(vv(0)) * ellipseScale,
sqrt(vv(1)) * ellipseScale,
sqrt(vv(2)) * ellipseScale);
112 eveEllipsoid->SetLineWidth(2);
114 eveEllipsoid->SetMainTransparency(
TMath::Min(100, 80 +
item()->defaultDisplayProperties().transparency() / 5));
119 eveEllipsoid->SetMainColor(color +
context().colorManager()->offsetOfLimitedColors());
123 if (
item()->getConfig()->value<bool>(
"Draw Tracks")) {
125 float w =
v.trackWeight(*it);
135 TEveTrack* trk =
new TEveTrack(&
t,
context().getTrackPropagator());
136 trk->SetMainColor(
item()->defaultDisplayProperties().color());
141 if (
item()->getConfig()->value<bool>(
"Draw Pseudo Track")) {
144 t.fV = TEveVector(
v.x(),
v.y(),
v.z());
145 t.fP = TEveVector(-
v.p4().px(), -
v.p4().py(), -
v.p4().pz());
147 TEveTrack* trk =
new TEveTrack(&
t,
context().getTrackPropagator());
148 trk->SetLineStyle(7);
158 if (cIdx >= 0 &&
int(iIndex) ==
int(cIdx)) {
160 << Form(
"idx [%d], (%f %f %f) \n", cIdx,
v.x(),
v.y(),
v.z());
166 TEveElement* iCompound,
170 TEveElement* el = iCompound->FindChild(
"Ellipsoid");
172 el->SetMainColor(
item()->getConfig()->value<long>(
"Ellipse Color Index") +
173 context().colorManager()->offsetOfLimitedColors());