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