18 #include "TEveTrack.h"
47 t.fP = TEveVector( iData.
px(), iData.
py(), iData.
pz() );
48 t.fV = TEveVector( iData.
vx(), iData.
vy(), iData.
vz() );
51 TEveTrack* track =
new TEveTrack(&t,
context().getTrackPropagator());
53 track->SetLineStyle( 7 );
55 TEvePointSet* pointSet =
new TEvePointSet;
57 pointSet->SetMarkerSize(
item()->getConfig()->value<long>(
"Point Size"));
64 float global[3] = { 0.0, 0.0, 0.0 };
65 float globalDir[3] = { 0.0, 0.0, 0.0 };
66 std::vector<PSimHit>::const_iterator it = hits.begin();
67 std::vector<PSimHit>::const_iterator
end = hits.end();
70 unsigned int trackid = hits.begin()->trackId();
72 for( ; it !=
end; ++it )
78 track->AddPathMark( TEvePathMark( TEvePathMark::kDecay, TEveVector( global[0], global[1], global[2] ),
79 TEveVector( globalDir[0], globalDir[1], globalDir[2] )));
89 pointSet->SetNextPoint( global[0], global[1], global[2] );
90 track->AddPathMark( TEvePathMark( TEvePathMark::kReference, TEveVector( global[0], global[1], global[2] ),
91 TEveVector( globalDir[0], globalDir[1], globalDir[2] )));
94 track->AddPathMark( TEvePathMark( TEvePathMark::kDecay, TEveVector( global[0], global[1], global[2] ),
95 TEveVector( globalDir[0], globalDir[1], globalDir[2] )));
const fireworks::Context & context() const
FWProxyBuilderConfiguration * getConfig() const
#define REGISTER_PROXYBUILDER_METHODS()
#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
virtual void setItem(const FWEventItem *iItem)
FWTrackingParticleProxyBuilder(void)
double vz() const
z coordinate of vertex position
const FWTrackingParticleProxyBuilder & operator=(const FWTrackingParticleProxyBuilder &)
FWGenericParameter< T > * assertParam(const std::string &name, T def)
double vx() const
x coordinate of vertex position
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
virtual void setItem(const FWEventItem *iItem)