Skip to content

Commit 9934f75

Browse files
sawenzelclaude
andcommitted
Build twelve TRD chamber shapes instead of thirty
Co-Authored-By: Claude Opus 5 <noreply@anthropic.com>
1 parent 75487ac commit 9934f75

2 files changed

Lines changed: 114 additions & 101 deletions

File tree

Detectors/TRD/base/include/TRDBase/Geometry.h

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -49,6 +49,11 @@ class Geometry : public GeometryBase, public o2::detectors::DetMatrixCacheIndire
4949
void fillMatrixCache(int mask) override;
5050

5151
private:
52+
/// Index of the chamber shape a (layer, stack) uses, 0..11. The chamber length is the
53+
/// same for every stack except the middle one, so the thirty chambers of a supermodule
54+
/// are built from twelve distinct sets of volumes.
55+
static int shapeClass(int layer, int stack) { return layer + constants::NLAYER * (stack == 2 ? 1 : 0); }
56+
5257
void createVolumes(std::vector<int> const& idtmed);
5358
void assembleChamber(int ilayer, int istack);
5459
void createFrame(std::vector<int> const& idtmed);

0 commit comments

Comments
 (0)