Skip to content
Snippets Groups Projects
Commit 9933633d authored by Dave Casper's avatar Dave Casper
Browse files

Correct sign error in rotation

parent 931d802f
No related branches found
No related tags found
1 merge request!33Simulation, persistence and display of SCT hits
...@@ -109,7 +109,7 @@ SCT_Plane::build(SCT_Identifier id) ...@@ -109,7 +109,7 @@ SCT_Plane::build(SCT_Identifier id)
plane->add(new GeoIdentifierTag(side)); plane->add(new GeoIdentifierTag(side));
int iz = -1 + 2 * side; int iz = -1 + 2 * side;
GeoAlignableTransform* transform = new GeoAlignableTransform(GeoTrf::Translate3D(0.0, 0.0, iz * m_sideHalfPitch) * GeoAlignableTransform* transform = new GeoAlignableTransform(GeoTrf::Translate3D(0.0, 0.0, iz * m_sideHalfPitch) *
GeoTrf::RotateY3D(iz * 90 * Gaudi::Units::deg)); GeoTrf::RotateY3D(-iz * 90 * Gaudi::Units::deg));
plane->add(transform); plane->add(transform);
GeoVPhysVol* halfPlanePV = m_halfPlane->build(id, -iz); GeoVPhysVol* halfPlanePV = m_halfPlane->build(id, -iz);
plane->add(halfPlanePV); plane->add(halfPlanePV);
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment