SHiP Geometry
SHiP experiment geometry implementation using GeoModel.
Loading...
Searching...
No Matches
SHiP::geometry::MuonShieldFactory Class Reference

Factory for the muon shield: the magnetised hadron stopper and the shield magnets M1-M7. More...

#include <MuonShieldFactory.h>

Collaboration diagram for SHiP::geometry::MuonShieldFactory:
[legend]

Classes

struct  CavitySection
 One step of the SND cavity, in the world frame: a box on the beam axis from zStart to zEnd. More...

Public Types

using MagnetData = MuonShieldMagnet

Public Member Functions

 MuonShieldFactory (Materials &materials)
 ~MuonShieldFactory ()=default
GeoPhysVol * build ()

Static Public Member Functions

static constexpr bool cuts (const CavitySection &section, const MagnetData &magnet)
 The cavity section overlaps the magnet's iron along z.
static constexpr bool hasSndCavity (const MagnetData &magnet)
 Some of the SND cavity lies in this magnet, so it is cut out.
static constexpr SubsystemDescriptor descriptor ()
 This subsystem's self-description (name, node, id, placement).

Static Public Attributes

static constexpr MagnetData k_hadronStopper
 Row 0: the magnetised hadron stopper, [0, 115, 163.5, 169].
static constexpr std::array< MagnetData, 7 > k_magnets
 Rows 1-7: the shield magnets M1-M7.
static constexpr auto s_zStart = k_hadronStopper.zStart
 The container spans the shield exactly: the hadron stopper's upstream face to M7's downstream face, as wide and tall as the widest and the tallest block.
static constexpr auto s_zEnd = k_magnets.back().zEnd()
static constexpr auto s_areaHalfX
static constexpr auto s_areaHalfY
static constexpr auto s_areaHalfZ = 0.5 * (s_zEnd - s_zStart)
static constexpr auto s_centreZ = 0.5 * (s_zStart + s_zEnd)
static constexpr auto k_sndCavity
 Cavity for the SND (veto, target, MGC, HCAL): the SND container's sections (NeutrinoDetectorFactory::k_sections) placed where the SND is.

Detailed Description

Factory for the muon shield: the magnetised hadron stopper and the shield magnets M1-M7.

Solid-block approximation of the FairShip TRY_2026 shield (integration layout 2026-0.1): the hadron stopper and each magnet are one solid iron box of the magnet's outer size, as FairShip builds them. The apertures and yoke shapes are not modelled (#125), and neither is the field, which comes from the field map.

The scattering and neutrino detector sits in the end of M5 and the whole of M6, as in FairShip, so those two magnets have a cavity for it cut out of their iron (k_sndCavity). The cavity is the SND container's shape at its placement, so it steps with the SND's sub-detectors and the iron comes up to each of them. The container has the same cavity cut out of it, so the SND, its sibling in the world, does not overlap it (Layout.h, kCutOuts). Only NeutrinoDetectorFactory's header is used, for its constants; the libraries do not depend on each other.

Member Typedef Documentation

◆ MagnetData

Constructor & Destructor Documentation

◆ MuonShieldFactory()

SHiP::geometry::MuonShieldFactory::MuonShieldFactory ( Materials & materials)
explicit

◆ ~MuonShieldFactory()

SHiP::geometry::MuonShieldFactory::~MuonShieldFactory ( )
default

Member Function Documentation

◆ build()

GeoPhysVol * SHiP::geometry::MuonShieldFactory::build ( )
nodiscard

◆ cuts()

constexpr bool SHiP::geometry::MuonShieldFactory::cuts ( const CavitySection & section,
const MagnetData & magnet )
inlinestaticnodiscardconstexpr

The cavity section overlaps the magnet's iron along z.

◆ descriptor()

constexpr SubsystemDescriptor SHiP::geometry::MuonShieldFactory::descriptor ( )
inlinestaticconstexpr

This subsystem's self-description (name, node, id, placement).

The container is centred between the hadron stopper's upstream face (2.14 m) and M7's downstream face (32.18 m), at 17.16 m.

