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" 38 TEveElement& oItemHolder,
44 TEveElement& oItemHolder,
46 TEveGeoManagerHolder gmgr(TEveGeoShape::GetGeoMangeur());
47 TEvePointSet* pointSet =
new TEvePointSet();
48 pointSet->SetMainColor(
item()->defaultDisplayProperties().color());
52 TGeoSphere* sphere =
new TGeoSphere(0, 0.002);
54 TEveGeoShape* shape =
new TEveGeoShape();
55 sphere->SetBoxDimensions(2.5, 2.5, 2.5);
56 shape->SetShape(sphere);
57 shape->SetMainColor(
item()->defaultDisplayProperties().color());
58 shape->SetMainTransparency(10);
60 TEveTrans&
t = shape->RefMainTrans();
63 for (
int i = 0;
i < 3;
i++)
64 for (
int j = 0;
j < 3;
j++) {
69 TMatrixD mm = svd.GetU();
71 for (
int i = 0;
i < 3;
i++)
72 for (
int j = 0;
j < 3;
j++) {
73 t(
i + 1,
j + 1) = mm(
i,
j);
75 TVectorD vv(eig.GetEigenValuesRe());
76 t.Scale(
sqrt(vv(0)) * 1000.,
sqrt(vv(1)) * 1000.,
sqrt(vv(2)) * 1000.);
77 t.SetPos(v.
vx(), v.
vy(), v.
vz());
81 pointSet->SetNextPoint(v.
vx(), v.
vy(), v.
vz());
88 trk->SetMainColor(
item()->defaultDisplayProperties().color());
const fireworks::Context & context() const
static const int kAllRPZBits
double vy() const override
y coordinate of vertex position
const VTX & secondaryVertex(unsigned int index) const
void setupAddElement(TEveElement *el, TEveElement *parent, bool set_color=true) const
math::Error< dimension >::type Error
covariance error matrix (3x3)
const FWEventItem * item() const
size_t numberOfDaughters() const override
number of daughters
~FWSecVertexCandidateProxyBuilder() override
double vz() const override
z coordinate of vertex position
unsigned int nVertices() const
const Candidate * daughter(size_type) const override
return daughter at a given position, i = 0, ... numberOfDaughters() - 1 (read only mode) ...
#define REGISTER_PROXYBUILDER_METHODS()
#define REGISTER_FWPROXYBUILDER(_name_, _type_, _purpose_, _view_)
TEveTrack * prepareCandidate(const reco::Candidate &track, TEveTrackPropagator *propagator)
static int position[264][3]
const FWSecVertexCandidateProxyBuilder & operator=(const FWSecVertexCandidateProxyBuilder &)=delete
double vx() const override
x coordinate of vertex position
FWSecVertexCandidateProxyBuilder()