15#define BOOST_TEST_MODULE Test MCHMappingTest CathodeSegmentation
16#define BOOST_TEST_DYN_LINK
17#define BOOST_TEST_MAIN
19#include <boost/test/unit_test.hpp>
21#include "boost/format.hpp"
26#include <boost/test/data/monomorphic.hpp>
27#include <boost/test/data/monomorphic/generators/xrange.hpp>
28#include <boost/test/data/test_case.hpp>
33#include <fmt/format.h>
36namespace bdata = boost::unit_test::data;
38BOOST_AUTO_TEST_SUITE(o2_mch_mapping)
39BOOST_AUTO_TEST_SUITE(cathode_segmentation)
94#if MCH_MAPPING_RUN3_AND_ABOVE
130#if MCH_MAPPING_RUN3_AND_ABOVE
215#if MCH_MAPPING_RUN3_AND_ABOVE
245 for (
auto plane : {
true,
false}) {
250#if MCH_MAPPING_RUN3_AND_ABOVE
268 std::map<int, int> non64;
270 for (
auto plane : {
true,
false}) {
297#if MCH_MAPPING_RUN3_AND_ABOVE
306 for (
auto p : non64) {
310#if MCH_MAPPING_RUN3_AND_ABOVE
321BOOST_FIXTURE_TEST_SUITE(HasPadBy,
SEG)
332 for (
auto plane : {
true,
false}) {
334 BOOST_TEST_INFO_SCOPE(fmt::format(
"DeId {} Bending {}", detElemId, plane));
352 if (
params.isSegmentationRun3) {
367 if (
params.isSegmentationRun3) {
387BOOST_AUTO_TEST_SUITE_END()
388BOOST_AUTO_TEST_SUITE_END()
389BOOST_AUTO_TEST_SUITE_END()
o2::mch::mapping::CathodeSegmentation seg
BOOST_AUTO_TEST_CASE(NumberOfDetectionElementsIs156)
A CathodeSegmentation lets you find pads on a given plane (cathode) of a detection element and then i...
int dualSampaId(int dualSampaIndex) const
void forEachPadInDualSampa(int dualSampaId, CALLABLE &&func) const
int nofDualSampas() const
int findPadByPosition(double x, double y) const
int findPadByFEE(int dualSampaId, int dualSampaChannel) const
bool isValid(int catPadIndex) const
Not every integer is a valid catPadIndex. This method will tell if catPadIndex is a valid one.
GLenum const GLfloat * params
void forOneDetectionElementOfEachSegmentationType(CALLABLE &&func)
o2::mch::contour::BBox< double > getBBox(const CathodeSegmentation &seg)
void forEachDetectionElement(CALLABLE &&func)
std::set< int > nofDualSampas(std::array< int, N > deIds)
BOOST_CHECK_NO_THROW(algorithm::merge(target, other))
BOOST_TEST(digits==digitsD, boost::test_tools::per_element())
BOOST_CHECK_EQUAL(triggersD.size(), triggers.size())