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;
52 for(
unsigned int index = 0; index < static_cast<unsigned int>( iItem->
size() ); ++
index )
55 product->AddElement( itemHolder );
68 TEveVector lVec = TEveVector( vertices[0], vertices[1], 0 );
69 TEveVector rVec = TEveVector( vertices[9], vertices[10], 0 );
79 if( ( lPhi == phi ) || ( ( lPhi < phi + 0.0005 ) && ( lPhi > phi - 0.0005 ) ) )
81 m_towers[
i]->addChild(
this, itemHolder, vc, E, et );
90 rVec.fX = ecalR *
cos( rPhi ); rVec.fY = ecalR *
sin( rPhi );
91 lVec.fX = ecalR *
cos( lPhi ); lVec.fY = ecalR *
sin( lPhi );
92 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
std::vector< FWPFRhoPhiRecHit * > m_towers
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
et
define resolution functions of each parameter
TEveCompound * createCompound(bool set_color=true, bool propagate_color_to_all_children=false) const
ModelInfo modelInfo(int iIndex) const
const FWGeometry * getGeom() const