5 #include "TGeoSphere.h"
6 #include "TEveGeoShape.h"
21 TEveElement &oItemHolder,
27 TEveElement &oItemHolder,
31 const std::array<float, 3> &eigenvalues = trackster.
eigenvalues();
32 const double theta = barycenter.Theta();
33 const double phi = barycenter.Phi();
35 auto eveEllipsoid =
new TEveGeoShape(
"Ellipsoid");
36 auto sphere =
new TGeoSphere(0., 1.);
37 eveEllipsoid->SetShape(sphere);
38 eveEllipsoid->InitMainTrans();
39 eveEllipsoid->RefMainTrans().Move3PF(barycenter.x(), barycenter.y(), barycenter.z());
40 eveEllipsoid->RefMainTrans().SetRotByAnyAngles(
theta,
phi, 0.,
"xzy");
41 eveEllipsoid->RefMainTrans().SetScale(
sqrt(eigenvalues[2]),
sqrt(eigenvalues[1]),
sqrt(eigenvalues[0]));