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]);
#define REGISTER_PROXYBUILDER_METHODS()
#define REGISTER_FWPROXYBUILDER(_name_, _type_, _purpose_, _view_)
static const int kAllRPZBits
uint16_t *__restrict__ id
void setupAddElement(TEveElement *el, TEveElement *parent, bool set_color=true) const
const FWEventItem * item() const
static const int kAll3DBits
reco::SuperClusterRef superCluster() const override
Ref to SuperCluster.
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)
bool haveSingleProduct(void) const override
const float * getCorners(unsigned int id) const
bool makeRhoPhiSuperCluster(FWProxyBuilderBase *, const reco::SuperClusterRef &iCluster, float iPhi, TEveElement &oItemHolder)
double phi() const final
momentum azimuthal angle
const FWGeometry * getGeom() const