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