◆ hasSndCavity()

constexpr bool SHiP::geometry::MuonShieldFactory::hasSndCavity ( const MagnetData & magnet)
inlinestaticnodiscardconstexpr

Some of the SND cavity lies in this magnet, so it is cut out.

Member Data Documentation

◆ k_hadronStopper

MagnetData SHiP::geometry::MuonShieldFactory::k_hadronStopper
staticconstexpr
Initial value:
{.name = "magn_absorb",
.zStart = 2140.0 * units::mm,
.halfX = 1635.0 * units::mm,
.halfY = 1690.0 * units::mm,
.halfZ = 1150.0 * units::mm}
constexpr auto mm
Definition Units.h:27

Row 0: the magnetised hadron stopper, [0, 115, 163.5, 169].

◆ k_magnets

std::array<MagnetData, 7> SHiP::geometry::MuonShieldFactory::k_magnets
staticconstexpr

Rows 1-7: the shield magnets M1-M7.

◆ k_sndCavity

auto SHiP::geometry::MuonShieldFactory::k_sndCavity
staticconstexpr
Initial value:
= [] {
using NDF = NeutrinoDetectorFactory;
static_assert(NDF::descriptor().x_mm == 0.0 && NDF::descriptor().y_mm == 0.0,
"the SND cavity assumes the SND is centred on the beam axis");
const auto origin = NDF::descriptor().z_mm * units::mm;
std::array<CavitySection, NDF::k_sections.size()> cavity{};
for (std::size_t i = 0; i < cavity.size(); ++i) {
const auto& s = NDF::k_sections.at(i);
cavity.at(i) = {.zStart = origin + s.zStart,
.zEnd = origin + s.zEnd,
.halfX = s.halfX,
.halfY = s.halfY};
}
return cavity;
}()
One step of the SND cavity, in the world frame: a box on the beam axis from zStart to zEnd.
Definition MuonShieldFactory.h:133

Cavity for the SND (veto, target, MGC, HCAL): the SND container's sections (NeutrinoDetectorFactory::k_sections) placed where the SND is.

The .cpp checks that it cuts M5 and M6 only and that the HCAL step is exactly M6.

◆ s_areaHalfX

auto SHiP::geometry::MuonShieldFactory::s_areaHalfX
staticconstexpr
Initial value:
= std::ranges::max(
k_hadronStopper.halfX, std::ranges::max(k_magnets, {}, &MagnetData::halfX).halfX)
static constexpr MagnetData k_hadronStopper
Row 0: the magnetised hadron stopper, [0, 115, 163.5, 169].
Definition MuonShieldFactory.h:67
static constexpr std::array< MagnetData, 7 > k_magnets
Rows 1-7: the shield magnets M1-M7.
Definition MuonShieldFactory.h:74
units::LengthMm halfX
Definition MuonShieldFactory.h:26

◆ s_areaHalfY

auto SHiP::geometry::MuonShieldFactory::s_areaHalfY
staticconstexpr
Initial value:
= std::ranges::max(
k_hadronStopper.halfY, std::ranges::max(k_magnets, {}, &MagnetData::halfY).halfY)
units::LengthMm halfY
Definition MuonShieldFactory.h:26

◆ s_areaHalfZ

auto SHiP::geometry::MuonShieldFactory::s_areaHalfZ = 0.5 * (s_zEnd - s_zStart)
staticconstexpr

◆ s_centreZ

auto SHiP::geometry::MuonShieldFactory::s_centreZ = 0.5 * (s_zStart + s_zEnd)
staticconstexpr

◆ s_zEnd

auto SHiP::geometry::MuonShieldFactory::s_zEnd = k_magnets.back().zEnd()
staticconstexpr

◆ s_zStart

auto SHiP::geometry::MuonShieldFactory::s_zStart = k_hadronStopper.zStart
staticconstexpr

The container spans the shield exactly: the hadron stopper's upstream face to M7's downstream face, as wide and tall as the widest and the tallest block.


The documentation for this class was generated from the following files: