1 #include "TEveBoxSet.h" 29 TEveBoxSet* boxset =
new TEveBoxSet();
30 boxset->Reset(TEveBoxSet::kBT_FreeBox,
true, 64);
31 boxset->UseSingleColor();
32 boxset->SetPickable(
true);
35 std::vector<std::pair<DetId, float> > clusterDetIds =
c->hitsAndFractions();
38 for( std::vector<std::pair<DetId, float> >::iterator it = clusterDetIds.begin(), itEnd = clusterDetIds.end();
45 if( corners ==
nullptr || parameters ==
nullptr || shapes ==
nullptr ) {
50 const int total_points = parameters[0];
51 const int total_vertices = 3*total_points;
52 #else // using broken boxes(half hexagon) until there's support for hexagons in TEveBoxSet 53 const int total_points = 4;
54 const int total_vertices = 3*total_points;
56 const float thickness = shapes[3];
58 std::vector<float> pnts(24);
59 for(
int i = 0;
i < total_points; ++
i){
60 pnts[
i*3+0] = corners[
i*3];
61 pnts[
i*3+1] = corners[
i*3+1];
62 pnts[
i*3+2] = corners[
i*3+2];
64 pnts[(
i*3+0)+total_vertices] = corners[
i*3];
65 pnts[(
i*3+1)+total_vertices] = corners[
i*3+1];
66 pnts[(
i*3+2)+total_vertices] = corners[
i*3+2]+thickness;
68 boxset->AddBox( &pnts[0]);
#define REGISTER_PROXYBUILDER_METHODS()
#define REGISTER_FWPROXYBUILDER(_name_, _type_, _purpose_, _view_)
~FWHGCalMultiClusterProxyBuilder(void) override
const float * getParameters(unsigned int id) const
void setupAddElement(TEveElement *el, TEveElement *parent, bool set_color=true) const
const FWEventItem * item() const
const float * getShapePars(unsigned int id) const
FWHGCalMultiClusterProxyBuilder(void)
const edm::PtrVector< reco::BasicCluster > & clusters() const
const FWHGCalMultiClusterProxyBuilder & operator=(const FWHGCalMultiClusterProxyBuilder &)=delete
const float * getCorners(unsigned int id) const
const FWGeometry * getGeom() const