SHiP Geometry
SHiP experiment geometry implementation using GeoModel.
Loading...
Searching...
No Matches
SHiP::geometry::calo Namespace Reference

Compile-time parameters of the SHiP calorimeter geometry. More...

Classes

struct  FibreCentre

Enumerations

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

Functions

constexpr units::LengthMm layerThickness (LayerCode code, units::LengthMm absorberThickness)
 Z advance of one layer of the given type.
constexpr units::LengthMm sectionZ (std::span< const LayerCode > codes, units::LengthMm absorberThickness)
 Z extent of one calorimeter section.
constexpr int sectionVolumeCount (std::span< const LayerCode > codes)
 Child volumes one section contributes to the container, per module.
constexpr units::LengthMm hplMinCasingZ (units::LengthMm fibreDiameter=kFiberDiameter)
 Smallest casing thickness that holds the close-packed stack: 2r(1 + √3).
constexpr int fibresPerSublayer (int sublayer, units::LengthMm casingXY=kPlateXY, units::LengthMm fibreDiameter=kFiberDiameter)
 Fibres in sublayer sublayer (0 … kHplSublayers - 1).
constexpr FibreCentre 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 kPlateXY = 2160.0 * units::mm
constexpr auto kLeadThickness = 3.0 * units::mm
constexpr auto kScintThickness = 10.0 * units::mm
constexpr auto kHplThickness = 10.0 * units::mm
constexpr auto kFiberDiameter = 1.2 * units::mm
constexpr auto kFiberCoreDiameter = 1.0 * units::mm
constexpr auto kIronThickness = 170.0 * units::mm
constexpr auto kAirGap = 1000.0 * units::mm
 Air gap within the ECAL layer sequence (mm).
constexpr auto kGapEcalHcal = 100.0 * units::mm
 Gap between the ECAL and HCAL stacks (mm).
constexpr auto kWidePVTBarPitch = 60.0 * units::mm
constexpr auto kThinPSBarPitch = 10.0 * units::mm
constexpr int kModuleNX = 2
constexpr int kModuleNY = 3
constexpr auto kModulePitchX = kPlateXY
constexpr auto kModulePitchY = kPlateXY
constexpr auto kEcalLayers
 ECAL layer sequence.
constexpr auto kHcalLayers
 HCAL layer sequence (Absorber means iron here rather than lead).
constexpr auto kContainerHalfX = 3000.0 * units::mm
constexpr auto kContainerHalfY = 3500.0 * units::mm
constexpr auto kContainerHalfZ = 1450.0 * units::mm
constexpr auto kTotalStackZ
 Total Z extent of one ECAL+gap+HCAL stack.
constexpr int kVolsPerModule
 Child volumes one module contributes to the container.
constexpr int kWidePVTBarCount = static_cast<int>(units::ratio(kPlateXY / kWidePVTBarPitch))
 Bars per layer, from the plate size and the bar pitch.
constexpr int kThinPSBarCount = static_cast<int>(units::ratio(kPlateXY / kThinPSBarPitch))
constexpr int kHplSublayers = 3
 Number of fibre sublayers (rows) in one HPL layer.
constexpr int kFibresPerHpl
 Fibres in one HPL layer, summed over its sublayers.

Detailed Description

Compile-time parameters of the SHiP calorimeter geometry.

All lengths are mp-units quantities in mm. The invariants of these constants are static_asserts at the bottom of this header.

Enumeration Type Documentation

◆ LayerCode

Layer types used in the ECAL/HCAL layer sequences.

Enumerator
WidePVT_H 

Wide PVT bar layer, bars along X (H orientation).

WidePVT_V 

Wide PVT bar layer, bars along Y (V orientation).

ThinPS_H 

Thin PS bar layer, bars along X (H orientation).

ThinPS_V 

Thin PS bar layer, bars along Y (V orientation).

FibreHPL_Y 

HPL fibre layer, fibres along Y.

FibreHPL_X 

HPL fibre layer, fibres along X.

Absorber 

Absorber plate (Lead in ECAL, Iron in HCAL).

AirGap 

Air gap (no volume, just advances z cursor).

Function Documentation

◆ fibreCentre()

