28 for (
auto ch = 0; ch < 64; ++ch) {
47 if (dd.deId() != deId) {
56 double x0,
x1, x2, x3;
57 if (dd.deId() < 300) {
70 throw std::invalid_argument(
"x<x0");
74 }
else if (xref < x2) {
76 }
else if (xref < x3) {
80 if (sector == number % 10) {
o2::mch::mapping::CathodeSegmentation seg
int findPadByFEE(int dualSampaId, int dualSampaChannel) const
double padPositionX(int catPadIndex) const
bool isValid(int catPadIndex) const
Not every integer is a valid catPadIndex. This method will tell if catPadIndex is a valid one.
A Segmentation lets you find pads of a detection element and then inspect those pads.
GLuint GLfloat GLfloat GLfloat x1
GLsizei GLenum const void * indices
Chamber aliasToChamber(std::string_view alias)
std::set< DsIndex > hvAliasToDsIndices(std::string_view alias)
std::optional< Chamber > chamber(int chamberId)
int aliasToNumber(std::string_view dcsAlias)
bool isSlat(Chamber chamber)
double findXmean(const o2::mch::mapping::Segmentation &seg, int dsId)
std::optional< int > aliasToDetElemId(std::string_view dcsAlias)
O2MCHMAPPINGIMPL3_EXPORT const Segmentation & segmentation(int detElemId)
constexpr uint16_t NumberOfDualSampas
o2::mch::raw::DsDetId getDsDetId(DsIndex dsIndex)