SHiP Geometry
SHiP experiment geometry implementation using GeoModel.
Loading...
Searching...
No Matches
UpstreamTaggerFactory.h
Go to the documentation of this file.
1// SPDX-License-Identifier: LGPL-3.0-or-later
2// Copyright (C) CERN for the benefit of the SHiP Collaboration
3
4#pragma once
5
8
9class GeoVPhysVol;
10
11namespace SHiP::geometry {
12
13class Materials;
14
55 public:
56 explicit UpstreamTaggerFactory(Materials& materials);
58
64 static constexpr SubsystemDescriptor descriptor() {
65 using units::gm;
66 using units::m;
67 return {.name = "UpstreamTagger",
68 .node = "/SHiP/upstream_tagger",
69 .id = 3,
70 .x_mm = 0.0,
71 .y_mm = 0.0,
72 .z_mm = gm(32.72 * m),
73 .isWorld = false};
74 }
75
79 [[nodiscard]] GeoVPhysVol* build();
80
81 // ── Container envelope (mm) ─────────────────────────────────────────
82 // The GDML statbox (440 × 640 × 16 cm). This is wider than the EDMS
83 // envelope (0.75 × 1.60 m half-sizes); Layout.h records the deviation.
84 static constexpr auto s_halfX = 2200.0 * units::mm;
85 static constexpr auto s_halfY = 3200.0 * units::mm;
86 static constexpr auto s_halfZ = 80.0 * units::mm;
87
88 // ── Tile geometry (mm) ──────────────────────────────────────────────
89 static constexpr auto s_fineThickness = 5.0 * units::mm;
90 static constexpr auto s_coarseThickness =
91 10.0 * units::mm;
92 static constexpr auto s_fineFace =
93 20.0 * units::mm;
94 static constexpr auto s_coarseFace =
95 40.0 * units::mm;
96
97 private:
98 Materials& m_materials;
99};
100
101} // namespace SHiP::geometry
Central material manager for the SHiP detector.
Definition Materials.h:22
static constexpr auto s_coarseFace
coarse tile full transverse size = pitch
Definition UpstreamTaggerFactory.h:94
static constexpr auto s_halfZ
Definition UpstreamTaggerFactory.h:86
static constexpr auto s_coarseThickness
full Z thickness of coarse tiles
Definition UpstreamTaggerFactory.h:90
static constexpr auto s_fineFace
fine tile full transverse size = pitch
Definition UpstreamTaggerFactory.h:92
static constexpr auto s_halfX
Definition UpstreamTaggerFactory.h:84
static constexpr SubsystemDescriptor descriptor()
This subsystem's self-description (name, node, id, placement).
Definition UpstreamTaggerFactory.h:64
static constexpr auto s_halfY
Definition UpstreamTaggerFactory.h:85
static constexpr auto s_fineThickness
full Z thickness of fine tiles
Definition UpstreamTaggerFactory.h:89
GeoVPhysVol * build()
Build the UpstreamTagger geometry.
Definition UpstreamTaggerFactory.cpp:210
UpstreamTaggerFactory(Materials &materials)
Definition UpstreamTaggerFactory.cpp:206
constexpr auto m
Definition Units.h:29
constexpr double gm(mp_units::quantity< U, Rep > q)
Length quantity -> GeoModel raw double (GeoModel native unit: mm).
Definition Units.h:47
constexpr auto mm
Definition Units.h:27
Definition DetectorBuilder.h:8
constexpr double gm(mp_units::quantity< U, Rep > q)
Length quantity -> GeoModel raw double (GeoModel native unit: mm).
Definition Units.h:47
A subsystem's self-description: everything the assembler needs.
Definition SubsystemDescriptor.h:20