SHiP Geometry
SHiP experiment geometry implementation using GeoModel.
Loading...
Searching...
No Matches
SHiP::geometry::envelopes Namespace Reference

Reference subsystem envelopes, for compile-time placement checks. More...

Namespaces

namespace  detail

Classes

struct  Envelope

Typedefs

using LengthMm
 Spellings for struct members and function parameters.

Functions

template<std::size_t N>
constexpr Envelope hull (std::string_view name, const std::array< Envelope, N > &parts)
 Union of several consecutive envelopes, from the first start to the last end, with the largest transverse size of any of them.

Variables

constexpr Envelope kHadronStopper
constexpr std::array< Envelope, 5 > kMuonShield
constexpr Envelope kNeutrinoDetector
constexpr Envelope kUpstreamTagger
constexpr Envelope kDecayVolume
constexpr auto kSurroundTaggerThickness = 0.46 * detail::m
 Thickness of the SBT shell around the decay volume (the CSV lists it as a half-width/height of 0.46 m).
constexpr std::array< Envelope, 4 > kTrackerStations
constexpr Envelope kMagnet
constexpr Envelope kTimingDetector
constexpr std::array< Envelope, 3 > kCalorimeter

Detailed Description

Reference subsystem envelopes, for compile-time placement checks.

Hand transcription of subsystem_envelopes.csv, which in turn is taken from "SHiP preliminary infrastructure requirements, layout and integration at ECN3", EDMS 3309666 rev. 0.3, tables 3 and 4. Update both files together.

