10 typedef std::vector<FWPFLegoRecHit*> rh;
15 if( (*i)->isTallest() ==
false && (*i)->getEtEnergy( b ) == maxVal )
16 (*i)->setIsTallest(
true );
27 for (TEveElement::List_i
i = parent->BeginChildren();
i!= parent->EndChildren(); ++
i)
30 TEveStraightLineSet*
line =
dynamic_cast<TEveStraightLineSet*
>(*i);
34 line->SetMarkerColor( p.
color() );
46 for(
size_t i = 0;
i < corners.size(); ++
i )
48 centre.fX += corners[
i].fX;
49 centre.fY += corners[
i].fY;
50 centre.fZ += corners[
i].fZ;
61 size_t itemSize = iItem->
size();
66 product->AddElement( itemHolder );
71 std::vector<TEveVector> etaphiCorners(8);
78 for(
int i = 0;
i < 4; ++
i )
81 TEveVector
cv = TEveVector( corners[j], corners[j+1], corners[j+2] );
82 etaphiCorners[
i].fX = cv.Eta();
83 etaphiCorners[
i].fY = cv.Phi();
84 etaphiCorners[
i].fZ = 0.0;
86 etaphiCorners[
i+4].fX = etaphiCorners[
i].fX;
87 etaphiCorners[
i+4].fY = etaphiCorners[
i].fY;
88 etaphiCorners[
i+4].fZ = 0.001;
104 float dPhi1 = etaphiCorners[2].fY - etaphiCorners[1].fY;
105 float dPhi2 = etaphiCorners[3].fY - etaphiCorners[0].fY;
106 float dPhi3 = etaphiCorners[1].fY - etaphiCorners[2].fY;
107 float dPhi4 = etaphiCorners[0].fY - etaphiCorners[3].fY;
110 etaphiCorners[2].fY = etaphiCorners[2].fY - ( 2 *
TMath::Pi() );
112 etaphiCorners[3].fY = etaphiCorners[3].fY - ( 2 *
TMath::Pi() );
114 etaphiCorners[2].fY = etaphiCorners[2].fY + ( 2 *
TMath::Pi() );
116 etaphiCorners[3].fY = etaphiCorners[3].fY + ( 2 *
TMath::Pi() );
const fireworks::Context & context() const
#define REGISTER_FWPROXYBUILDER(_name_, _type_, _purpose_, _view_)
TEveVector calculateCentre(const std::vector< TEveVector > &corners) const
void voteMaxEtAndEnergy(float Et, float energy) const
virtual void cleanLocal()
FWViewEnergyScale * getEnergyScale() const
const DetId & detid() const
virtual void scaleProduct(TEveElementList *parent, FWViewType::EType, const FWViewContext *vc)
const FWEventItem * item() const
const EcalRecHit & modelData(int index)
void setSquareColor(Color_t c)
float calculateEt(const TEveVector ¢re, float e)
virtual void localModelChanges(const FWModelId &iId, TEveElement *iCompound, FWViewType::EType viewType, const FWViewContext *vc)
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
float getMaxVal(bool et) const
float getMaxValLog(bool et) const
ModelInfo modelInfo(int iIndex) const
std::vector< FWPFLegoRecHit * > m_recHits
const FWGeometry * getGeom() const