|
typedef std::vector< Product * >::iterator | Product_it |
|
void | build (const FWEventItem *iItem, TEveElementList *product, const FWViewContext *) override |
|
virtual void | build (const void *, unsigned int iIndex, TEveElement &iItemHolder, const FWViewContext *)=0 |
|
void | build () |
|
virtual void | build (const FWEventItem *iItem, TEveElementList *product, const FWViewContext *) |
|
void | build (const void *iData, unsigned int iIndex, TEveElement &oItemHolder, const FWViewContext *context) override |
|
virtual void | buildViewType (const void *, unsigned int iIndex, TEveElement &iItemHolder, FWViewType::EType, const FWViewContext *)=0 |
|
virtual void | buildViewType (const FWEventItem *iItem, TEveElementList *, FWViewType::EType, const FWViewContext *) |
|
void | buildViewType (const FWEventItem *iItem, TEveElementList *product, FWViewType::EType viewType, const FWViewContext *) override |
|
void | buildViewType (const void *iData, unsigned int iIndex, TEveElement &oItemHolder, FWViewType::EType viewType, const FWViewContext *context) override |
|
virtual void | buildViewType (const CaloParticle &iData, unsigned int iIndex, TEveElement &oItemHolder, FWViewType::EType viewType, const FWViewContext *) |
|
const CaloParticle & | modelData (int index) |
|
void | build () |
|
virtual void | build (const FWEventItem *iItem, TEveElementList *product, const FWViewContext *) |
|
void | build (const FWEventItem *iItem, TEveElementList *product, const FWViewContext *) override |
|
virtual void | buildViewType (const FWEventItem *iItem, TEveElementList *, FWViewType::EType, const FWViewContext *) |
|
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 |
|
void FWECaloParticleProxyBuilder::build |
( |
const CaloParticle & |
iData, |
|
|
unsigned int |
iIndex, |
|
|
TEveElement & |
oItemHolder, |
|
|
const FWViewContext * |
|
|
) |
| |
|
overrideprivatevirtual |
iIndex is the index where iData is found in the container from which it came iItemHolder is the object to which you add your own objects which inherit from TEveElement
Reimplemented from FWSimpleProxyBuilderTemplate< CaloParticle >.
Definition at line 26 of file FWECaloParticleProxyBuilder.cc.
References HltBtagPostValidation_cff::c, DMR_cfg::cerr, DetId::det(), FWGeometry::getCorners(), FWEventItem::getGeom(), FWProxyBuilderBase::item(), and CaloParticle::simClusters().
30 TEveBoxSet *boxset =
new TEveBoxSet();
31 boxset->UseSingleColor();
32 boxset->SetPickable(
true);
33 boxset->Reset(TEveBoxSet::kBT_FreeBox,
true, 64);
34 boxset->SetAntiFlick(
true);
37 for (
const auto &it : (*c).hits_and_fractions()) {
38 if (
DetId(it.first).
det() != DetId::Detector::Ecal) {
39 std::cerr <<
"this proxy should be used only for ECAL";
44 if (corners ==
nullptr)
47 boxset->AddBox(corners);
52 boxset->CSCTakeAnyParentAsMaster();
53 boxset->CSCApplyMainColorToMatchingChildren();
54 boxset->CSCApplyMainTransparencyToMatchingChildren();
55 boxset->SetMainColor(
item()->modelInfo(iIndex).displayProperties().color());
56 boxset->SetMainTransparency(
item()->defaultDisplayProperties().transparency());
57 oItemHolder.AddElement(boxset);
const SimClusterRefVector & simClusters() const
constexpr Detector det() const
get the detector field from this detid
const float * getCorners(unsigned int id) const
const FWGeometry * getGeom() const
const FWEventItem * item() const