|
typedef std::vector< Product * >::iterator | Product_it |
|
void | build (const void *iData, unsigned int iIndex, TEveElement &oItemHolder, const FWViewContext *context) override |
|
virtual void | build (const reco::Photon &iData, unsigned int iIndex, TEveElement &oItemHolder, const FWViewContext *) |
|
void | buildViewType (const void *iData, unsigned int iIndex, TEveElement &oItemHolder, FWViewType::EType viewType, const FWViewContext *context) override |
|
const reco::Photon & | modelData (int index) |
|
void | build (const FWEventItem *iItem, TEveElementList *product, const FWViewContext *) override |
|
void | buildViewType (const FWEventItem *iItem, TEveElementList *product, FWViewType::EType viewType, const FWViewContext *) override |
|
void | clean () override |
|
virtual void | cleanLocal () |
|
TEveCompound * | createCompound (bool set_color=true, bool propagate_color_to_all_children=false) const |
|
| FWProxyBuilderBase (const FWProxyBuilderBase &) |
|
void | increaseComponentTransparency (unsigned int index, TEveElement *holder, const std::string &name, Char_t transpOffset) |
|
virtual void | localModelChanges (const FWModelId &iId, TEveElement *iCompound, FWViewType::EType viewType, const FWViewContext *vc) |
|
virtual void | modelChanges (const FWModelIds &, Product *) |
|
const FWProxyBuilderBase & | operator= (const FWProxyBuilderBase &) |
|
virtual void | scaleProduct (TEveElementList *parent, FWViewType::EType, const FWViewContext *vc) |
|
FWSimpleProxyHelper | m_helper |
|
std::vector< Product * > | m_products |
|
Definition at line 25 of file FWPhotonProxyBuilder.cc.
Reimplemented from FWSimpleProxyBuilderTemplate< reco::Photon >.
Definition at line 45 of file FWPhotonProxyBuilder.cc.
References fwLog, relativeConstraints::geom, FWGeometry::getCorners(), FWEventItem::getGeom(), triggerObjects_cff::id, FWProxyBuilderBase::item(), FWViewType::kISpy, FWViewType::kRhoPhi, FWViewType::kRhoPhiPF, FWViewType::kRhoZ, fwlog::kWarning, fireworks::makeRhoPhiSuperCluster(), fireworks::makeRhoZSuperCluster(), reco::LeafCandidate::phi(), FWProxyBuilderBase::setupAddElement(), and reco::Photon::superCluster().
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(
true);
72 for( std::vector<std::pair<DetId, float> >::iterator
id = detIds.begin(), ide = detIds.end();
75 const float* corners = geom->
getCorners(
id->first.rawId() );
77 if( corners ==
nullptr )
80 <<
"No corners available for supercluster constituent" << std::endl;
83 boxset->AddBox( &corners[0]);
void setupAddElement(TEveElement *el, TEveElement *parent, bool set_color=true) const
reco::SuperClusterRef superCluster() const override
Ref to SuperCluster.
const FWEventItem * item() const
bool makeRhoZSuperCluster(FWProxyBuilderBase *, const reco::SuperClusterRef &iCluster, float iPhi, TEveElement &oItemHolder)
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