![]() |
Project
|
#include <boost/test/unit_test.hpp>
#include "MCHConditions/Chamber.h"
#include "MCHConditions/DCSAliases.h"
#include "MCHGlobalMapping/DsIndex.h"
#include "MCHGlobalMapping/Mapper.h"
#include "MCHMappingInterface/CathodeSegmentation.h"
#include "MCHMappingInterface/Segmentation.h"
#include "MCHRawElecMap/Mapper.h"
#include <algorithm>
Go to the source code of this file.
Macros | |
#define | BOOST_TEST_MODULE Test MCHGlobalMapping Mapper |
#define | BOOST_TEST_MAIN |
#define | BOOST_TEST_DYN_LINK |
Functions | |
BOOST_AUTO_TEST_CASE (IncorrectCathodeShouldGetZeroIndices) | |
BOOST_AUTO_TEST_CASE (CheckDsIndexRangePerChamberPlane) | |
BOOST_AUTO_TEST_CASE (HVSlatIDToDsIndex) | |
BOOST_AUTO_TEST_CASE (HVSectorIDToDsIndex) | |
BOOST_AUTO_TEST_CASE (LVAliasToSolar) | |
BOOST_AUTO_TEST_CASE (LVAliasToCathode) | |
#define BOOST_TEST_DYN_LINK |
Definition at line 14 of file testGlobalMapper.cxx.
#define BOOST_TEST_MAIN |
Definition at line 13 of file testGlobalMapper.cxx.
#define BOOST_TEST_MODULE Test MCHGlobalMapping Mapper |
Definition at line 12 of file testGlobalMapper.cxx.
BOOST_AUTO_TEST_CASE | ( | CheckDsIndexRangePerChamberPlane | ) |
Definition at line 73 of file testGlobalMapper.cxx.
BOOST_AUTO_TEST_CASE | ( | HVSectorIDToDsIndex | ) |
Definition at line 116 of file testGlobalMapper.cxx.
BOOST_AUTO_TEST_CASE | ( | HVSlatIDToDsIndex | ) |
Definition at line 107 of file testGlobalMapper.cxx.
BOOST_AUTO_TEST_CASE | ( | IncorrectCathodeShouldGetZeroIndices | ) |
Definition at line 68 of file testGlobalMapper.cxx.
BOOST_AUTO_TEST_CASE | ( | LVAliasToCathode | ) |
the mapping of LV group to quadrant plane and/or slat(s) is not completely intuitive... so we test it as fully as we can here, even if it's a bit manual (but at least we see what is expected).
For each alias we test that :
Note the measurement is not relevant in this game, only the chamber/group is.
Note also we are only testing the relationships where the destination is either a full detection element or a list of full detection elements.
For mappings with partial detection element content, see LVAliasToSolar
Definition at line 248 of file testGlobalMapper.cxx.
BOOST_AUTO_TEST_CASE | ( | LVAliasToSolar | ) |
Definition at line 130 of file testGlobalMapper.cxx.