14 #include "TEveStraightLineSet.h"
15 #include "TEvePointSet.h"
53 TEveElement& itemHolder,
60 TEvePointSet* pointSet =
new TEvePointSet;
61 TEveLine*
line =
new TEveLine;
62 TEveStraightLineSet* lineSet =
new TEveStraightLineSet;
65 unsigned int id =
hit.geographicalId();
67 const float* pars =
geom->getParameters(
id);
72 if (!
geom->contains(
id)) {
73 fwLog(
fwlog::kWarning) <<
"failed get geometry of SiPixelCluster with detid: " <<
id << std::endl;
77 float localPoint[3] = {
81 geom->localToGlobal(
id, localPoint, globalPoint);
83 pointSet->SetNextPoint(globalPoint[0], globalPoint[1], globalPoint[2]);
84 line->SetNextPoint(globalPoint[0], globalPoint[1], globalPoint[2]);
93 float localTop[3] = {0.0, 0.0, 0.0};
94 float localBottom[3] = {0.0, 0.0, 0.0};
99 float globalBottom[3];
100 geom->localToGlobal(
id, localTop, globalTop, localBottom, globalBottom);
102 lineSet->AddLine(globalTop[0], globalTop[1], globalTop[2], globalBottom[0], globalBottom[1], globalBottom[2]);