13 #include "TEveStraightLineSet.h"
14 #include "TEveCompound.h"
15 #include "TEveGeoNode.h"
50 unsigned int rawid = (*dri).first.rawId();
53 if (!
geom->contains(rawid)) {
54 fwLog(
fwlog::kWarning) <<
"Failed to get geometry of RPC roll with detid: " << rawid << std::endl;
69 TEveStraightLineSet* stripDigiSet =
new TEveStraightLineSet;
70 stripDigiSet->SetLineWidth(3);
73 int strip = (*dit).strip();
74 float centreOfStrip = (
strip - 0.5) * pitch +
offset;
76 float localPointTop[3] = {centreOfStrip, halfStripLength, 0.0};
78 float localPointBottom[3] = {centreOfStrip, -halfStripLength, 0.0};
80 float globalPointTop[3];
81 float globalPointBottom[3];
83 geom->localToGlobal(rawid, localPointTop, globalPointTop, localPointBottom, globalPointBottom);
85 stripDigiSet->AddLine(globalPointTop[0],
90 globalPointBottom[2]);