88template <std::
size_t N>
89[[nodiscard]]
constexpr Envelope hull(std::string_view name,
const std::array<Envelope, N>& parts) {
93 parts.front().maxHalfWidth(),
94 parts.front().maxHalfWidth(),
95 parts.front().maxHalfHeight(),
96 parts.front().maxHalfHeight()};
97 for (
const auto& part : parts) {
100 const auto w = part.maxHalfWidth();
101 const auto h = part.maxHalfHeight();
Definition Envelopes.h:46
constexpr auto m
Definition Envelopes.h:47
Reference subsystem envelopes, for compile-time placement checks.
Definition Envelopes.h:24
constexpr Envelope kMagnet
Definition Envelopes.h:75
constexpr std::array< Envelope, 3 > kCalorimeter
Definition Envelopes.h:79
constexpr auto kSurroundTaggerThickness
Thickness of the SBT shell around the decay volume (the CSV lists it as a half-width/height of 0....
Definition Envelopes.h:68
constexpr Envelope kUpstreamTagger
Definition Envelopes.h:62
constexpr Envelope kNeutrinoDetector
Definition Envelopes.h:60
constexpr std::array< Envelope, 4 > kTrackerStations
Definition Envelopes.h:69
constexpr Envelope hull(std::string_view name, const std::array< Envelope, N > &parts)
Union of several consecutive envelopes, from the first start to the last end, with the largest transv...
Definition Envelopes.h:89
constexpr Envelope kTimingDetector
Definition Envelopes.h:77
constexpr Envelope kDecayVolume
Definition Envelopes.h:64
constexpr std::array< Envelope, 5 > kMuonShield
Definition Envelopes.h:53
constexpr Envelope kHadronStopper
Definition Envelopes.h:51
mp_units::quantity< mm > LengthMm
Spellings for struct members and function parameters.
Definition Units.h:39
constexpr auto m
Definition Units.h:29
Closed interval along one axis.
Definition StaticChecks.h:29
Definition Envelopes.h:28
LengthMm zStart
Definition Envelopes.h:30
LengthMm halfHeightDown
Definition Envelopes.h:35
LengthMm halfHeightUp
Definition Envelopes.h:34
constexpr LengthMm maxHalfWidth() const
Definition Envelopes.h:38
LengthMm zEnd
Definition Envelopes.h:31
constexpr LengthMm maxHalfHeight() const
Definition Envelopes.h:41
LengthMm halfWidthDown
Definition Envelopes.h:33
LengthMm halfWidthUp
Definition Envelopes.h:32
constexpr checks::Span z() const
Definition Envelopes.h:37
std::string_view name
Definition Envelopes.h:29