SHiP Geometry
SHiP experiment geometry implementation using GeoModel.
Loading...
Searching...
No Matches
SBTConstants.h File Reference
#include "SHiP/geometry/Units.h"
#include <algorithm>
#include <string_view>
Include dependency graph for SBTConstants.h:
This graph shows which files directly or indirectly include this file:

Go to the source code of this file.

Classes

struct  SHiP::geometry::sbt::SBTParams
 Every dimension the SBT geometry is parameterised by. More...

Namespaces

namespace  SHiP
namespace  SHiP::geometry
namespace  SHiP::geometry::sbt
 Compile-time parameters of the Surround Background Tagger (SBT).
namespace  SHiP::geometry::sbt::detail

Typedefs

using SHiP::geometry::sbt::LengthMm
 Spellings for struct members and function parameters.

Functions

constexpr LengthMm SHiP::geometry::sbt::subLength (const SBTParams &params=kSBT)
 Length of one sub-frustum along Z.
constexpr LengthMm SHiP::geometry::sbt::webHeight (const SBTParams &params=kSBT)
 Clear web height = height - 2*flange thickness.
constexpr int SHiP::geometry::sbt::nWalls (const SBTParams &params=kSBT)
 Number of aluminium walls per container (nCells + 1).
constexpr LengthMm SHiP::geometry::sbt::zExit (const SBTParams &params=kSBT)
 Exit-face Z in the DecayVolume local frame.
constexpr double SHiP::geometry::sbt::xGrowth (const SBTParams &params=kSBT)
 dx_half/dz of the frustum (dimensionless).
constexpr double SHiP::geometry::sbt::yGrowth (const SBTParams &params=kSBT)
 dy_half/dz of the frustum (dimensionless).
constexpr LengthMm SHiP::geometry::sbt::xHalfAt (LengthMm z, const SBTParams &params=kSBT)
 Half-extent of the frustum envelope in X at a given Z.
constexpr LengthMm SHiP::geometry::sbt::yHalfAt (LengthMm z, const SBTParams &params=kSBT)
 Half-extent of the frustum envelope in Y at a given Z.
constexpr LengthMm SHiP::geometry::sbt::zSubLo (int s, const SBTParams &params=kSBT)
 Z of the start of sub-frustum s.
constexpr LengthMm SHiP::geometry::sbt::hbeamFlangeOffset (const SBTParams &params=kSBT)
 Offset of a flange's mid-plane from the beam axis.
constexpr LengthMm SHiP::geometry::sbt::hbeamHalfHeight (const SBTParams &params=kSBT)
 Reach of a flange's outer surface from the beam axis = h/2.
constexpr LengthMm SHiP::geometry::sbt::zSplitOffset (const SBTParams &params=kSBT)
 Z offset, from the start of a sub-frustum, of the column front-flange outer edge.
constexpr LengthMm SHiP::geometry::sbt::sideContainerHalfThickness (const SBTParams &params=kSBT)
 Half-thickness of a side container in X.
constexpr LengthMm SHiP::geometry::sbt::sideContainerCentreX (LengthMm xHalf, const SBTParams &params=kSBT)
 |X| of a side container's centroid, given the local frustum half-width.
constexpr LengthMm SHiP::geometry::sbt::sideSensorInnerX (LengthMm xHalf, const SBTParams &params=kSBT)
 |X| of a side container's innermost face.
constexpr LengthMm SHiP::geometry::sbt::topBottomContainerHalfThickness (const SBTParams &params=kSBT)
 Half-thickness of a top/bottom container in Y.
constexpr LengthMm SHiP::geometry::sbt::topBottomContainerCentreY (LengthMm yHalf, const SBTParams &params=kSBT)
 |Y| of a top/bottom container's centroid.
constexpr LengthMm SHiP::geometry::sbt::topBottomSensorInnerY (LengthMm yHalf, const SBTParams &params=kSBT)
 |Y| of a top/bottom container's innermost face.
constexpr LengthMm SHiP::geometry::sbt::topBottomAvailX (LengthMm xHalf, const SBTParams &params=kSBT)
 Half-extent in X available to top/bottom containers.
constexpr LengthMm SHiP::geometry::sbt::longBeamCentreY (LengthMm yHalf, const SBTParams &params=kSBT)
 |Y| of a top/bottom longitudinal beam's axis.
constexpr double SHiP::geometry::sbt::detail::sqrtConst (double v)
 Square root of v, usable in a constant expression.
constexpr double SHiP::geometry::sbt::detail::longBeamTaper (const SBTParams &params=kSBT)
 Taper factor of a top/bottom longitudinal beam, 1/cos(atan(yGrowth)).
constexpr LengthMm SHiP::geometry::sbt::longBeamInnerY (LengthMm yHalf, const SBTParams &params=kSBT)
 |Y| reached by a longitudinal beam's inner flange surface.
constexpr bool SHiP::geometry::sbt::isWellFormed (const SBTParams &params=kSBT)
 Are params self-consistent, before asking whether they leave a decay region?

Variables

constexpr SBTParams SHiP::geometry::sbt::kSBT {}
 The shipped SBT.
constexpr auto SHiP::geometry::sbt::kEnvelopeHalfX = 2200.0 * mm
constexpr auto SHiP::geometry::sbt::kEnvelopeHalfY = 3300.0 * mm
constexpr auto SHiP::geometry::sbt::kEnvelopeHalfZ = 25200.0 * mm
constexpr std::string_view SHiP::geometry::sbt::kAirMaterial = "Air"
constexpr std::string_view SHiP::geometry::sbt::kSteelMaterial = "Iron"
constexpr std::string_view SHiP::geometry::sbt::kWallMaterial = "Aluminium"
constexpr std::string_view SHiP::geometry::sbt::kScintillatorMaterial = "LAB"
constexpr std::string_view SHiP::geometry::sbt::kHeliumMaterial = "PressurisedHe90"
constexpr auto SHiP::geometry::sbt::mm