35 stroke-width: 0.025px;
46 stroke-width: 0.025px;
70 if (dualSampaPadChannels.size() != dualSampaPads.size()) {
71 throw std::runtime_error(
"gouze");
78 w.svgGroupStart(
"pads");
79 for (
auto& dsp : dualSampaPads) {
87 if (showpadchannels) {
88 w.svgGroupStart(
"padchannels");
89 for (
auto i = 0;
i < dualSampaPads.size(); ++
i) {
90 auto& dsp = dualSampaPads[
i];
91 auto& dspch = dualSampaPadChannels[
i];
92 for (
auto j = 0;
j < dsp.size();
j++) {
101 if (showdualsampas) {
102 w.svgGroupStart(
"dualsampas");
103 for (
auto& dsp : dualSampaContours) {
110 w.svgGroupStart(
"detectionelements");
111 w.contour(deContour);
o2::mch::mapping::CathodeSegmentation seg
A CathodeSegmentation lets you find pads on a given plane (cathode) of a detection element and then i...
GLubyte GLubyte GLubyte GLubyte w
GLsizei const GLint * box
std::string svgCathodeSegmentationDefaultStyle()
std::vector< o2::mch::contour::Contour< double > > getDualSampaContours(const CathodeSegmentation &seg)
void svgCathodeSegmentation(const CathodeSegmentation &seg, o2::mch::contour::SVGWriter &writer, bool showdes, bool showdualsampas, bool showpads, bool showpadchannels)
o2::mch::contour::BBox< double > getBBox(const CathodeSegmentation &seg)
std::vector< std::vector< o2::mch::contour::Polygon< double > > > getPadPolygons(const CathodeSegmentation &seg)
std::vector< std::vector< int > > getPadChannels(const CathodeSegmentation &seg)
o2::mch::contour::Contour< double > getEnvelop(const CathodeSegmentation &seg)
a couple of static helper functions to create timestamp values for CCDB queries or override obsolete ...
std::string to_string(gsl::span< T, Size > span)