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) {
67 (cluster.getClusterErrorX() < 0. ? (cluster.x() + 0.5f) * pars[0] + pars[2] : cluster.getClusterPosX());
68 float y_local = (cluster.y() + 0.5f) * pars[1] + pars[3];
70 const float localPoint[3] = {x_local, y_local, 0.0};
73 geom->localToGlobal(
id, localPoint, globalPoint);
75 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
void get(const T *&oData) const
const FWBtlClusterProxyBuilder & operator=(const FWBtlClusterProxyBuilder &)=delete
static const int kAll3DBits
FWBtlClusterProxyBuilder(void)
const FWGeometry * getGeom() const
TEveCompound * createCompound(bool set_color=true, bool propagate_color_to_all_children=false) const
~FWBtlClusterProxyBuilder(void) override