11 #include "TEvePointSet.h" 12 #include "TEveCompound.h" 50 TEvePointSet* pointSet =
new TEvePointSet();
52 product->AddElement(itemHolder);
54 for (
const auto& detSet : *
clusters) {
55 unsigned int id = detSet.detId();
57 if (!
geom->contains(
id)) {
62 const float* pars =
geom->getParameters(
id);
64 for (
const auto& cluster : detSet) {
66 float x_local = (cluster.x() + 0.5f) * pars[0] + pars[2];
67 float y_local = (cluster.y() + 0.5f) * pars[1] + pars[3];
69 const float localPoint[3] = {x_local, y_local, 0.0};
72 geom->localToGlobal(
id, localPoint, globalPoint);
74 pointSet->SetNextPoint(globalPoint[0], globalPoint[1], globalPoint[2]);
#define REGISTER_PROXYBUILDER_METHODS()
#define REGISTER_FWPROXYBUILDER(_name_, _type_, _purpose_, _view_)
static const int kAllRPZBits
void setupAddElement(TEveElement *el, TEveElement *parent, bool set_color=true) const
FWEtlClusterProxyBuilder(void)
void get(const T *&oData) const
static const int kAll3DBits
const FWGeometry * getGeom() const
const FWEtlClusterProxyBuilder & operator=(const FWEtlClusterProxyBuilder &)=delete
TEveCompound * createCompound(bool set_color=true, bool propagate_color_to_all_children=false) const
~FWEtlClusterProxyBuilder(void) override