7 typedef std::vector<FWPFRhoPhiRecHit *> rpRecHits;
8 unsigned int index = 0;
18 typedef std::vector<FWPFRhoPhiRecHit *> rpRecHits;
29 for (
unsigned int i = 0;
i < 8;
i++) {
31 centre.fX += vertices[
j];
32 centre.fY += vertices[j + 1];
33 centre.fZ += vertices[j + 2];
36 centre *= 1.0f / 8.0f;
44 for (
unsigned int index = 0; index < static_cast<unsigned int>(iItem->
size()); ++
index) {
46 product->AddElement(itemHolder);
58 TEveVector lVec = TEveVector(vertices[0], vertices[1], 0);
59 TEveVector rVec = TEveVector(vertices[9], vertices[10], 0);
66 for (
unsigned int i = 0;
i <
m_towers.size();
i++) {
68 if ((lPhi == phi) || ((lPhi < phi + 0.0005) && (lPhi > phi - 0.0005))) {
69 m_towers[
i]->addChild(
this, itemHolder, vc, E, et);
77 rVec.fX = ecalR *
cos(rPhi);
78 rVec.fY = ecalR *
sin(rPhi);
79 lVec.fX = ecalR *
cos(lPhi);
80 lVec.fY = ecalR *
sin(lPhi);
81 std::vector<TEveVector> bCorners(2);
const fireworks::Context & context() const
const FWDisplayProperties & displayProperties() const
#define REGISTER_FWPROXYBUILDER(_name_, _type_, _purpose_, _view_)
void cleanLocal() override
void voteMaxEtAndEnergy(float Et, float energy) const
Sin< T >::type sin(const T &t)
const DetId & detid() const
const FWEventItem * item() const
const EcalRecHit & modelData(int index)
void scaleProduct(TEveElementList *parent, FWViewType::EType, const FWViewContext *vc) override
Cos< T >::type cos(const T &t)
TEveVector calculateCentre(const float *corners)
float calculateEt(const TEveVector ¢re, float e)
const float * getCorners(unsigned int id) const
TEveCompound * createCompound(bool set_color=true, bool propagate_color_to_all_children=false) const
std::vector< FWPFRhoPhiRecHit * > m_towers
ModelInfo modelInfo(int iIndex) const
const FWGeometry * getGeom() const