1 #ifndef Fireworks_Tracks_TrackUtils_h 2 #define Fireworks_Tracks_TrackUtils_h 10 #include "TEveVSDStructs.h" 22 class TEveTrackPropagator;
25 class TEveStraightLineSet;
39 State(
const TEveVector&
pos,
const TEveVector& mom) : position(pos), momentum(mom), valid(
true) {}
47 m_direction = momentum;
48 m_direction.Normalize();
51 double product1 = state1.
position.Perp() *
52 (state1.
position.fX * m_direction.fX + state1.
position.fY * m_direction.fY > 0 ? 1 : -1);
53 double product2 = state2.
position.Perp() *
54 (state2.
position.fX * m_direction.fX + state2.
position.fY * m_direction.fY > 0 ? 1 : -1);
55 return product1 < product2;
61 const std::vector<TEveVector>& extraRefPoints = std::vector<TEveVector>());
69 void localSiStrip(
short strip,
float* localTop,
float* localBottom,
const float* pars,
unsigned int id);
89 #endif // Fireworks_Tracks_TrackUtils_h State(const TEveVector &pos)
bool operator()(const State &state1, const State &state2) const
TEveTrack * prepareTrack(const reco::Track &track, TEveTrackPropagator *propagator, const std::vector< TEveVector > &extraRefPoints=std::vector< TEveVector >())
float phase2PixelLocalY(const double mpy, const float *, const float *)
void localSiStrip(short strip, float *localTop, float *localBottom, const float *pars, unsigned int id)
State(const TEveVector &pos, const TEveVector &mom)
float phase2PixelLocalX(const double mpx, const float *, const float *)
const SiStripCluster * extractClusterFromTrackingRecHit(const TrackingRecHit *rh)
void pushPixelHits(std::vector< TVector3 > &pixelPoints, const FWEventItem &iItem, const reco::Track &t)
float pixelLocalX(const double mpx, const float *)
void addSiStripClusters(const FWEventItem *iItem, const reco::Track &t, class TEveElement *tList, bool addNearbyClusters, bool master)
float pixelLocalY(const double mpy, const float *)
StateOrdering(const TEveVector &momentum)
Pixel cluster – collection of neighboring pixels above threshold.
void pushNearbyPixelHits(std::vector< TVector3 > &pixelPoints, const FWEventItem &iItem, const reco::Track &t)
void pushPixelCluster(std::vector< TVector3 > &pixelPoints, const FWGeometry &geom, DetId id, const SiPixelCluster &c, const float *pars)