Project
Loading...
Searching...
No Matches
o2::mch::mapping Namespace Reference

Namespaces

namespace  impl3
 
namespace  impl4
 

Classes

class  CathodeSegmentation
 A CathodeSegmentation lets you find pads on a given plane (cathode) of a detection element and then inspect those pads. More...
 
class  Segmentation
 A Segmentation lets you find pads of a detection element and then inspect those pads. More...
 

Functions

O2MCHMAPPINGIMPL3_EXPORT const Segmentationsegmentation (int detElemId)
 
template<typename CALLABLE >
void forEachDetectionElement (CALLABLE &&func)
 
template<typename CALLABLE >
void forOneDetectionElementOfEachSegmentationType (CALLABLE &&func)
 
void swap (Segmentation &a, Segmentation &b)
 
std::vector< std::vector< o2::mch::contour::Polygon< double > > > getPadPolygons (const CathodeSegmentation &seg)
 
std::vector< std::vector< int > > getPadChannels (const CathodeSegmentation &seg)
 
std::vector< o2::mch::contour::Contour< double > > getDualSampaContours (const CathodeSegmentation &seg)
 
o2::mch::contour::Contour< double > getDualSampaContour (const CathodeSegmentation &seg, int dualSampaId)
 
std::vector< o2::mch::contour::Polygon< double > > getPadPolygons (const CathodeSegmentation &seg, int dualSampaId)
 
o2::mch::contour::Contour< double > getEnvelop (const CathodeSegmentation &seg)
 
o2::mch::contour::BBox< double > getBBox (const CathodeSegmentation &seg)
 
std::string svgCathodeSegmentationDefaultStyle ()
 
void svgCathodeSegmentation (const CathodeSegmentation &seg, o2::mch::contour::SVGWriter &writer, bool showdes, bool showdualsampas, bool showpads, bool showpadchannels)
 
o2::mch::contour::Contour< double > getEnvelop (const Segmentation &seg)
 
o2::mch::contour::BBox< double > getBBox (const Segmentation &seg)
 

Function Documentation

◆ forEachDetectionElement()

template<typename CALLABLE >
void o2::mch::mapping::forEachDetectionElement ( CALLABLE &&  func)

Convenience method to loop over detection elements.

Definition at line 263 of file CathodeSegmentation.h.

◆ forOneDetectionElementOfEachSegmentationType()

template<typename CALLABLE >
void o2::mch::mapping::forOneDetectionElementOfEachSegmentationType ( CALLABLE &&  func)

Convenience method to loop over all segmentation types.

Definition at line 274 of file CathodeSegmentation.h.

◆ getBBox() [1/2]

BBox< double > o2::mch::mapping::getBBox ( const CathodeSegmentation seg)

Definition at line 27 of file CathodeSegmentationContours.cxx.

◆ getBBox() [2/2]

BBox< double > o2::mch::mapping::getBBox ( const Segmentation seg)

Definition at line 29 of file SegmentationContours.cxx.

◆ getDualSampaContour()

o2::mch::contour::Contour< double > o2::mch::mapping::getDualSampaContour ( const CathodeSegmentation seg,
int  dualSampaId 
)

Definition at line 88 of file CathodeSegmentationContours.cxx.

◆ getDualSampaContours()

std::vector< o2::mch::contour::Contour< double > > o2::mch::mapping::getDualSampaContours ( const CathodeSegmentation seg)

Definition at line 94 of file CathodeSegmentationContours.cxx.

◆ getEnvelop() [1/2]

Contour< double > o2::mch::mapping::getEnvelop ( const CathodeSegmentation seg)

Definition at line 29 of file CathodeSegmentationContours.cxx.

◆ getEnvelop() [2/2]

Contour< double > o2::mch::mapping::getEnvelop ( const Segmentation seg)

Definition at line 31 of file SegmentationContours.cxx.

◆ getPadChannels()

std::vector< std::vector< int > > o2::mch::mapping::getPadChannels ( const CathodeSegmentation seg)

Definition at line 42 of file CathodeSegmentationContours.cxx.

◆ getPadPolygons() [1/2]

std::vector< std::vector< Polygon< double > > > o2::mch::mapping::getPadPolygons ( const CathodeSegmentation seg)

Definition at line 77 of file CathodeSegmentationContours.cxx.

◆ getPadPolygons() [2/2]

std::vector< Polygon< double > > o2::mch::mapping::getPadPolygons ( const CathodeSegmentation seg,
int  dualSampaId 
)

Definition at line 62 of file CathodeSegmentationContours.cxx.

◆ segmentation()

const Segmentation & o2::mch::mapping::segmentation ( int  detElemId)

segmentation(int) is a convenience function that returns a segmentation for a given detection element.

That segmentation is part of a pool of Segmentations (one per DE) handled by this module.

Note that this may be not what you want as this module will always create one (but only one) Segmentation for all 156 detection elements at once, even when only one Segmentation is requested.

For instance, if you know you'll be dealing with only one detection element, you'd be better using the Segmentation ctor simply, and ensure by yourself that you are only creating it once in order not to incur the (high) price of the construction time of that Segmentation.

Definition at line 217 of file CreateSegmentation.cxx.

◆ svgCathodeSegmentation()

void o2::mch::mapping::svgCathodeSegmentation ( const CathodeSegmentation seg,
o2::mch::contour::SVGWriter writer,
bool  showdes,
bool  showdualsampas,
bool  showpads,
bool  showpadchannels 
)

Definition at line 63 of file CathodeSegmentationSVGWriter.cxx.

◆ svgCathodeSegmentationDefaultStyle()

std::string o2::mch::mapping::svgCathodeSegmentationDefaultStyle ( )

Definition at line 30 of file CathodeSegmentationSVGWriter.cxx.

◆ swap()

void o2::mch::mapping::swap ( Segmentation a,
Segmentation b 
)
inline

Definition at line 30 of file Segmentation.inl.