You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
constdouble staveSizeY = mOuterRadius - mInnerRadius; // cm
301
-
constdouble staveSizeZ = mZLength; // cm
302
-
constdouble deltaForTilt = 0.5 * (std::sin(TMath::DegToRad() * mTiltAngle) * staveSizeX + std::cos(TMath::DegToRad() * mTiltAngle) * staveSizeY); // we increase the size of the layer to account for the tilt of the staves
303
-
constdouble radiusMax = std::sqrt(avgRadius * avgRadius + 0.25 * staveSizeX * staveSizeX + 0.25 * staveSizeY * staveSizeY + avgRadius * 2. * deltaForTilt); // we increase the outer radius to account for the tilt of the staves
304
-
constdouble radiusMin = std::sqrt(avgRadius * avgRadius + 0.25 * staveSizeX * staveSizeX + 0.25 * staveSizeY * staveSizeY - avgRadius * 2. * deltaForTilt); // we decrease the inner radius to account for the tilt of the staves
299
+
constdouble staveSizeX = mStaves.second; // cm, tangential stave size
300
+
constdouble staveSizeY = mOuterRadius - mInnerRadius; // cm, radial stave size
301
+
constdouble staveSizeZ = mZLength; // cm
302
+
303
+
// Build the mother layer tube from the exact inscribed/outscribed radii of a tilted stave rectangle.
0 commit comments