FibreCentre SHiP::geometry::calo::fibreCentre ( int sublayer,
int index,
units::LengthMm casingXY = kPlateXY,
units::LengthMm fibreDiameter = kFiberDiameter )
constexpr

Centre of fibre index in sublayer sublayer, in the casing frame.

◆ fibresPerSublayer()

int SHiP::geometry::calo::fibresPerSublayer ( int sublayer,
units::LengthMm casingXY = kPlateXY,
units::LengthMm fibreDiameter = kFiberDiameter )
constexpr

Fibres in sublayer sublayer (0 … kHplSublayers - 1).

◆ hplMinCasingZ()

units::LengthMm SHiP::geometry::calo::hplMinCasingZ ( units::LengthMm fibreDiameter = kFiberDiameter)
constexpr

Smallest casing thickness that holds the close-packed stack: 2r(1 + √3).

◆ layerThickness()

units::LengthMm SHiP::geometry::calo::layerThickness ( LayerCode code,
units::LengthMm absorberThickness )
constexpr

Z advance of one layer of the given type.

The absorber thickness differs between the ECAL (lead) and HCAL (iron) sections.

◆ sectionVolumeCount()

int SHiP::geometry::calo::sectionVolumeCount ( std::span< const LayerCode > codes)
constexpr

Child volumes one section contributes to the container, per module.

Every layer places exactly one volume directly under the container (a layer envelope, or the bare iron plate in the HCAL); AirGap places none and only advances the z cursor.

◆ sectionZ()

units::LengthMm SHiP::geometry::calo::sectionZ ( std::span< const LayerCode > codes,
units::LengthMm absorberThickness )
constexpr

Z extent of one calorimeter section.

Variable Documentation

◆ kAirGap

auto SHiP::geometry::calo::kAirGap = 1000.0 * units::mm
inlineconstexpr

Air gap within the ECAL layer sequence (mm).

◆ kContainerHalfX

auto SHiP::geometry::calo::kContainerHalfX = 3000.0 * units::mm
inlineconstexpr

◆ kContainerHalfY

auto SHiP::geometry::calo::kContainerHalfY = 3500.0 * units::mm
inlineconstexpr

◆ kContainerHalfZ

auto SHiP::geometry::calo::kContainerHalfZ = 1450.0 * units::mm
inlineconstexpr

◆ kEcalLayers

auto SHiP::geometry::calo::kEcalLayers
inlineconstexpr
Initial value:
= [] {
using enum LayerCode;
return std::array{
};
}()
LayerCode
Layer types used in the ECAL/HCAL layer sequences.
Definition CalorimeterConstants.h:21
@ FibreHPL_X
HPL fibre layer, fibres along X.
Definition CalorimeterConstants.h:27
@ ThinPS_H
Thin PS bar layer, bars along X (H orientation).
Definition CalorimeterConstants.h:24
@ WidePVT_V
Wide PVT bar layer, bars along Y (V orientation).
Definition CalorimeterConstants.h:23
@ WidePVT_H
Wide PVT bar layer, bars along X (H orientation).
Definition CalorimeterConstants.h:22
@ Absorber
Absorber plate (Lead in ECAL, Iron in HCAL).
Definition CalorimeterConstants.h:28
@ FibreHPL_Y
HPL fibre layer, fibres along Y.
Definition CalorimeterConstants.h:26
@ ThinPS_V
Thin PS bar layer, bars along Y (V orientation).
Definition CalorimeterConstants.h:25
@ AirGap
Air gap (no volume, just advances z cursor).
Definition CalorimeterConstants.h:29

ECAL layer sequence.

◆ kFiberCoreDiameter

auto SHiP::geometry::calo::kFiberCoreDiameter = 1.0 * units::mm
inlineconstexpr

◆ kFiberDiameter

auto SHiP::geometry::calo::kFiberDiameter = 1.2 * units::mm
inlineconstexpr

◆ kFibresPerHpl

