7 typedef std::vector<FWPFRhoPhiRecHit*> rpRecHits;
8 unsigned int index = 0;
21 typedef std::vector<FWPFRhoPhiRecHit*> rpRecHits;
34 for(
unsigned int i = 0;
i < 8;
i++ )
37 centre.fX += vertices[
j];
38 centre.fY += vertices[j+1];
39 centre.fZ += vertices[j+2];
42 centre *= 1.0f / 8.0f;
51 TEveVector vec = centre;
66 for(
unsigned int index = 0; index < static_cast<unsigned int>( iItem->
size() ); ++
index )
69 product->AddElement( itemHolder );
79 TEveVector lVec = TEveVector( vertices[0], vertices[1], 0 );
80 TEveVector rVec = TEveVector( vertices[9], vertices[10], 0 );
90 if( ( lPhi == phi ) || ( ( lPhi < phi + 0.0005 ) && ( lPhi > phi - 0.0005 ) ) )
92 m_towers[
i]->addChild(
this, itemHolder, vc, E, et );
101 rVec.fX = ecalR *
cos( rPhi ); rVec.fY = ecalR *
sin( rPhi );
102 lVec.fX = ecalR *
cos( lPhi ); lVec.fY = ecalR *
sin( lPhi );
103 std::vector<TEveVector> bCorners(2);
const fireworks::Context & context() const
#define REGISTER_FWPROXYBUILDER(_name_, _type_, _purpose_, _view_)
virtual void scaleProduct(TEveElementList *parent, FWViewType::EType, const FWViewContext *vc)
const DetId & detid() const
void voteMaxEtAndEnergy(float Et, float energy) const
std::vector< FWPFRhoPhiRecHit * > m_towers
Sin< T >::type sin(const T &t)
const FWEventItem * item() const
const EcalRecHit & modelData(int index)
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
virtual void cleanLocal()
const FWGeometry * getGeom() const