2 #include "TEveVSDStructs.h" 4 #include "TEveVector.h" 5 #include "TEveStraightLineSet.h" 15 t.fP = TEveVector( track.
px(), track.
py(), track.
pz() );
18 TEveTrack* trk =
new TEveTrack(&t, propagator);
27 double phi = cand->
phi();
29 double size = cand->
pt() * scale_factor;
30 marker->AddLine( 0, 0, 0, size *
cos(phi)*
sin(theta), size *
sin(phi)*
sin(theta), size*
cos(theta));
virtual double pz() const =0
z coordinate of momentum vector
Sin< T >::type sin(const T &t)
Geom::Theta< T > theta() const
virtual double py() const =0
y coordinate of momentum vector
Cos< T >::type cos(const T &t)
void addStraightLineSegment(TEveStraightLineSet *marker, reco::Candidate const *cand, double scale_factor=2)
virtual double theta() const =0
momentum polar angle
virtual double pt() const =0
transverse momentum
TEveTrack * prepareCandidate(const reco::Candidate &track, TEveTrackPropagator *propagator)
virtual int charge() const =0
electric charge
virtual const Point & vertex() const =0
vertex position
virtual double px() const =0
x coordinate of momentum vector
virtual double phi() const =0
momentum azimuthal angle