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
100 t.fP = TEveVector(iData.
px(), iData.
py(), iData.
pz());
101 t.fV = TEveVector(iData.
vx(), iData.
vy(), iData.
vz());
104 TEveTrack*
track =
new TEveTrack(&t,
context().getTrackPropagator());
106 track->SetLineStyle(7);
113 TEvePointSet* pointSet =
new TEvePointSet;
119 float global[3] = {0.0, 0.0, 0.0};
120 float globalDir[3] = {0.0, 0.0, 0.0};
123 std::pair<TrackingParticleRef, TrackPSimHitRef> clusterTPpairWithDummyTP(tpr,
TrackPSimHitRef());
126 clusterTPpairWithDummyTP,
130 std::vector<const PSimHit*>
phits;
131 for (
auto ri =
range.first; ri !=
range.second; ++ri)
132 phits.push_back(ri->second.get());
134 std::sort(phits.begin(), phits.end(), [](
const PSimHit*
a,
const PSimHit*
b) {
return a->
tof() <
b->tof(); });
135 for (
auto phi = phits.begin();
phi != phits.end(); ++
phi) {
148 pointSet->SetNextPoint(global[0], global[1], global[2]);
153 track->AddPathMark(TEvePathMark(TEvePathMark::kReference,
154 TEveVector(global[0], global[1], global[2]),
155 TEveVector(globalDir[0], globalDir[1], globalDir[2])));
const fireworks::Context & context() const
float tof() const
deprecated name for timeOfFlight()
static bool simHitTPAssociationListGreater(SimHitTPPair i, SimHitTPPair j)
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. ...
const FWEventItem * item() const
const uint16_t range(const Frame &aFrame)
double pz() const
z coordinate of momentum vector. Note this is taken from the first SimTrack only. ...
float charge() const
Electric charge. Note this is taken from the first SimTrack only.
Local3DPoint localPosition() const
double vy() const
y coordinate of parent vertex position
void localToGlobal(unsigned int id, const float *local, float *global, bool translatep=true) const
edm::Handle< TrackingParticleCollection > tpch
double vx() const
x coordinate of parent vertex position
edm::Ref< edm::PSimHitContainer > TrackPSimHitRef
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
caConstants::TupleMultiplicity const *__restrict__ HitsOnGPU const *__restrict__ tindex_type *__restrict__ double *__restrict__ phits
double vz() const
z coordinate of parent vertex position
const SimHitTPAssociationProducer::SimHitTPAssociationList * m_assocList