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);
33 line->SetMarkerColor(
item()->modelInfo( iId.
index() ).displayProperties().color() );
45 for(
size_t i = 0;
i < corners.size(); ++
i )
47 centre.fX += corners[
i].fX;
48 centre.fY += corners[
i].fY;
49 centre.fZ += corners[
i].fZ;
60 size_t itemSize = iItem->
size();
65 product->AddElement( itemHolder );
70 std::vector<TEveVector> etaphiCorners(8);
73 if( corners ==
nullptr )
77 for(
int i = 0;
i < 4; ++
i )
80 TEveVector
cv = TEveVector( corners[j], corners[j+1], corners[j+2] );
81 etaphiCorners[
i].fX = cv.Eta();
82 etaphiCorners[
i].fY = cv.Phi();
83 etaphiCorners[
i].fZ = 0.0;
85 etaphiCorners[
i+4].fX = etaphiCorners[
i].fX;
86 etaphiCorners[
i+4].fY = etaphiCorners[
i].fY;
87 etaphiCorners[
i+4].fZ = 0.001;
103 float dPhi1 = etaphiCorners[2].fY - etaphiCorners[1].fY;
104 float dPhi2 = etaphiCorners[3].fY - etaphiCorners[0].fY;
105 float dPhi3 = etaphiCorners[1].fY - etaphiCorners[2].fY;
106 float dPhi4 = etaphiCorners[0].fY - etaphiCorners[3].fY;
109 etaphiCorners[2].fY = etaphiCorners[2].fY - ( 2 *
TMath::Pi() );
111 etaphiCorners[3].fY = etaphiCorners[3].fY - ( 2 *
TMath::Pi() );
113 etaphiCorners[2].fY = etaphiCorners[2].fY + ( 2 *
TMath::Pi() );
115 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
FWViewEnergyScale * getEnergyScale() const
const DetId & detid() const
void cleanLocal() override
const FWEventItem * item() const
const EcalRecHit & modelData(int index)
void scaleProduct(TEveElementList *parent, FWViewType::EType, const FWViewContext *vc) override
void setSquareColor(Color_t c)
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
float getMaxVal(bool et) const
float getMaxValLog(bool et) const
std::vector< FWPFLegoRecHit * > m_recHits
const FWGeometry * getGeom() const
void localModelChanges(const FWModelId &iId, TEveElement *iCompound, FWViewType::EType viewType, const FWViewContext *vc) override