17#ifndef O2_MCH_MAPPING_SEGMENTATION_H
18#define O2_MCH_MAPPING_SEGMENTATION_H
90 int findPadByFEE(
int dualSampaId,
int dualSampaChannel)
const;
99 double padSizeX(
int dePadIndex)
const;
100 double padSizeY(
int dePadIndex)
const;
103 bool isValid(
int dePadIndex)
const;
104 bool isBendingPad(
int dePadIndex)
const {
return dePadIndex < mPadIndexOffset; }
116 template <
typename CALLABLE>
119 template <
typename CALLABLE>
122 template <
typename CALLABLE>
125 template <
typename CALLABLE>
126 void forEachPadInArea(
double xmin,
double ymin,
double xmax,
double ymax, CALLABLE&&
func)
const;
145 int padC2DE(
int catPadIndex,
bool isBending)
const;
152 int mPadIndexOffset = 0;
o2::mch::mapping::CathodeSegmentation seg
A CathodeSegmentation lets you find pads on a given plane (cathode) of a detection element and then i...
A Segmentation lets you find pads of a detection element and then inspect those pads.
std::string padAsString(int dePadIndex) const
double padPositionX(int dePadIndex) const
double padSizeY(int dePadIndex) const
int padDualSampaId(int dePadIndex) const
Segmentation(const Segmentation &seg)
const CathodeSegmentation & nonBending() const
const CathodeSegmentation & bending() const
bool operator!=(const Segmentation &rhs) const
void forEachDualSampa(std::function< void(int dualSampaId)> func) const
Loop over dual sampas of this detection element.
Segmentation & operator=(Segmentation seg)
void forEachPadInDualSampa(int dualSampaId, CALLABLE &&func) const
bool findPadPairByPosition(double x, double y, int &bpad, int &nbpad) const
int findPadByFEE(int dualSampaId, int dualSampaChannel) const
bool isBendingPad(int dePadIndex) const
void forEachNeighbouringPad(int dePadIndex, CALLABLE &&func) const
bool operator==(const Segmentation &rhs) const
void forEachPad(CALLABLE &&func) const
double padPositionY(int dePadIndex) const
int padDualSampaChannel(int dePadIndex) const
void forEachPadInArea(double xmin, double ymin, double xmax, double ymax, CALLABLE &&func) const
int nofDualSampas() const
friend void swap(Segmentation &a, Segmentation &b)
double padSizeX(int dePadIndex) const
bool isValid(int dePadIndex) const
GLboolean GLboolean GLboolean b
GLboolean GLboolean GLboolean GLboolean a
O2MCHMAPPINGIMPL3_EXPORT const Segmentation & segmentation(int detElemId)
a couple of static helper functions to create timestamp values for CCDB queries or override obsolete ...