SHiP Geometry
SHiP experiment geometry implementation using GeoModel.
Loading...
Searching...
No Matches
DecayVolumeFactory.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 GeoPhysVol;
10
11namespace SHiP::geometry {
12
13class Materials;
14
30 public:
31 explicit DecayVolumeFactory(Materials& materials);
33
39 static constexpr SubsystemDescriptor descriptor() {
40 using units::gm;
41 using units::m;
42 return {.name = "DecayVolume",
43 .node = "/SHiP/decay_volume",
44 .id = 4,
45 .x_mm = 0.0,
46 .y_mm = 0.0,
47 .z_mm = gm(58.12 * m),
48 .isWorld = false};
49 }
50
51 [[nodiscard]] GeoPhysVol* build();
52
53 private:
54 Materials& m_materials;
55};
56
57} // namespace SHiP::geometry
GeoPhysVol * build()
Build the DecayVolume geometry; returns the air container.
Definition DecayVolumeFactory.cpp:25
static constexpr SubsystemDescriptor descriptor()
This subsystem's self-description (name, node, id, placement).
Definition DecayVolumeFactory.h:39
DecayVolumeFactory(Materials &materials)
Definition DecayVolumeFactory.cpp:23
Central material manager for the SHiP detector.
Definition Materials.h:22
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
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