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++) {
111 double x = -width / 2.;
112 double y = -height / 2.;
116 double phi = atan2(direction.
y(), direction.
x());
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();
align::Scalar width() const
Local3DVector LocalVector
MuonGeometrySVGTemplate(const edm::ParameterSet &iConfig)
AlignableNavigator * getAlignableNavigator()
#define DEFINE_FWK_MODULE(type)
const AlignableSurface & surface() const
Return the Surface (global position and orientation) of the object.
std::string m_wheelTemplateName
void analyze(const edm::Event &, const edm::EventSetup &iConfig) override
align::GlobalPoints toGlobal(const align::LocalPoints &) const
Return in global coord given a set of local points.
std::string fullPath() const
~MuonGeometrySVGTemplate() override
const PositionType & position() const
AlignableDetOrUnitPtr alignableFromDetId(const DetId &detid)
Returns AlignableDetOrUnitPtr corresponding to given DetId.