1 #include "TEveGeoNode.h"
2 #include "TEveStraightLineSet.h"
26 TEveElement& oItemHolder,
33 TEveElement& oItemHolder,
37 unsigned int rawid = me0Id.
rawId();
41 if (!
geom->contains(rawid)) {
42 fwLog(
fwlog::kError) <<
"failed to get geometry of ME0 roll with detid: " << rawid << std::endl;
46 TEveStraightLineSet* recHitSet =
new TEveStraightLineSet;
47 recHitSet->SetLineWidth(3);
50 TEveGeoShape* shape =
geom->getEveShape(rawid);
51 shape->SetMainTransparency(75);
52 shape->SetMainColor(
item()->defaultDisplayProperties().color());
53 recHitSet->AddElement(shape);
78 geom->localToGlobal(*det, localU1, globalU1);
79 geom->localToGlobal(*det, localU2, globalU2);
80 geom->localToGlobal(*det, localV1, globalV1);
81 geom->localToGlobal(*det, localV2, globalV2);
83 recHitSet->AddLine(globalU1[0], globalU1[1], globalU1[2], globalU2[0], globalU2[1], globalU2[2]);
85 recHitSet->AddLine(globalV1[0], globalV1[1], globalV1[2], globalV2[0], globalV2[1], globalV2[2]);