int SHiP::geometry::calo::kFibresPerHpl
inlineconstexpr
Initial value:
= [] {
int n = 0;
for (int s = 0; s < kHplSublayers; ++s) {
}
return n;
}()
constexpr int fibresPerSublayer(int sublayer, units::LengthMm casingXY=kPlateXY, units::LengthMm fibreDiameter=kFiberDiameter)
Fibres in sublayer sublayer (0 … kHplSublayers - 1).
Definition CalorimeterConstants.h:183
constexpr int kHplSublayers
Number of fibre sublayers (rows) in one HPL layer.
Definition CalorimeterConstants.h:175

Fibres in one HPL layer, summed over its sublayers.

◆ kGapEcalHcal

auto SHiP::geometry::calo::kGapEcalHcal = 100.0 * units::mm
inlineconstexpr

Gap between the ECAL and HCAL stacks (mm).

◆ kHcalLayers

auto SHiP::geometry::calo::kHcalLayers
inlineconstexpr
Initial value:
= [] {
using enum LayerCode;
return std::array{
};
}()

HCAL layer sequence (Absorber means iron here rather than lead).

◆ kHplSublayers

int SHiP::geometry::calo::kHplSublayers = 3
inlineconstexpr

Number of fibre sublayers (rows) in one HPL layer.

◆ kHplThickness

auto SHiP::geometry::calo::kHplThickness = 10.0 * units::mm
inlineconstexpr

◆ kIronThickness

auto SHiP::geometry::calo::kIronThickness = 170.0 * units::mm
inlineconstexpr

◆ kLeadThickness

auto SHiP::geometry::calo::kLeadThickness = 3.0 * units::mm
inlineconstexpr

◆ kModuleNX

int SHiP::geometry::calo::kModuleNX = 2
inlineconstexpr

◆ kModuleNY

int SHiP::geometry::calo::kModuleNY = 3
inlineconstexpr

◆ kModulePitchX

auto SHiP::geometry::calo::kModulePitchX = kPlateXY
inlineconstexpr

◆ kModulePitchY

auto SHiP::geometry::calo::kModulePitchY = kPlateXY
inlineconstexpr

◆ kPlateXY

auto SHiP::geometry::calo::kPlateXY = 2160.0 * units::mm
inlineconstexpr

◆ kScintThickness

auto SHiP::geometry::calo::kScintThickness = 10.0 * units::mm
inlineconstexpr

◆ kThinPSBarCount

int SHiP::geometry::calo::kThinPSBarCount = static_cast<int>(units::ratio(kPlateXY / kThinPSBarPitch))
inlineconstexpr

◆ kThinPSBarPitch

auto SHiP::geometry::calo::kThinPSBarPitch = 10.0 * units::mm
inlineconstexpr

◆ kTotalStackZ

auto SHiP::geometry::calo::kTotalStackZ
inlineconstexpr
Initial value:
=
constexpr units::LengthMm sectionZ(std::span< const LayerCode > codes, units::LengthMm absorberThickness)
Z extent of one calorimeter section.
Definition CalorimeterConstants.h:127
constexpr auto kIronThickness
Definition CalorimeterConstants.h:39
constexpr auto kEcalLayers
ECAL layer sequence.
Definition CalorimeterConstants.h:64
constexpr auto kHcalLayers
HCAL layer sequence (Absorber means iron here rather than lead).
Definition CalorimeterConstants.h:88
constexpr auto kGapEcalHcal
Gap between the ECAL and HCAL stacks (mm).
Definition CalorimeterConstants.h:44
constexpr auto kLeadThickness
Definition CalorimeterConstants.h:34

Total Z extent of one ECAL+gap+HCAL stack.

◆ kVolsPerModule

int SHiP::geometry::calo::kVolsPerModule
inlineconstexpr
Initial value:
=
constexpr int sectionVolumeCount(std::span< const LayerCode > codes)
Child volumes one section contributes to the container, per module.
Definition CalorimeterConstants.h:144

Child volumes one module contributes to the container.

◆ kWidePVTBarCount

int SHiP::geometry::calo::kWidePVTBarCount = static_cast<int>(units::ratio(kPlateXY / kWidePVTBarPitch))
inlineconstexpr

Bars per layer, from the plate size and the bar pitch.

◆ kWidePVTBarPitch

auto SHiP::geometry::calo::kWidePVTBarPitch = 60.0 * units::mm
inlineconstexpr