13 #include "TEveBoxSet.h" 42 TEveElement& oItemHolder,
49 TEveElement& oItemHolder,
62 std::vector<std::pair<DetId, float> > detIds = photon.
superCluster()->hitsAndFractions();
64 TEveBoxSet* boxset =
new TEveBoxSet();
65 boxset->Reset(TEveBoxSet::kBT_FreeBox,
true, 64);
66 boxset->UseSingleColor();
67 boxset->SetPickable(
true);
69 for (std::vector<std::pair<DetId, float> >::iterator
id = detIds.begin(), ide = detIds.end();
id != ide; ++
id) {
70 const float* corners = geom->
getCorners(
id->first.rawId());
72 if (corners ==
nullptr) {
76 boxset->AddBox(&corners[0]);
static const int kAllRPZBits
void setupAddElement(TEveElement *el, TEveElement *parent, bool set_color=true) const
bool haveSingleProduct(void) const override
reco::SuperClusterRef superCluster() const override
Ref to SuperCluster.
const FWEventItem * item() const
static const int kAll3DBits
void buildViewType(const reco::Photon &photon, unsigned int iIndex, TEveElement &oItemHolder, FWViewType::EType type, const FWViewContext *) override
~FWPhotonProxyBuilder(void) override
const FWPhotonProxyBuilder & operator=(const FWPhotonProxyBuilder &)=delete
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)
#define REGISTER_PROXYBUILDER_METHODS()
#define REGISTER_FWPROXYBUILDER(_name_, _type_, _purpose_, _view_)
double phi() const final
momentum azimuthal angle
const FWGeometry * getGeom() const