#include <FWPFRhoPhiRecHit.h>
|
void | addChild (FWProxyBuilderBase *pb, TEveElement *itemHolder, const FWViewContext *vc, float E, float et) |
|
void | buildRecHit (FWProxyBuilderBase *pb, TEveElement *itemHolder, const FWViewContext *vc, std::vector< TEveVector > &bCorners) |
|
void | clean () |
|
| FWPFRhoPhiRecHit (FWProxyBuilderBase *pb, TEveElement *iH, const FWViewContext *vc, float E, float et, double lPhi, double rPhi, std::vector< TEveVector > &bCorners) |
|
TEveScalableStraightLineSet * | getLineSet () |
|
Double_t | getlPhi () |
|
void | setCorners (int i, TEveVector vec) |
|
void | setHasChild (bool b) |
|
void | updateScale (TEveScalableStraightLineSet *ls, Double_t scale, unsigned int i) |
|
void | updateScale (const FWViewContext *vc) |
|
virtual | ~FWPFRhoPhiRecHit () |
|
Definition at line 28 of file FWPFRhoPhiRecHit.h.
FWPFRhoPhiRecHit::FWPFRhoPhiRecHit |
( |
FWProxyBuilderBase * |
pb, |
|
|
TEveElement * |
iH, |
|
|
const FWViewContext * |
vc, |
|
|
float |
E, |
|
|
float |
et, |
|
|
double |
lPhi, |
|
|
double |
rPhi, |
|
|
std::vector< TEveVector > & |
bCorners |
|
) |
| |
Definition at line 4 of file FWPFRhoPhiRecHit.cc.
References buildRecHit().
Referenced by addChild(), and setCorners().
void buildRecHit(FWProxyBuilderBase *pb, TEveElement *itemHolder, const FWViewContext *vc, std::vector< TEveVector > &bCorners)
et
define resolution functions of each parameter
FWPFRhoPhiRecHit * m_child
FWPFRhoPhiRecHit::~FWPFRhoPhiRecHit |
( |
| ) |
|
|
virtual |
Definition at line 109 of file FWPFRhoPhiRecHit.cc.
References addChild(), FWPFRhoPhiRecHit(), m_child, m_corners, m_hasChild, m_lPhi, and m_rPhi.
Referenced by addChild().
115 std::vector<TEveVector> corners(2);
std::vector< TEveVector > m_corners
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)
et
define resolution functions of each parameter
FWPFRhoPhiRecHit * m_child
Definition at line 125 of file FWPFRhoPhiRecHit.cc.
References FWViewContext::getEnergyScale(), FWViewEnergyScale::getPlotEt(), FWViewEnergyScale::getScaleFactor3D(), m_corners, m_energy, m_et, m_ls, Scenarios_cff::scale, FWProxyBuilderBase::setupAddElement(), and relativeConstraints::value.
Referenced by FWPFRhoPhiRecHit().
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
TEveScalableStraightLineSet * m_ls
void FWPFRhoPhiRecHit::clean |
( |
| ) |
|
TEveScalableStraightLineSet* FWPFRhoPhiRecHit::getLineSet |
( |
| ) |
|
|
inline |
Double_t FWPFRhoPhiRecHit::getlPhi |
( |
| ) |
|
|
inline |
void FWPFRhoPhiRecHit::setCorners |
( |
int |
i, |
|
|
TEveVector |
vec |
|
) |
| |
|
inline |
void FWPFRhoPhiRecHit::setHasChild |
( |
bool |
b | ) |
|
|
inline |
void FWPFRhoPhiRecHit::updateScale |
( |
TEveScalableStraightLineSet * |
ls, |
|
|
Double_t |
scale, |
|
|
unsigned int |
i |
|
) |
| |
Definition at line 16 of file FWPFRhoPhiRecHit.cc.
References a, f, FWViewContext::getEnergyScale(), FWViewEnergyScale::getPlotEt(), FWViewEnergyScale::getScaleFactor3D(), checklumidiff::l, m_child, m_corners, m_energy, m_et, m_hasChild, m_ls, Scenarios_cff::scale, setCorners(), updateScale(), and relativeConstraints::value.
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();
float getScaleFactor3D() const
std::vector< TEveVector > m_corners
FWViewEnergyScale * getEnergyScale() const
void updateScale(TEveScalableStraightLineSet *ls, Double_t scale, unsigned int i)
void setCorners(int i, TEveVector vec)
TEveScalableStraightLineSet * m_ls
FWPFRhoPhiRecHit * m_child
std::vector<TEveVector> FWPFRhoPhiRecHit::m_corners |
|
private |
float FWPFRhoPhiRecHit::m_energy |
|
private |
float FWPFRhoPhiRecHit::m_et |
|
private |
bool FWPFRhoPhiRecHit::m_hasChild |
|
private |
Double_t FWPFRhoPhiRecHit::m_lPhi |
|
private |
TEveScalableStraightLineSet* FWPFRhoPhiRecHit::m_ls |
|
private |
Double_t FWPFRhoPhiRecHit::m_rPhi |
|
private |