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_FWPROXYBUILDER(_name_, _type_, _purpose_, _view_)
static const int kAllRPZBits
void setupAddElement(TEveElement *el, TEveElement *parent, bool set_color=true) const
reco::SuperClusterRef superCluster() const
Ref to SuperCluster.
REGISTER_PROXYBUILDER_METHODS()
const FWEventItem * item() const
static const int kAll3DBits
virtual float phi() const GCC11_FINAL
momentum azimuthal angle
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 &)
const FWGeometry * getGeom() const