5 float E,
float et,
double lPhi,
double rPhi, std::vector<TEveVector> &bCorners )
6 : m_hasChild(
false), m_energy(E), m_et(et), m_lPhi(lPhi), m_rPhi(rPhi), m_child(
nullptr)
42 TEveChunkManager::iterator li(
m_ls->GetLinePlex() );
45 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();
115 std::vector<TEveVector> corners(2);
129 TEveVector v1, v2, v3, v4;
142 v3 = v3 + ( vec *
scale );
147 v4 = v4 + ( vec *
scale );
149 m_ls =
new TEveScalableStraightLineSet(
"rhophiRecHit" );
150 m_ls->AddLine( v1.fX, v1.fY, 0, v3.fX, v3.fY, 0 );
151 m_ls->AddLine( v3.fX, v3.fY, 0, v4.fX, v4.fY, 0 );
152 m_ls->AddLine( v4.fX, v4.fY, 0, v2.fX, v2.fY, 0 );
153 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)
et
define resolution functions of each parameter
virtual ~FWPFRhoPhiRecHit()
void setCorners(int i, TEveVector vec)
TEveScalableStraightLineSet * m_ls
FWPFRhoPhiRecHit * m_child