11 #include "TEveGeoNode.h"
12 #include "TEveStraightLineSet.h"
37 TEveElement& oItemHolder,
44 TEveElement& oItemHolder,
48 unsigned int rawid = rpcId.
rawId();
52 if (!
geom->contains(rawid)) {
53 fwLog(
fwlog::kError) <<
"failed to get geometry of RPC roll with detid: " << rawid << std::endl;
57 TEveStraightLineSet* recHitSet =
new TEveStraightLineSet;
58 recHitSet->SetLineWidth(3);
61 TEveGeoShape* shape =
geom->getEveShape(rawid);
62 shape->SetMainTransparency(75);
63 shape->SetMainColor(
item()->defaultDisplayProperties().color());
64 recHitSet->AddElement(shape);
89 geom->localToGlobal(*det, localU1, globalU1);
90 geom->localToGlobal(*det, localU2, globalU2);
91 geom->localToGlobal(*det, localV1, globalV1);
92 geom->localToGlobal(*det, localV2, globalV2);
94 recHitSet->AddLine(globalU1[0], globalU1[1], globalU1[2], globalU2[0], globalU2[1], globalU2[2]);
96 recHitSet->AddLine(globalV1[0], globalV1[1], globalV1[2], globalV2[0], globalV2[1], globalV2[2]);