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

Factory for the Scattering and Neutrino Detector (SND). More...

#include <NeutrinoDetectorFactory.h>

Classes

struct  Section
 One step of the container along the beam, in the container frame: a box from zStart to zEnd holding one sub-detector, 1 mm wider than it on every side. More...

Public Member Functions

 NeutrinoDetectorFactory (Materials &materials)
 Construct the factory against the shared materials catalogue.
 ~NeutrinoDetectorFactory ()=default
 Defaulted destructor.
GeoPhysVol * build ()
 Build the SND geometry; returns the air container.

Static Public Member Functions

static constexpr SubsystemDescriptor descriptor ()
 This subsystem's self-description (name, node, id, placement).

Static Public Attributes

static constexpr std::array< Section, 4 > k_sections
 The container is the union of these boxes, so it follows the sub-detectors and the muon-shield iron can come up to each of them.
static constexpr auto s_halfX = 301.25 * units::mm
 Bounding box of the sections: the HCAL's cross-section and the full 5.05 m length.
static constexpr auto s_halfY = 301.25 * units::mm
static constexpr auto s_halfZ = 2525.0 * units::mm

Detailed Description

Factory for the Scattering and Neutrino Detector (SND).

Builds the SND as a single air container holding four sub-detectors in sequence along the beam (upstream → downstream):

  1. Veto — an upstream PVT scintillator-bar station: three planes of seven bars (two horizontal, staggered in Y; one vertical).
  2. NuTarget (HGC) — a silicon/tungsten sampling target: 120 layers, each a tungsten absorber plate followed by an X and a Y silicon tracking plane (400 mm reference plate, 11.3 mm pitch). 3 Timing layers are inserted at 1/3, 2/3 and 3/3 of the target depth.
  3. MGC — a medium-granularity calorimeter: 10 layers, each a tungsten absorber plate followed by a silicon station.
  4. HCAL (MTC) — a hadronic calorimeter: three transverse sections (60/60/60 cm), 14 layers each; every layer is an iron absorber, an X and a Y scintillating-fibre plane, and a polystyrene tile grid.

The geometry follows the repo factory idiom (calorimeter / straw tracker): a /SHiP/neutrino_detector air container filled with hierarchically named GeoPhysVol children that reuse shared GeoLogVols; sensitive-detector assignment is done downstream by name.

Each 0.5 mm scintillating-fibre plane is built from its individual fibres, two staggered sub-layers of 0.25 mm fibres. To keep the node count bounded, the O(300k) identical fibres are not placed one node at a time: a single shared fibre GeoPhysVol is multiply placed per sub-layer via a GeoSerialTransformer, so each plane costs O(1) tree nodes regardless of fibre count. The X/Y plane names are preserved for readout.

The container follows the sub-detectors in four transverse steps (veto, target, MGC, HCAL; see k_sections), within the SND envelope's cross-section (subsystem_envelopes.csv: half-width/height up to 0.40 m), and is exactly as long as its content, 5.05 m. Placement is handled by DetectorBuilder.

Constructor & Destructor Documentation

◆ NeutrinoDetectorFactory()

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

Construct the factory against the shared materials catalogue.

◆ ~NeutrinoDetectorFactory()

SHiP::geometry::NeutrinoDetectorFactory::~NeutrinoDetectorFactory ( )
default

Defaulted destructor.

Member Function Documentation

◆ build()

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

Build the SND geometry; returns the air container.

Resolve materials, create the air container, lay out the veto, target, MGC and HCAL in beam order (flush with the downstream end), and return it.

◆ descriptor()

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

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

Z: 22.94 to 27.99 m, so the container is centred at z = 25.465 m. As in FairShip's TRY_2026 layout, the SND sits in the end of muon-shield magnet M5 and the whole of M6: the HCAL fills M6 exactly. Those magnets have a cavity of the container's shape cut out of their iron (MuonShieldFactory::k_sndCavity, derived from k_sections and this placement). This is 3.46 m upstream of the EDMS envelope (26.40-31.50 m), which follows the WARM shield layout (Layout.h).

Member Data Documentation

◆ k_sections

std::array<Section, 4> SHiP::geometry::NeutrinoDetectorFactory::k_sections
staticconstexpr
Initial value:
{{
{.name = "veto",
.zStart = -2525.0 * units::mm,
.zEnd = -2485.0 * units::mm,
.halfX = 211.0 * units::mm,
.halfY = 220.0 * units::mm},
{.name = "target",
.zStart = -2485.0 * units::mm,
.zEnd = -1045.0 * units::mm,
.halfX = 201.0 * units::mm,
.halfY = 201.0 * units::mm},
{.name = "mgc",
.zStart = -1045.0 * units::mm,
.zEnd = -835.0 * units::mm,
.halfX = 251.0 * units::mm,
.halfY = 251.0 * units::mm},
{.name = "hcal",
.zStart = -835.0 * units::mm,
.zEnd = 2525.0 * units::mm,
.halfX = 301.25 * units::mm,
.halfY = 301.25 * units::mm},
}}
constexpr auto mm
Definition Units.h:27

The container is the union of these boxes, so it follows the sub-detectors and the muon-shield iron can come up to each of them.

They run without gaps over the whole container, which is exactly as long as its content. The gaps between sub-detectors go to the narrower section beside them. The .cpp checks that each sub-detector fits its section.

◆ s_halfX

auto SHiP::geometry::NeutrinoDetectorFactory::s_halfX = 301.25 * units::mm
staticconstexpr

Bounding box of the sections: the HCAL's cross-section and the full 5.05 m length.

◆ s_halfY

auto SHiP::geometry::NeutrinoDetectorFactory::s_halfY = 301.25 * units::mm
staticconstexpr

◆ s_halfZ

auto SHiP::geometry::NeutrinoDetectorFactory::s_halfZ = 2525.0 * units::mm
staticconstexpr

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