14 #include "TEveStraightLineSet.h" 15 #include "TEvePointSet.h" 53 TEveElement& itemHolder,
60 TEvePointSet* pointSet =
new TEvePointSet;
61 TEveLine*
line =
new TEveLine;
62 TEveStraightLineSet* lineSet =
new TEveStraightLineSet;
65 for (; hit != iData.
recHits().second; hit++) {
66 unsigned int id = hit->geographicalId();
74 fwLog(
fwlog::kWarning) <<
"failed get geometry of SiPixelCluster with detid: " <<
id << std::endl;
78 float localPoint[3] = {
84 pointSet->SetNextPoint(globalPoint[0], globalPoint[1], globalPoint[2]);
85 line->SetNextPoint(globalPoint[0], globalPoint[1], globalPoint[2]);
94 float localTop[3] = {0.0, 0.0, 0.0};
95 float localBottom[3] = {0.0, 0.0, 0.0};
100 float globalBottom[3];
101 geom->
localToGlobal(
id, localTop, globalTop, localBottom, globalBottom);
103 lineSet->AddLine(globalTop[0], globalTop[1], globalTop[2], globalBottom[0], globalBottom[1], globalBottom[2]);
const FWTrajectorySeedProxyBuilder & operator=(const FWTrajectorySeedProxyBuilder &)=delete
static const int kAllRPZBits
const float * getParameters(unsigned int id) const
void setupAddElement(TEveElement *el, TEveElement *parent, bool set_color=true) const
uint16_t firstStrip() const
const FWEventItem * item() const
static const int kAll3DBits
void localSiStrip(short strip, float *localTop, float *localBottom, const float *pars, unsigned int id)
recHitContainer::const_iterator const_iterator
const SiStripCluster * extractClusterFromTrackingRecHit(const TrackingRecHit *rh)
void localToGlobal(unsigned int id, const float *local, float *global, bool translatep=true) const
bool contains(unsigned int id) const
T const * get() const
Returns C++ pointer to the item.
float pixelLocalX(const double mpx, const float *)
float pixelLocalY(const double mpy, const float *)
FWTrajectorySeedProxyBuilder()
ClusterRef cluster() const
#define REGISTER_PROXYBUILDER_METHODS()
#define REGISTER_FWPROXYBUILDER(_name_, _type_, _purpose_, _view_)
~FWTrajectorySeedProxyBuilder() override
Pixel cluster – collection of neighboring pixels above threshold.
const FWGeometry * getGeom() const