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"
40 TEveGeoManagerHolder gmgr(TEveGeoShape::GetGeoMangeur());
41 TEvePointSet* pointSet =
new TEvePointSet();
42 pointSet->SetMainColor(
item()->defaultDisplayProperties().
color());
47 TGeoSphere * sphere =
new TGeoSphere(0, 0.002);
49 TEveGeoShape * shape =
new TEveGeoShape();
50 sphere->SetBoxDimensions(2.5,2.5,2.5);
51 shape->SetShape(sphere);
52 shape->SetMainColor(
item()->defaultDisplayProperties().
color());
53 shape->SetMainTransparency(10);
55 TEveTrans &
t = shape->RefMainTrans();
65 TMatrixD mm = svd.GetU();
72 TVectorD vv ( eig.GetEigenValuesRe()) ;
73 t.Scale(
sqrt(vv(0))*1000.,
sqrt(vv(1))*1000.,
sqrt(vv(2))*1000.);
74 t.SetPos(v.
x(),v.
y(),v.
z());
78 pointSet->SetNextPoint( v.
x(), v.
y(), v.
z() );
86 t.fV = TEveVector(track.
vx(), track.
vy(), track.
vz());
87 t.fP = TEveVector(track.
px(), track.
py(), track.
pz());
89 TEveTrack* trk =
new TEveTrack(&t,
context().getTrackPropagator());
90 trk->SetMainColor(
item()->defaultDisplayProperties().
color());
REGISTER_PROXYBUILDER_METHODS()
const fireworks::Context & context() const
#define REGISTER_FWPROXYBUILDER(_name_, _type_, _purpose_, _view_)
static const int kAllRPZBits
trackRef_iterator tracks_end() const
last iterator over tracks
double y() const
y coordinate
void setupAddElement(TEveElement *el, TEveElement *parent, bool set_color=true) const
math::Error< dimension >::type Error
covariance error matrix (3x3)
double px() const
x coordinate of momentum vector
FWSecVertexProxyBuilder()
static int position[TOTALCHAMBERS][3]
const FWEventItem * item() const
const FWSecVertexProxyBuilder & operator=(const FWSecVertexProxyBuilder &)
virtual ~FWSecVertexProxyBuilder()
const Vertex & secondaryVertex(unsigned int index) const
double z() const
y coordinate
double pz() const
z coordinate of momentum vector
double vz() const
z coordinate of the reference point on track
double x() const
x coordinate
Error error() const
return SMatrix
double vy() const
y coordinate of the reference point on track
unsigned int nVertices() const
std::vector< TrackBaseRef >::const_iterator trackRef_iterator
The iteratator for the vector<TrackRef>
int charge() const
track electric charge
trackRef_iterator tracks_begin() const
first iterator over tracks
double py() const
y coordinate of momentum vector
double vx() const
x coordinate of the reference point on track