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

Go to the source code of this file.

Classes

struct  SHiP::geometry::calo::FibreCentre

Namespaces

namespace  SHiP
namespace  SHiP::geometry
namespace  SHiP::geometry::calo
 Compile-time parameters of the SHiP calorimeter geometry.

Enumerations

enum class  SHiP::geometry::calo::LayerCode {
  SHiP::geometry::calo::WidePVT_H , SHiP::geometry::calo::WidePVT_V , SHiP::geometry::calo::ThinPS_H , SHiP::geometry::calo::ThinPS_V ,
  SHiP::geometry::calo::FibreHPL_Y , SHiP::geometry::calo::FibreHPL_X , SHiP::geometry::calo::Absorber , SHiP::geometry::calo::AirGap
}
 Layer types used in the ECAL/HCAL layer sequences. More...

Functions

constexpr units::LengthMm SHiP::geometry::calo::layerThickness (LayerCode code, units::LengthMm absorberThickness)
 Z advance of one layer of the given type.
constexpr units::LengthMm SHiP::geometry::calo::sectionZ (std::span< const LayerCode > codes, units::LengthMm absorberThickness)
 Z extent of one calorimeter section.
constexpr int SHiP::geometry::calo::sectionVolumeCount (std::span< const LayerCode > codes)
 Child volumes one section contributes to the container, per module.
constexpr units::LengthMm SHiP::geometry::calo::hplMinCasingZ (units::LengthMm fibreDiameter=kFiberDiameter)
 Smallest casing thickness that holds the close-packed stack: 2r(1 + √3).
constexpr int SHiP::geometry::calo::fibresPerSublayer (int sublayer, units::LengthMm casingXY=kPlateXY, units::LengthMm fibreDiameter=kFiberDiameter)
 Fibres in sublayer sublayer (0 … kHplSublayers - 1).
constexpr FibreCentre SHiP::geometry::calo::fibreCentre (int sublayer, int index, units::LengthMm casingXY=kPlateXY, units::LengthMm fibreDiameter=kFiberDiameter)
 Centre of fibre index in sublayer sublayer, in the casing frame.

Variables

constexpr auto SHiP::geometry::calo::kPlateXY = 2160.0 * units::mm
constexpr auto SHiP::geometry::calo::kLeadThickness = 3.0 * units::mm
constexpr auto SHiP::geometry::calo::kScintThickness = 10.0 * units::mm
constexpr auto SHiP::geometry::calo::kHplThickness = 10.0 * units::mm
constexpr auto SHiP::geometry::calo::kFiberDiameter = 1.2 * units::mm
constexpr auto SHiP::geometry::calo::kFiberCoreDiameter = 1.0 * units::mm
constexpr auto SHiP::geometry::calo::kIronThickness = 170.0 * units::mm
constexpr auto SHiP::geometry::calo::kAirGap = 1000.0 * units::mm
 Air gap within the ECAL layer sequence (mm).
constexpr auto SHiP::geometry::calo::kGapEcalHcal = 100.0 * units::mm
 Gap between the ECAL and HCAL stacks (mm).
constexpr auto SHiP::geometry::calo::kWidePVTBarPitch = 60.0 * units::mm
constexpr auto SHiP::geometry::calo::kThinPSBarPitch = 10.0 * units::mm
constexpr int SHiP::geometry::calo::kModuleNX = 2
constexpr int SHiP::geometry::calo::kModuleNY = 3
constexpr auto SHiP::geometry::calo::kModulePitchX = kPlateXY
constexpr auto SHiP::geometry::calo::kModulePitchY = kPlateXY
constexpr auto SHiP::geometry::calo::kEcalLayers
 ECAL layer sequence.
constexpr auto SHiP::geometry::calo::kHcalLayers
 HCAL layer sequence (Absorber means iron here rather than lead).
constexpr auto SHiP::geometry::calo::kContainerHalfX = 3000.0 * units::mm
constexpr auto SHiP::geometry::calo::kContainerHalfY = 3500.0 * units::mm
constexpr auto SHiP::geometry::calo::kContainerHalfZ = 1450.0 * units::mm
constexpr auto SHiP::geometry::calo::kTotalStackZ
 Total Z extent of one ECAL+gap+HCAL stack.
constexpr int SHiP::geometry::calo::kVolsPerModule
 Child volumes one module contributes to the container.
constexpr int SHiP::geometry::calo::kWidePVTBarCount = static_cast<int>(units::ratio(kPlateXY / kWidePVTBarPitch))
 Bars per layer, from the plate size and the bar pitch.
constexpr int SHiP::geometry::calo::kThinPSBarCount = static_cast<int>(units::ratio(kPlateXY / kThinPSBarPitch))
constexpr int SHiP::geometry::calo::kHplSublayers = 3
 Number of fibre sublayers (rows) in one HPL layer.
constexpr int SHiP::geometry::calo::kFibresPerHpl
 Fibres in one HPL layer, summed over its sublayers.