z is measured from the target front face (the SHiP global origin). Only the configurations this geometry builds (WARM muon shield, COMMON) are transcribed; the HYBRID rows are omitted. Empty CSV cells (the hadron stopper's transverse size) are 0 here and must not be used.

Typedef Documentation

◆ LengthMm

Spellings for struct members and function parameters.

Constants instead use static constexpr auto x = 1.0 * units::mm; and deduce their type.

Function Documentation

◆ hull()

template<std::size_t N>
Envelope SHiP::geometry::envelopes::hull ( std::string_view name,
const std::array< Envelope, N > & parts )
nodiscardconstexpr

Union of several consecutive envelopes, from the first start to the last end, with the largest transverse size of any of them.

Variable Documentation

◆ kCalorimeter

std::array<Envelope, 3> SHiP::geometry::envelopes::kCalorimeter
inlineconstexpr
Initial value:
{{
{.name="Split ECAL (front)", .zStart=96.87 * detail::m, .zEnd=97.07 * detail::m, .halfWidthUp=2.25 * detail::m, .halfWidthDown=2.25 * detail::m, .halfHeightUp=3.50 * detail::m, .halfHeightDown=3.50 * detail::m},
{.name="Split ECAL (back)", .zStart=98.07 * detail::m, .zEnd=98.67 * detail::m, .halfWidthUp=2.75 * detail::m, .halfWidthDown=2.75 * detail::m, .halfHeightUp=3.50 * detail::m, .halfHeightDown=3.50 * detail::m},
{.name="HCAL", .zStart=98.77 * detail::m, .zEnd=99.77 * detail::m, .halfWidthUp=3.00 * detail::m, .halfWidthDown=3.00 * detail::m, .halfHeightUp=3.50 * detail::m, .halfHeightDown=3.50 * detail::m},
}}
constexpr auto m
Definition Envelopes.h:47

◆ kDecayVolume

Envelope SHiP::geometry::envelopes::kDecayVolume
inlineconstexpr
Initial value:
{.name="Decay volume", .zStart=32.92 * detail::m, .zEnd=83.32 * detail::m,
.halfWidthUp=0.70 * detail::m, .halfWidthDown=2.20 * detail::m, .halfHeightUp=1.55 * detail::m, .halfHeightDown=3.20 * detail::m}

◆ kHadronStopper

Envelope SHiP::geometry::envelopes::kHadronStopper
inlineconstexpr
Initial value:
{.name="Magnetised hadron stopper", .zStart=2.14 * detail::m, .zEnd=4.44 * detail::m,
.halfWidthUp=0.0 * detail::m, .halfWidthDown=0.0 * detail::m, .halfHeightUp=0.0 * detail::m, .halfHeightDown=0.0 * detail::m}

◆ kMagnet

Envelope SHiP::geometry::envelopes::kMagnet
inlineconstexpr
Initial value:
{.name="Main spectrometer magnet", .zStart=87.07 * detail::m, .zEnd=92.07 * detail::m,
.halfWidthUp=3.25 * detail::m, .halfWidthDown=3.25 * detail::m, .halfHeightUp=4.30 * detail::m, .halfHeightDown=4.30 * detail::m}

◆ kMuonShield

std::array<Envelope, 5> SHiP::geometry::envelopes::kMuonShield
inlineconstexpr
Initial value:
{{
{.name="Muon shield 1 (NC)", .zStart=4.74 * detail::m, .zEnd=12.14 * detail::m, .halfWidthUp=2.10 * detail::m, .halfWidthDown=2.00 * detail::m, .halfHeightUp=1.60 * detail::m, .halfHeightDown=1.60 * detail::m},
{.name="Muon shield 2 (NC)", .zStart=12.24 * detail::m, .zEnd=19.24 * detail::m, .halfWidthUp=0.35 * detail::m, .halfWidthDown=1.15 * detail::m, .halfHeightUp=0.35 * detail::m, .halfHeightDown=1.55 * detail::m},
{.name="Muon shield 3 (NC)", .zStart=19.34 * detail::m, .zEnd=24.34 * detail::m, .halfWidthUp=0.10 * detail::m, .halfWidthDown=1.65 * detail::m, .halfHeightUp=1.95 * detail::m, .halfHeightDown=2.30 * detail::m},
{.name="Muon shield 4 (NC)", .zStart=24.44 * detail::m, .zEnd=26.12 * detail::m, .halfWidthUp=0.10 * detail::m, .halfWidthDown=1.65 * detail::m, .halfHeightUp=1.95 * detail::m, .halfHeightDown=2.30 * detail::m},
{.name="Muon shield 5 (NC)", .zStart=26.22 * detail::m, .zEnd=32.22 * detail::m, .halfWidthUp=0.50 * detail::m, .halfWidthDown=1.60 * detail::m, .halfHeightUp=0.10 * detail::m, .halfHeightDown=2.15 * detail::m},
}}

◆ kNeutrinoDetector

Envelope SHiP::geometry::envelopes::kNeutrinoDetector
inlineconstexpr
Initial value:
{.name="Scattering and neutrino detector", .zStart=26.40 * detail::m, .zEnd=31.50 * detail::m,
.halfWidthUp=0.30 * detail::m, .halfWidthDown=0.40 * detail::m, .halfHeightUp=0.30 * detail::m, .halfHeightDown=0.40 * detail::m}

◆ kSurroundTaggerThickness

auto SHiP::geometry::envelopes::kSurroundTaggerThickness = 0.46 * detail::m
inlineconstexpr

Thickness of the SBT shell around the decay volume (the CSV lists it as a half-width/height of 0.46 m).

◆ kTimingDetector

Envelope SHiP::geometry::envelopes::kTimingDetector
inlineconstexpr
Initial value:
{.name="Timing detector", .zStart=95.82 * detail::m, .zEnd=96.32 * detail::m,
.halfWidthUp=2.75 * detail::m, .halfWidthDown=2.75 * detail::m, .halfHeightUp=3.25 * detail::m, .halfHeightDown=3.25 * detail::m}

◆ kTrackerStations

std::array<Envelope, 4> SHiP::geometry::envelopes::kTrackerStations
inlineconstexpr
Initial value:
{{
{.name="Straw Tracker station 1", .zStart=83.57 * detail::m, .zEnd=84.57 * detail::m, .halfWidthUp=3.00 * detail::m, .halfWidthDown=3.00 * detail::m, .halfHeightUp=3.50 * detail::m, .halfHeightDown=3.50 * detail::m},
{.name="Straw Tracker station 2", .zStart=85.57 * detail::m, .zEnd=86.57 * detail::m, .halfWidthUp=3.00 * detail::m, .halfWidthDown=3.00 * detail::m, .halfHeightUp=3.50 * detail::m, .halfHeightDown=3.50 * detail::m},
{.name="Straw Tracker station 3", .zStart=92.57 * detail::m, .zEnd=93.57 * detail::m, .halfWidthUp=3.00 * detail::m, .halfWidthDown=3.00 * detail::m, .halfHeightUp=3.50 * detail::m, .halfHeightDown=3.50 * detail::m},
{.name="Straw Tracker station 4", .zStart=94.57 * detail::m, .zEnd=95.57 * detail::m, .halfWidthUp=3.00 * detail::m, .halfWidthDown=3.00 * detail::m, .halfHeightUp=3.50 * detail::m, .halfHeightDown=3.50 * detail::m},
}}

◆ kUpstreamTagger

Envelope SHiP::geometry::envelopes::kUpstreamTagger
inlineconstexpr
Initial value:
{.name="Upstream background tagger", .zStart=32.52 * detail::m, .zEnd=32.92 * detail::m,
.halfWidthUp=0.75 * detail::m, .halfWidthDown=0.75 * detail::m, .halfHeightUp=1.60 * detail::m, .halfHeightDown=1.60 * detail::m}