![]() |
SHiP Geometry
SHiP experiment geometry implementation using GeoModel.
|
Directories | |
| include | |
| src | |
Files | |
| test_decayvolume.cpp | |
Decay region and Surround Background Tagger (SBT).
The DecayVolume subsystem models the SHiP decay region together with the Surround Background Tagger (SBT) that wraps it. The SBT is a 50 m rectangular frustum (expanding from 2.0 × 3.0 m at the entrance to 4.0 × 6.0 m at the exit) made of two parts:
The decay region itself is helium, but it is not sized by a fixed inset. It is derived from where the SBT material actually sits (see SBTEnvelope.h): the innermost surfaces — the side and top/bottom scintillator containers, and the top/bottom longitudinal beam inner flanges, which hang below the sensor plane into the decay region — bound it directly. Because that inner surface is not linear in Z (the side containers present a flat outer face over the first part of each sub-frustum to clear the columns), the helium is built as a stack of GeoTraps, two per sub-frustum, each strictly inscribed inside the material minus a small clearance. This cannot overlap the structure or the sensors.
Everything is held in an air container (the SBT is part of the experiment's support frame, not a sealed vessel). The previous monolithic aluminium box vessel has been removed. The structure and sensor geometry is a faithful port of the standalone SBT GeoModel builders; all pieces are placed flat (as direct children of the container), which the clash-avoidance logic relies on.
The tree above is by name, not by containment: .../sbt/... is a prefix on the volume names, not a physical grouping volume. Every volume — helium slabs, structure pieces and sensor pieces alike — is a direct child of /SHiP/decay_volume (the clash-avoidance logic relies on this flat layout, and test_decayvolume asserts all 3712 are direct children with no grandchildren).
Position in world: z = 58120 mm (centre), unchanged. The 50 m SBT is centred on the container origin (entrance face at z = −25000 mm in the local frame).
| Group | Count | Notes |
|---|---|---|
| Vertical columns | 66 | 11 rows × 2 sides × 3 boxes |
| Corner beams | 120 | 4 corners × 10 segments × 3 boxes (inclined) |
| Longitudinal beams | 60 | 1/face (sub-frustum 0–4), 2/face (5–9); flanges only |
| Cross-beams | 66 | 11 rows × 2 faces × 3 boxes |
Two inscribed slabs per sub-frustum (10 sub-frusta): the slab boundaries fall at each sub-frustum entrance and at the side-container flat-piece edge, so the slab faces follow the sawtooth inner surface without cutting into it.
130 containers (80 side + 50 top/bottom), each Z-split into 2 pieces at the column front-flange edge for clash avoidance. Each piece is 7 aluminium walls + 6 LAB cells (13 GeoTraps): 130 × 2 × 13 = 3380. Cells are GeoFullPhysVol (sensitive); walls are GeoPhysVol.
| Material | Density | Usage |
|---|---|---|
| Air | 1.205 mg/cm³ | Container |
| Iron | 7.874 g/cm³ | H-beam supporting structure |
| Aluminium | 2.70 g/cm³ | Sensor container walls |
| LAB | 0.867 g/cm³ | Scintillator cells (new) |
| PressurisedHe90 | 2.12 mg/cm³ | Central decay region |
LAB (linear alkylbenzene, C 87.41% / H 12.59% by mass) was added to the central Materials catalogue for the SBT cells.
The SBT geometry is defined by SBTParams in SBTConstants.h (namespace SHiP::geometry::sbt): the frustum envelope, sub-frustum count, H-beam cross-section, sensor container/cell parameters, helium clearance and the SBT entrance Z. kSBT is the shipped instance, and every placement primitive — the ones both builders and the helium derivation share — takes an SBTParams defaulting to it.
Grouping them into a struct rather than leaving them as loose constants is what lets the tests build the SBT at parameters other than the shipped ones, which is the only way to check that the helium derivation is correct in general rather than correct at today's numbers. Invariants are enforced by static_assert, so an impossible SBT fails the build.
test_decayvolume checks the container envelope, the 312 structure GeoBoxes, and the 3400 GeoTrap children (20 helium slabs + 3380 sensors) for a total of 3712 direct children. Beyond the counts, it runs an exact separating-axis overlap test between every helium slab and every SBT volume in the built tree, asserting the helium neither protrudes into any material nor leaves a margin beyond the configured clearance.
That check then runs again across a sweep of fourteen perturbed SBTParams — steeper and flatter tapers, wider flanges, taller beams, more and fewer sub-frusta, a non-zero helium clearance — each rebuilding the structure, the sensors and the helium from scratch. A single configuration only shows the arithmetic is right at one point; the sweep is what catches an envelope that has stopped modelling what the builders actually place. A companion case pins the configurations that must not build, via the same leavesDecayRegion() predicate the shipped static_assert uses.