Go to the documentation of this file.
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
#define REGISTER_FWPROXYBUILDER(_name_, _type_, _purpose_, _view_)
#define REGISTER_PROXYBUILDER_METHODS()
static const int kAll3DBits
const FWPhotonProxyBuilder & operator=(const FWPhotonProxyBuilder &)=delete
bool haveSingleProduct(void) const override
bool makeRhoZSuperCluster(FWProxyBuilderBase *, const reco::SuperClusterRef &iCluster, float iPhi, TEveElement &oItemHolder)
void buildViewType(const reco::Photon &photon, unsigned int iIndex, TEveElement &oItemHolder, FWViewType::EType type, const FWViewContext *) override
FWPhotonProxyBuilder(void)
void setupAddElement(TEveElement *el, TEveElement *parent, bool set_color=true) const
bool makeRhoPhiSuperCluster(FWProxyBuilderBase *, const reco::SuperClusterRef &iCluster, float iPhi, TEveElement &oItemHolder)
~FWPhotonProxyBuilder(void) override
const FWGeometry * getGeom() const
const FWEventItem * item() const