iIndex is the index where iData is found in the container from which it came iItemHolder is the object to which you add your own objects which inherit from TEveElement
91 TEveGeoManagerHolder gmgr(TEveGeoShape::GetGeoMangeur());
92 TEvePointSet* pointSet =
new TEvePointSet();
93 pointSet->SetMainColor(
item()->defaultDisplayProperties().color());
98 TGeoSphere * sphere =
new TGeoSphere(0, 0.002);
100 TEveGeoShape * shape =
new TEveGeoShape();
101 sphere->SetBoxDimensions(2.5,2.5,2.5);
102 shape->SetShape(sphere);
103 shape->SetMainColor(
item()->defaultDisplayProperties().color());
104 shape->SetMainTransparency(10);
106 TEveTrans &
t = shape->RefMainTrans();
114 TMatrixDEigen eig(
m);
116 TMatrixD mm = svd.GetU();
121 t(
i+1,
j+1) = mm(
i,
j);
123 TVectorD vv ( eig.GetEigenValuesRe()) ;
124 t.Scale(
sqrt(vv(0))*1000.,
sqrt(vv(1))*1000.,
sqrt(vv(2))*1000.);
125 t.SetPos(v.
x(),v.
y(),v.
z());
126 oItemHolder.AddElement(shape);
127 pointSet->SetNextPoint( v.
x(), v.
y(), v.
z() );
132 if (w < 0.5)
continue;
137 t.fV = TEveVector(track.
vx(), track.
vy(), track.
vz());
138 t.fP = TEveVector(track.
px(), track.
py(), track.
pz());
140 TEveTrack* trk =
new TEveTrack(&t,
context().getTrackPropagator());
141 trk->SetMainColor(
item()->defaultDisplayProperties().color());
143 oItemHolder.AddElement( trk );
147 oItemHolder.AddElement( pointSet );
const fireworks::Context & context() const
trackRef_iterator tracks_end() const
last iterator over tracks
double y() const
y coordinate
math::Error< dimension >::type Error
covariance error matrix (3x3)
double px() const
x coordinate of momentum vector
static int position[TOTALCHAMBERS][3]
const FWEventItem * item() const
float trackWeight(const TrackBaseRef &r) const
returns the weight with which a Track has contributed to the vertex-fit.
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
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