12 #include "TEvePointSet.h"
13 #include "TEveStraightLineSet.h"
14 #include "TEveCompound.h"
53 unsigned int id = set->detId();
56 const float* pars =
geom->getParameters(
id);
63 product->AddElement(itemHolder);
65 TEvePointSet* pointSet =
new TEvePointSet;
67 if (!
geom->contains(
id)) {
68 fwLog(
fwlog::kWarning) <<
"failed get geometry of SiPixelCluster with detid: " <<
id << std::endl;
72 float localPoint[3] = {
76 geom->localToGlobal(
id, localPoint, globalPoint);
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)};
97 geom->localToGlobal(
id, lp,
p.Arr());
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]);