Project
Loading...
Searching...
No Matches
SegmentationContours.cxx
Go to the documentation of this file.
1// Copyright 2019-2020 CERN and copyright holders of ALICE O2.
2// See https://alice-o2.web.cern.ch/copyright for details of the copyright holders.
3// All rights not expressly granted are reserved.
4//
5// This software is distributed under the terms of the GNU General Public
6// License v3 (GPL Version 3), copied verbatim in the file "COPYING".
7//
8// In applying this license CERN does not waive the privileges and immunities
9// granted to it by virtue of its status as an Intergovernmental Organization
10// or submit itself to any jurisdiction.
11
14
18#include <iostream>
19
20using namespace o2::mch::contour;
21
22namespace o2
23{
24namespace mch
25{
26namespace mapping
27{
28
30
32{
33 std::vector<Polygon<double>> polygons;
34
35 for (auto& contour : {getEnvelop(seg.nonBending()), getEnvelop(seg.bending())}) {
36 for (auto& p : contour.getPolygons()) {
37 polygons.push_back(p);
38 }
39 }
40 return o2::mch::contour::createContour(polygons);
41}
42
43} // namespace mapping
44} // namespace mch
45} // namespace o2
o2::mch::mapping::CathodeSegmentation seg
A Segmentation lets you find pads of a detection element and then inspect those pads.
Contour< T > createContour(const std::vector< Polygon< T > > &polygons)
o2::mch::contour::BBox< double > getBBox(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 ...