|
typedef std::vector< Product * >::iterator | Product_it |
|
void | build (const void *iData, unsigned int iIndex, TEveElement &oItemHolder, const FWViewContext *context) 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 (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 |
|
FWECaloParticleProxyBuilder::FWECaloParticleProxyBuilder |
( |
void |
| ) |
|
|
inline |
FWECaloParticleProxyBuilder::~FWECaloParticleProxyBuilder |
( |
void |
| ) |
|
|
inlineoverride |
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, beam_dqm_sourceclient-live_cfg::cerr, DetId::det(), FWGeometry::getCorners(), FWEventItem::getGeom(), FWProxyBuilderBase::item(), REGISTER_FWPROXYBUILDER, 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 FWEventItem * item() const
const SimClusterRefVector & simClusters() const
const float * getCorners(unsigned int id) const
const FWGeometry * getGeom() const
constexpr Detector det() const
get the detector field from this detid
const std::string & FWECaloParticleProxyBuilder::classPurpose |
( |
| ) |
|
|
static |
const std::string & FWECaloParticleProxyBuilder::classRegisterTypeName |
( |
| ) |
|
|
static |
const std::string & FWECaloParticleProxyBuilder::classTypeName |
( |
| ) |
|
|
static |
const std::string & FWECaloParticleProxyBuilder::classView |
( |
| ) |
|
|
static |
const std::string& FWECaloParticleProxyBuilder::purpose |
( |
| ) |
const |
|
inline |
const std::string& FWECaloParticleProxyBuilder::typeName |
( |
| ) |
const |
|
inline |
const std::string& FWECaloParticleProxyBuilder::view |
( |
| ) |
const |
|
inline |