15#include <fmt/printf.h>
20#include <fmt/format.h>
24const std::string detPrefix =
"MID";
94 if (deId < 0 || deId > 71) {
115 throw std::runtime_error(fmt::format(
"invalid chamberId={} : expected between 0 and 3", chamberId));
118 return std::optional<ID>{{
id,
side, chamberId}};
124 return fmt::format(
"{}_{}_MT{}_RPC{}_HV.", detPrefix, sideName(
id->side),
id->chamberId,
id->number) + measurementName(
type);
130 std::vector<std::string>
aliases;
Useful detector parameters for MID.
GLsizei GLenum GLenum * types
GLint GLint GLsizei GLint GLenum GLenum type
std::optional< ID > detElemId2DCS(int deId)
std::string detElemId2DCSAlias(int deId, MeasurementType type)
Converts the detection element ID into a DCS alias.
std::vector< std::string > aliases(std::vector< MeasurementType > types={ MeasurementType::HV_V, MeasurementType::HV_I})
constexpr int NDetectionElements
Number of RPCs.
bool isRightSide(int deId)