13 #include "TEveGeoNode.h"
14 #include "TEveStraightLineSet.h"
39 TEveElement& oItemHolder,
46 TEveElement& oItemHolder,
50 unsigned int rawid = gemId.
rawId();
54 if (!
geom->contains(rawid)) {
55 fwLog(
fwlog::kError) <<
"failed to get geometry of GEM roll with detid: " << rawid << std::endl;
59 TEveStraightLineSet* recHitSet =
new TEveStraightLineSet;
60 recHitSet->SetLineWidth(3);
63 TEveGeoShape* shape =
geom->getEveShape(rawid);
64 shape->SetMainTransparency(75);
65 shape->SetMainColor(
item()->defaultDisplayProperties().color());
66 recHitSet->AddElement(shape);
91 geom->localToGlobal(*det, localU1, globalU1);
92 geom->localToGlobal(*det, localU2, globalU2);
93 geom->localToGlobal(*det, localV1, globalV1);
94 geom->localToGlobal(*det, localV2, globalV2);
96 recHitSet->AddLine(globalU1[0], globalU1[1], globalU1[2], globalU2[0], globalU2[1], globalU2[2]);
98 recHitSet->AddLine(globalV1[0], globalV1[1], globalV1[2], globalV2[0], globalV2[1], globalV2[2]);