Description: <one line="" class="" summary>="">
Implementation: <Notes on="" implementation>="">
Definition at line 46 of file MuonGeometrySVGTemplate.cc.
Implements edm::EDAnalyzer.
Definition at line 79 of file MuonGeometrySVGTemplate.cc.
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();
References AlignableNavigator::alignableFromDetId(), c, relativeConstraints::chamber, edm::FileInPath::fullPath(), triggerObjects_cff::id, M_PI, m_wheelTemplateName, CSCOverlapsAlignmentAlgorithm_cff::muonAlignment, MillePedeFileConverter_cfg::out, phi, relativeConstraints::station, ApeEstimator_cff::width, x, PV3DBase< T, PVType, FrameType >::x(), y, and PV3DBase< T, PVType, FrameType >::y().