15 #include "TEveStraightLineSet.h"
16 #include "TEveCompound.h"
17 #include "TEveGeoNode.h"
55 unsigned int rawid = (*dri).first.rawId();
58 if (!
geom->contains(rawid)) {
59 fwLog(
fwlog::kWarning) <<
"Failed to get geometry of GEM roll with detid: " << rawid << std::endl;
74 TEveStraightLineSet* stripDigiSet =
new TEveStraightLineSet;
75 stripDigiSet->SetLineWidth(3);
78 int strip = (*dit).strip();
79 float topOfStrip = (
strip - 0.5) * topPitch - 0.5 *
nStrips * topPitch;
80 float bottomOfStrip = (
strip - 0.5) * bottomPitch - 0.5 *
nStrips * bottomPitch;
82 float localPointTop[3] = {topOfStrip, halfStripLength, 0.0};
84 float localPointBottom[3] = {bottomOfStrip, -halfStripLength, 0.0};
86 float globalPointTop[3];
87 float globalPointBottom[3];
89 geom->localToGlobal(rawid, localPointTop, globalPointTop, localPointBottom, globalPointBottom);
91 stripDigiSet->AddLine(globalPointTop[0],
96 globalPointBottom[2]);
131 unsigned int rawid = (*dri).first.rawId();
134 if (!
geom->contains(rawid)) {
135 fwLog(
fwlog::kWarning) <<
"Failed to get geometry of GEM roll with detid: " << rawid << std::endl;
151 TEveStraightLineSet* stripDigiSet =
new TEveStraightLineSet;
152 stripDigiSet->SetLineWidth(3 *
nStrips / nPads);
155 int pad = (*dit).pad();
156 float topOfStrip = (pad - 0.5) * topPitch - 0.5 * topPitch * nPads;
157 float bottomOfStrip = (pad - 0.5) * bottomPitch - 0.5 * bottomPitch * nPads;
159 float localPointTop[3] = {topOfStrip, halfStripLength, 0.0};
161 float localPointBottom[3] = {bottomOfStrip, -halfStripLength, 0.0};
163 float globalPointTop[3];
164 float globalPointBottom[3];
166 geom->localToGlobal(rawid, localPointTop, globalPointTop, localPointBottom, globalPointBottom);
168 stripDigiSet->AddLine(globalPointTop[0],
171 globalPointBottom[0],
172 globalPointBottom[1],
173 globalPointBottom[2]);