12 #include "TEvePointSet.h"
13 #include "TEveStraightLineSet.h"
14 #include "TEveCompound.h"
53 unsigned int id = set->detId();
63 product->AddElement(itemHolder);
65 TEvePointSet* pointSet =
new TEvePointSet;
68 fwLog(
fwlog::kWarning) <<
"failed get geometry of SiPixelCluster with detid: " <<
id << std::endl;
72 float localPoint[3] = {
78 pointSet->SetNextPoint(globalPoint[0], globalPoint[1], globalPoint[2]);
82 TEveStraightLineSet*
ls =
new TEveStraightLineSet();
83 for (
int j = 0;
j < (*itc).size();
j++) {
86 float offsetx[4] = {-0.4, -0.4, +0.4, +0.4};
87 float offsety[4] = {-0.4, +0.4, +0.4, -0.4};
90 std::vector<TEveVector> boxCorners;
91 for (
int of = 0;
of < 8;
of++) {
94 (
of < 4) ? (0.0f) : (adc)};
99 boxCorners.push_back(p);
103 ls->AddLine(boxCorners[0], boxCorners[1]);
104 ls->AddLine(boxCorners[1], boxCorners[2]);
105 ls->AddLine(boxCorners[2], boxCorners[3]);
106 ls->AddLine(boxCorners[3], boxCorners[0]);
108 ls->AddLine(boxCorners[4], boxCorners[5]);
109 ls->AddLine(boxCorners[5], boxCorners[6]);
110 ls->AddLine(boxCorners[6], boxCorners[7]);
111 ls->AddLine(boxCorners[7], boxCorners[4]);
113 ls->AddLine(boxCorners[0], boxCorners[4]);
114 ls->AddLine(boxCorners[1], boxCorners[5]);
115 ls->AddLine(boxCorners[2], boxCorners[6]);
116 ls->AddLine(boxCorners[3], boxCorners[7]);
#define REGISTER_PROXYBUILDER_METHODS()
const_iterator end(bool update=false) const
#define REGISTER_FWPROXYBUILDER(_name_, _type_, _purpose_, _view_)
~FWSiPixelClusterProxyBuilder(void) override
static const int kAllRPZBits
const float * getParameters(unsigned int id) const
void setupAddElement(TEveElement *el, TEveElement *parent, bool set_color=true) const
void get(const T *&oData) const
data_type const * const_iterator
static const int kAll3DBits
FWSiPixelClusterProxyBuilder(void)
void localToGlobal(unsigned int id, const float *local, float *global, bool translatep=true) const
bool contains(unsigned int id) const
float pixelLocalX(const double mpx, const float *)
float pixelLocalY(const double mpy, const float *)
boost::transform_iterator< IterHelp, const_IdIter > const_iterator
TEveCompound * createCompound(bool set_color=true, bool propagate_color_to_all_children=false) const
const FWSiPixelClusterProxyBuilder & operator=(const FWSiPixelClusterProxyBuilder &)=delete
const FWGeometry * getGeom() const
const_iterator begin(bool update=false) const
uint16_t *__restrict__ uint16_t const *__restrict__ adc