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]));
#define REGISTER_PROXYBUILDER_METHODS()
#define REGISTER_FWPROXYBUILDER(_name_, _type_, _purpose_, _view_)
static const int kAllRPZBits
void setupAddElement(TEveElement *el, TEveElement *parent, bool set_color=true) const
Geom::Theta< T > theta() const
~FWTracksterProxyBuilder(void) override
FWTracksterProxyBuilder(void)
const FWTracksterProxyBuilder & operator=(const FWTracksterProxyBuilder &)=delete