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
7
8#include <string>
9
10class GeoPhysVol;
11
12namespace SHiPGeometry {
13
14class SHiPMaterials;
15
31 public:
32 explicit DecayVolumeFactory(SHiPMaterials& materials, std::string configPath = "sbt.toml");
34
36 [[nodiscard]] GeoPhysVol* build();
37
43 [[nodiscard]] const SBTConfig& config() const { return m_config; }
44
45 private:
46 SHiPMaterials& m_materials;
47 std::string m_configPath;
48 SBTConfig m_config;
49
50 // Air container enclosing the SBT structure + sensors and helium (mm).
51 static constexpr double s_halfX = 2200.0;
52 static constexpr double s_halfY = 3300.0;
53 static constexpr double s_halfZ = 25200.0;
54};
55
56} // namespace SHiPGeometry
Factory for the DecayVolume subsystem (decay region + SBT).
Definition DecayVolumeFactory.h:30
const SBTConfig & config() const
The config the last build() actually used.
Definition DecayVolumeFactory.h:43
GeoPhysVol * build()
Build the DecayVolume geometry; returns the air container.
Definition DecayVolumeFactory.cpp:49
Central material manager for the SHiP detector.
Definition SHiPMaterials.h:20
Definition ConfigPath.h:9
Configuration for the Surround Background Tagger (SBT) geometry.
Definition SBTConfig.h:18