![]() |
SHiP Geometry
SHiP experiment geometry implementation using GeoModel.
|
Where each subsystem container sits in the world volume. More...
Namespaces | |
| namespace | detail |
Classes | |
| struct | Slot |
| struct | KnownOverlap |
| Two containers that overlap, although Geant4 does not support overlapping siblings. More... | |
| struct | CutOut |
| A container with a cavity of another container's shape cut out of it. More... | |
Typedefs | |
| using | LengthMm |
| Spellings for struct members and function parameters. | |
Functions | |
| template<typename Factory> | |
| constexpr Slot | slotOf (LengthMm halfX, LengthMm halfY, LengthMm halfZ) |
| A factory's slot: its registered placement (descriptor()) together with its container half-lengths. | |
| template<std::size_t N> | |
| constexpr std::size_t | firstOutOfOrder (const std::array< Slot, N > &slots) |
| Centres never decrease along the slot list. | |
| template<std::size_t M> | |
| constexpr bool | isKnownOverlap (const std::array< KnownOverlap, M > &known, const Slot &a, const Slot &b) |
The pair is listed in known and overlaps no further than its region. | |
| template<std::size_t K> | |
| constexpr bool | isCutOut (const std::array< CutOut, K > &cutOuts, const Slot &a, const Slot &b) |
One of the pair has the other's shape cut out of it (listed in cutOuts), and the other lies within that cavity. | |
| template<std::size_t N, std::size_t M = kKnownOverlaps.size(), std::size_t K = kCutOuts.size()> | |
| constexpr std::size_t | firstUnexpectedOverlap (const std::array< Slot, N > &slots, const std::array< KnownOverlap, M > &known=kKnownOverlaps, const std::array< CutOut, K > &cutOuts=kCutOuts) |
| Index of the first slot that overlaps a later one, unless the pair is a known overlap that has not grown, or one sits in a cavity cut out of the other; npos if there is none. | |
| constexpr bool | fitsEnvelopeZ (const Slot &slot, const envelopes::Envelope &env, LengthMm tol=1e-6 *detail::mm) |
Container lies inside the envelope along the beam (with tol of slack, for values that are equal on paper but rounded differently). | |
| constexpr bool | fitsEnvelopeXY (const Slot &slot, const envelopes::Envelope &env, LengthMm tolX=detail::zero, LengthMm tolY=detail::zero) |
Container stays inside the envelope's largest transverse size (with tolX and tolY of slack). | |
| constexpr bool | isInCavity (const Slot &slot) |
| The container lies within the halls taken together: the muon shield runs from TCC8 across the step into ECN3, and the magnet sits partly in the yoke pit. | |
| constexpr checks::Span | trackerStation (LengthMm centreZ) |
| Absolute z-span of one tracker station. | |
Variables | |
| constexpr Slot | kTarget |
| constexpr Slot | kMuonShield |
| constexpr Slot | kNeutrinoDetector |
| z 22.94-27.99 m, in the end of muon-shield magnet M5 and the whole of M6 (FairShip TRY_2026). | |
| constexpr Slot | kUpstreamTagger |
| constexpr Slot | kDecayVolume |
| constexpr Slot | kTrackers |
| The factory positions its stations relative to s_containerCentreZ, so the container goes there and the stations land on their absolute z. | |
| constexpr Slot | kMagnet |
| constexpr Slot | kTimingDetector |
| constexpr Slot | kCalorimeter |
| constexpr std::array | kSlots |
| All subsystems, in placement order (upstream to downstream). | |
| constexpr std::array | kKnownOverlaps |
| constexpr std::array | kCutOuts |
| The SND sits in a cavity of the muon-shield container (#117). | |
| constexpr checks::Box | kWorld |
| The world volume built by CavernFactory, centred on the origin. | |
| constexpr std::array | kCavities |
| The halls CavernFactory cuts out of the rock, in the world frame. | |
| constexpr auto | kTrackersIntoFloor = 66.0 * detail::mm |
| constexpr auto | kCalorimeterIntoFloor = 136.0 * detail::mm |
| constexpr auto | kNeutrinoDetectorEarlyStart = 3461.0 * detail::mm |
| constexpr auto | kUpstreamTaggerExcessX = 1450.0 * detail::mm |
| constexpr auto | kUpstreamTaggerExcessY = 1600.0 * detail::mm |
| constexpr auto | kTimingDetectorEarlyStart = 168.0 * detail::mm |
| constexpr std::array | kTrackerStationZ |
Where each subsystem container sits in the world volume.
Each slot pairs a subsystem's registered placement (its descriptor(), which the assembler places it from) with its container half-lengths. The static_asserts below check the layout as a whole: ordering along the beam, no overlaps beyond the known ones, everything inside the world, and every container inside its EDMS envelope (Envelopes.h). Container half-lengths are read from the factories, so resizing a container is checked here as well. Known deviations are bounded: each fails the build both when it is fixed and when it gets worse.
Coordinates are in the world frame, whose origin is the front face of the first target disk.
Spellings for struct members and function parameters.
Constants instead use static constexpr auto x = 1.0 * units::mm; and deduce their type.
|
nodiscardconstexpr |
Centres never decrease along the slot list.
|
nodiscardconstexpr |
Index of the first slot that overlaps a later one, unless the pair is a known overlap that has not grown, or one sits in a cavity cut out of the other; npos if there is none.
|
nodiscardconstexpr |
Container stays inside the envelope's largest transverse size (with tolX and tolY of slack).
|
nodiscardconstexpr |
Container lies inside the envelope along the beam (with tol of slack, for values that are equal on paper but rounded differently).
|
nodiscardconstexpr |
One of the pair has the other's shape cut out of it (listed in cutOuts), and the other lies within that cavity.
|
nodiscardconstexpr |
The container lies within the halls taken together: the muon shield runs from TCC8 across the step into ECN3, and the magnet sits partly in the yoke pit.
|
nodiscardconstexpr |
The pair is listed in known and overlaps no further than its region.
|
nodiscardconstexpr |
A factory's slot: its registered placement (descriptor()) together with its container half-lengths.
|
nodiscardconstexpr |
Absolute z-span of one tracker station.
|
inlineconstexpr |
|
inlineconstexpr |
|
inlineconstexpr |
The halls CavernFactory cuts out of the rock, in the world frame.
The subsystems are siblings of the rock in the world, so each must sit in a hall, or it overlaps solid rock.
|
inlineconstexpr |
The SND sits in a cavity of the muon-shield container (#117).
|
inlineconstexpr |
|
inlineconstexpr |
|
inlineconstexpr |
|
inlineconstexpr |
|
inlineconstexpr |
z 22.94-27.99 m, in the end of muon-shield magnet M5 and the whole of M6 (FairShip TRY_2026).
Those magnets have a cavity of the SND container's stepped shape cut out of their iron (MuonShieldFactory::k_sndCavity), and so does the muon-shield container, so the two containers do not overlap (see kCutOuts). The slot is the container's bounding box.
|
inlineconstexpr |
|
inlineconstexpr |
All subsystems, in placement order (upstream to downstream).
|
inlineconstexpr |
|
inlineconstexpr |
|
inlineconstexpr |
|
inlineconstexpr |
The factory positions its stations relative to s_containerCentreZ, so the container goes there and the stations land on their absolute z.
The container spans the magnet (stations 1-2 upstream, 3-4 downstream).
|
inlineconstexpr |
|
inlineconstexpr |
|
inlineconstexpr |
|
inlineconstexpr |
|
inlineconstexpr |
|
inlineconstexpr |
The world volume built by CavernFactory, centred on the origin.