#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() [1/2]
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().
void buildRecHit(FWProxyBuilderBase *pb, TEveElement *itemHolder, const FWViewContext *vc, std::vector< TEveVector > &bCorners)
FWPFRhoPhiRecHit * m_child
◆ ~FWPFRhoPhiRecHit()
FWPFRhoPhiRecHit::~FWPFRhoPhiRecHit |
( |
| ) |
|
|
virtual |
◆ FWPFRhoPhiRecHit() [2/2]
◆ addChild()
Definition at line 105 of file FWPFRhoPhiRecHit.cc.
References addChild(), EgHLTOffHistBins_cfi::et, FWPFRhoPhiRecHit(), m_child, m_corners, m_hasChild, m_lPhi, and m_rPhi.
Referenced by addChild().
110 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)
FWPFRhoPhiRecHit * m_child
◆ buildRecHit()
Definition at line 119 of file FWPFRhoPhiRecHit.cc.
References FWViewContext::getEnergyScale(), FWViewEnergyScale::getPlotEt(), FWViewEnergyScale::getScaleFactor3D(), m_corners, m_energy, m_et, m_ls, L1EGammaClusterEmuProducer_cfi::scale, FWProxyBuilderBase::setupAddElement(), and relativeConstraints::value.
Referenced by FWPFRhoPhiRecHit().
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);
std::vector< TEveVector > m_corners
void setupAddElement(TEveElement *el, TEveElement *parent, bool set_color=true) const
FWViewEnergyScale * getEnergyScale() const
float getScaleFactor3D() const
TEveScalableStraightLineSet * m_ls
◆ clean()
void FWPFRhoPhiRecHit::clean |
( |
| ) |
|
◆ getLineSet()
TEveScalableStraightLineSet* FWPFRhoPhiRecHit::getLineSet |
( |
| ) |
|
|
inline |
◆ getlPhi()
Double_t FWPFRhoPhiRecHit::getlPhi |
( |
| ) |
|
|
inline |
◆ operator=()
◆ setCorners()
void FWPFRhoPhiRecHit::setCorners |
( |
int |
i, |
|
|
TEveVector |
vec |
|
) |
| |
|
inline |
◆ setHasChild()
void FWPFRhoPhiRecHit::setHasChild |
( |
bool |
b | ) |
|
|
inline |
◆ updateScale() [1/2]
void FWPFRhoPhiRecHit::updateScale |
( |
TEveScalableStraightLineSet * |
ls, |
|
|
Double_t |
scale, |
|
|
unsigned int |
i |
|
) |
| |
◆ updateScale() [2/2]
Definition at line 20 of file FWPFRhoPhiRecHit.cc.
References a, f, FWViewContext::getEnergyScale(), FWViewEnergyScale::getPlotEt(), FWViewEnergyScale::getScaleFactor3D(), MainPageGenerator::l, m_child, m_corners, m_energy, m_et, m_hasChild, m_ls, amptDefault_cfi::proj, L1EGammaClusterEmuProducer_cfi::scale, setCorners(), updateScale(), and relativeConstraints::value.
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();
std::vector< TEveVector > m_corners
FWViewEnergyScale * getEnergyScale() const
void updateScale(TEveScalableStraightLineSet *ls, Double_t scale, unsigned int i)
float getScaleFactor3D() const
void setCorners(int i, TEveVector vec)
TEveScalableStraightLineSet * m_ls
FWPFRhoPhiRecHit * m_child
◆ m_child
◆ m_corners
std::vector<TEveVector> FWPFRhoPhiRecHit::m_corners |
|
private |
◆ m_energy
float FWPFRhoPhiRecHit::m_energy |
|
private |
◆ m_et
float FWPFRhoPhiRecHit::m_et |
|
private |
◆ m_hasChild
bool FWPFRhoPhiRecHit::m_hasChild |
|
private |
◆ m_lPhi
Double_t FWPFRhoPhiRecHit::m_lPhi |
|
private |
◆ m_ls
TEveScalableStraightLineSet* FWPFRhoPhiRecHit::m_ls |
|
private |
◆ m_rPhi
Double_t FWPFRhoPhiRecHit::m_rPhi |
|
private |