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"));
58 #warning "This file has been modified just to get it to compile without any regard as to whether it still functions as intended"
59 #ifdef REMOVED_JUST_TO_GET_IT_TO_COMPILE__THIS_CODE_NEEDS_TO_BE_CHECKED
61 const std::vector<PSimHit>& hits = iData.trackPSimHit();
65 float global[3] = { 0.0, 0.0, 0.0 };
66 float globalDir[3] = { 0.0, 0.0, 0.0 };
67 std::vector<PSimHit>::const_iterator it = hits.begin();
68 std::vector<PSimHit>::const_iterator
end = hits.end();
71 unsigned int trackid = hits.begin()->trackId();
73 for( ; it !=
end; ++it )
79 track->AddPathMark( TEvePathMark( TEvePathMark::kDecay, TEveVector( global[0], global[1], global[2] ),
80 TEveVector( globalDir[0], globalDir[1], globalDir[2] )));
90 pointSet->SetNextPoint( global[0], global[1], global[2] );
91 track->AddPathMark( TEvePathMark( TEvePathMark::kReference, TEveVector( global[0], global[1], global[2] ),
92 TEveVector( globalDir[0], globalDir[1], globalDir[2] )));
95 track->AddPathMark( TEvePathMark( TEvePathMark::kDecay, TEveVector( global[0], global[1], global[2] ),
96 TEveVector( globalDir[0], globalDir[1], globalDir[2] )));
const fireworks::Context & context() const
FWProxyBuilderConfiguration * getConfig() const
#define REGISTER_FWPROXYBUILDER(_name_, _type_, _purpose_, _view_)
virtual ~FWTrackingParticleProxyBuilder(void)
static const int kAllRPZBits
LocalVector momentumAtEntry() const
The momentum of the track that produced the hit, at entry point.
void setupAddElement(TEveElement *el, TEveElement *parent, bool set_color=true) const
double py() const
y coordinate of momentum vector. Note this is taken from the first SimTrack only. ...
void localToGlobal(unsigned int id, const float *local, float *global) const
const FWEventItem * item() const
static const int kAll3DBits
double pz() const
z coordinate of momentum vector. Note this is taken from the first SimTrack only. ...
Local3DPoint localPosition() const
double vy() const
y coordinate of parent vertex position
virtual void setItem(const FWEventItem *iItem)
FWTrackingParticleProxyBuilder(void)
const FWTrackingParticleProxyBuilder & operator=(const FWTrackingParticleProxyBuilder &)
FWGenericParameter< T > * assertParam(const std::string &name, T def)
double vx() const
x coordinate of parent vertex position
REGISTER_PROXYBUILDER_METHODS()
unsigned int trackId() const
Monte Carlo truth information used for tracking validation.
int charge() const
Electric charge. Note this is taken from the first SimTrack only.
double px() const
x coordinate of momentum vector. Note this is taken from the first SimTrack only. ...
const FWGeometry * getGeom() const
unsigned int detUnitId() const
double vz() const
z coordinate of parent vertex position
virtual void setItem(const FWEventItem *iItem)