13 #include "TEveBoxSet.h"
65 std::vector<std::pair<DetId, float> > detIds = photon.
superCluster()->hitsAndFractions();
67 TEveBoxSet* boxset =
new TEveBoxSet();
68 boxset->Reset(TEveBoxSet::kBT_FreeBox,
true, 64);
69 boxset->UseSingleColor();
70 boxset->SetPickable(1);
72 for( std::vector<std::pair<DetId, float> >::iterator
id = detIds.begin(), ide = detIds.end();
75 const float* corners = geom->
getCorners( id->first.rawId() );
80 <<
"No corners available for supercluster constituent" << std::endl;
83 boxset->AddBox( &corners[0]);
#define REGISTER_PROXYBUILDER_METHODS()
#define REGISTER_FWPROXYBUILDER(_name_, _type_, _purpose_, _view_)
static const int kAllRPZBits
reco::SuperClusterRef superCluster() const
Ref to SuperCluster.
void setupAddElement(TEveElement *el, TEveElement *parent, bool set_color=true) const
const FWEventItem * item() const
static const int kAll3DBits
virtual void buildViewType(const reco::Photon &photon, unsigned int iIndex, TEveElement &oItemHolder, FWViewType::EType type, const FWViewContext *) override
bool makeRhoZSuperCluster(FWProxyBuilderBase *, const reco::SuperClusterRef &iCluster, float iPhi, TEveElement &oItemHolder)
FWPhotonProxyBuilder(void)
const float * getCorners(unsigned int id) const
bool makeRhoPhiSuperCluster(FWProxyBuilderBase *, const reco::SuperClusterRef &iCluster, float iPhi, TEveElement &oItemHolder)
virtual ~FWPhotonProxyBuilder(void)
virtual bool haveSingleProduct(void) const override
const FWPhotonProxyBuilder & operator=(const FWPhotonProxyBuilder &)
virtual double phi() const
momentum azimuthal angle
const FWGeometry * getGeom() const