15 #include "TEveTrack.h"
39 t.fP = TEveVector( iData.
px(), iData.
py(), iData.
pz() );
40 t.fV = TEveVector( iData.
vx(), iData.
vy(), iData.
vz() );
43 TEveTrack*
track =
new TEveTrack(&t,
context().getTrackPropagator());
45 track->SetLineStyle( 7 );
47 TEvePointSet* pointSet =
new TEvePointSet;
54 float global[3] = { 0.0, 0.0, 0.0 };
55 float globalDir[3] = { 0.0, 0.0, 0.0 };
56 std::vector<PSimHit>::const_iterator it = hits.begin();
57 std::vector<PSimHit>::const_iterator
end = hits.end();
60 unsigned int trackid = hits.begin()->trackId();
62 for( ; it !=
end; ++it )
68 track->AddPathMark( TEvePathMark( TEvePathMark::kDecay, TEveVector( global[0], global[1], global[2] ),
69 TEveVector( globalDir[0], globalDir[1], globalDir[2] )));
79 pointSet->SetNextPoint( global[0], global[1], global[2] );
80 track->AddPathMark( TEvePathMark( TEvePathMark::kReference, TEveVector( global[0], global[1], global[2] ),
81 TEveVector( globalDir[0], globalDir[1], globalDir[2] )));
84 track->AddPathMark( TEvePathMark( TEvePathMark::kDecay, TEveVector( global[0], global[1], global[2] ),
85 TEveVector( globalDir[0], globalDir[1], globalDir[2] )));
const fireworks::Context & context() const
#define REGISTER_FWPROXYBUILDER(_name_, _type_, _purpose_, _view_)
virtual ~FWTrackingParticleProxyBuilder(void)
static const int kAllRPZBits
int charge() const
electric charge
LocalVector momentumAtEntry() const
The momentum of the track that produced the hit, at entry point.
const std::vector< PSimHit > & trackPSimHit() const
void setupAddElement(TEveElement *el, TEveElement *parent, bool set_color=true) const
void localToGlobal(unsigned int id, const float *local, float *global) const
double pz() const
z coordinate of momentum vector
const FWEventItem * item() const
static const int kAll3DBits
double px() const
x coordinate of momentum vector
Local3DPoint localPosition() const
FWTrackingParticleProxyBuilder(void)
double vz() const
z coordinate of vertex position
const FWTrackingParticleProxyBuilder & operator=(const FWTrackingParticleProxyBuilder &)
double vx() const
x coordinate of vertex position
REGISTER_PROXYBUILDER_METHODS()
unsigned int trackId() const
double py() const
y coordinate of momentum vector
double vy() const
y coordinate of vertex position
const FWGeometry * getGeom() const
unsigned int detUnitId() const