11 std::vector<TEveVector> &bCorners)
12 : m_hasChild(
false), m_energy(E), m_et(et), m_lPhi(lPhi), m_rPhi(rPhi), m_child(
nullptr) {
44 TEveChunkManager::iterator li(
m_ls->GetLinePlex());
46 TEveStraightLineSet::Line_t &
l = *(TEveStraightLineSet::Line_t *)li();
52 l.fV2[0] = sc2.fX + v2.fX;
53 l.fV2[1] = sc2.fY + v2.fY;
58 l.fV1[0] = sc2.fX + v2.fX;
59 l.fV1[1] = sc2.fY + v2.fY;
60 l.fV2[0] = sc1.fX + v1.fX;
61 l.fV2[1] = sc1.fY + v1.fY;
66 l.fV1[0] = sc1.fX + v1.fX;
67 l.fV1[1] = sc1.fY + v1.fY;
82 TEveProjected *
proj = *(
m_ls)->BeginProjecteds();
83 proj->UpdateProjection();
110 std::vector<TEveVector> corners(2);
120 TEveElement *itemHolder,
122 std::vector<TEveVector> &bCorners) {
125 TEveVector v1, v2, v3, v4;
138 v3 = v3 + (vec *
scale);
143 v4 = v4 + (vec *
scale);
145 m_ls =
new TEveScalableStraightLineSet(
"rhophiRecHit");
146 m_ls->AddLine(v1.fX, v1.fY, 0, v3.fX, v3.fY, 0);
147 m_ls->AddLine(v3.fX, v3.fY, 0, v4.fX, v4.fY, 0);
148 m_ls->AddLine(v4.fX, v4.fY, 0, v2.fX, v2.fY, 0);
149 m_ls->AddLine(v2.fX, v2.fY, 0, v1.fX, v1.fY, 0);
float getScaleFactor3D() const
std::vector< TEveVector > m_corners
void setupAddElement(TEveElement *el, TEveElement *parent, bool set_color=true) const
FWViewEnergyScale * getEnergyScale() const
FWPFRhoPhiRecHit(FWProxyBuilderBase *pb, TEveElement *iH, const FWViewContext *vc, float E, float et, double lPhi, double rPhi, std::vector< TEveVector > &bCorners)
void addChild(FWProxyBuilderBase *pb, TEveElement *itemHolder, const FWViewContext *vc, float E, float et)
void updateScale(TEveScalableStraightLineSet *ls, Double_t scale, unsigned int i)
void buildRecHit(FWProxyBuilderBase *pb, TEveElement *itemHolder, const FWViewContext *vc, std::vector< TEveVector > &bCorners)
virtual ~FWPFRhoPhiRecHit()
void setCorners(int i, TEveVector vec)
TEveScalableStraightLineSet * m_ls
FWPFRhoPhiRecHit * m_child