13 #include "TEveStraightLineSet.h"
14 #include "TEveCompound.h"
45 double yAlignmentFrame = 3.49;
46 double alignmentPinToFirstWire;
50 alignmentPinToFirstWire = 1.065;
51 yAlignmentFrame = 0.0;
55 alignmentPinToFirstWire = 2.85;
59 alignmentPinToFirstWire = 3.04;
62 alignmentPinToFirstWire = 2.84;
65 alignmentPinToFirstWire = 2.87;
67 return (yAlignmentFrame - length) + alignmentPinToFirstWire;
107 const CSCDetId& cscDetId = (*dri).first;
108 unsigned int rawid = cscDetId.
rawId();
111 if (!
geom->contains(rawid)) {
112 fwLog(
fwlog::kWarning) <<
"Failed to get geometry of CSC chamber with detid: " << rawid << std::endl;
120 const float* shape =
geom->getShapePars(rawid);
122 float length = shape[4];
123 float topWidth = shape[2];
124 float bottomWidth = shape[1];
136 TEveStraightLineSet* wireDigiSet =
new TEveStraightLineSet();
137 wireDigiSet->SetLineWidth(3);
140 int wireGroup = (*dit).getWireGroup();
141 float yOfWire = yOfFirstWire + ((wireGroup - 1) * wireSpacing);
142 float wireLength = yOfWire * (topWidth - bottomWidth) / length;
143 wireLength += bottomWidth * 2.0;
145 float localPointLeft[3] = {static_cast<float>(-wireLength * 0.5), yOfWire, static_cast<float>(0.0)};
149 float localPointRight[3] = {
150 static_cast<float>(wireLength * 0.5), yOfWire, static_cast<float>(0.0)
154 float globalPointLeft[3];
155 float globalPointRight[3];
157 geom->localToGlobal(rawid, localPointLeft, globalPointLeft, localPointRight, globalPointRight);
159 wireDigiSet->AddLine(globalPointLeft[0],
164 globalPointRight[2]);