74 : m_wheelTemplateName(iConfig.getParameter<
std::
string>(
"wheelTemplateName")) {}
85 edm::FileInPath fip_BEGINNING(
"Alignment/MuonAlignment/data/wheel_template.svg_BEGINNING");
86 std::ifstream in_BEGINNING(fip_BEGINNING.
fullPath().c_str());
87 edm::FileInPath fip_END(
"Alignment/MuonAlignment/data/wheel_template.svg_END");
88 std::ifstream in_END(fip_END.fullPath().c_str());
90 const double height = 45.;
93 while (in_BEGINNING.good()) {
94 char c = (char)in_BEGINNING.get();
95 if (in_BEGINNING.good())
103 for (
int sector = 1; sector <= numSectors; sector++) {
112 double y = -height / 2.;
116 double phi = atan2(direction.
y(), direction.
x());
119 double tx =
chamber->surface().position().x();
120 double ty =
chamber->surface().position().y();
122 out <<
" <rect id=\"MB_" <<
station <<
"_" << sector <<
"\" x=\"" <<
x <<
"\" y=\"" <<
y <<
"\" width=\""
123 <<
width <<
"\" height=\"" << height <<
"\" transform=\"translate(" << tx <<
", " << ty <<
") rotate("
125 <<
")\" style=\"fill:#e1e1e1;fill-opacity:1;stroke:#000000;stroke-width:5.0;stroke-dasharray:1, "
126 "1;stroke-dashoffset:0\" />"
131 while (in_END.good()) {
132 char c = (char)in_END.get();