Project
Loading...
Searching...
No Matches
CathodeSegmentation.cxx File Reference
#include <boost/test/unit_test.hpp>
#include "boost/format.hpp"
#include "MCHMappingInterface/CathodeSegmentation.h"
#include "MCHMappingSegContour/CathodeSegmentationContours.h"
#include "MCHMappingSegContour/CathodeSegmentationSVGWriter.h"
#include "MCHContour/SVGWriter.h"
#include <boost/test/data/monomorphic.hpp>
#include <boost/test/data/monomorphic/generators/xrange.hpp>
#include <boost/test/data/test_case.hpp>
#include <limits>
#include <fstream>
#include <iostream>
#include "TestParameters.h"
#include <fmt/format.h>

Go to the source code of this file.

Classes

struct  SEG
 

Macros

#define BOOST_TEST_MODULE   Test MCHMappingTest CathodeSegmentation
 
#define BOOST_TEST_DYN_LINK
 
#define BOOST_TEST_MAIN
 

Functions

 BOOST_AUTO_TEST_CASE (NumberOfDetectionElementsIs156)
 
 BOOST_AUTO_TEST_CASE (GetCathodeSegmentationMustNotThrowIfDetElemIdIsValid)
 
 BOOST_AUTO_TEST_CASE (GetCathodeSegmentationThrowsIfDetElemIdIsNotValid)
 
 BOOST_AUTO_TEST_CASE (NofBendingPads)
 
 BOOST_AUTO_TEST_CASE (NofNonBendingPads)
 
 BOOST_AUTO_TEST_CASE (TotalNofBendingFECInSegTypes)
 
 BOOST_AUTO_TEST_CASE (BendingBoundingBox)
 
 BOOST_AUTO_TEST_CASE (NonBendingBoundingBox)
 
 BOOST_AUTO_TEST_CASE (NofBendingFEC)
 
 BOOST_AUTO_TEST_CASE (NofNonBendingFEC)
 
 BOOST_AUTO_TEST_CASE (CountPadsInCathodeSegmentations)
 
 BOOST_AUTO_TEST_CASE (LoopOnCathodeSegmentations)
 
 BOOST_AUTO_TEST_CASE (DualSampasWithLessThan64Pads)
 
 BOOST_AUTO_TEST_CASE (ThrowsIfDualSampaChannelIsNotBetween0And63)
 
 BOOST_AUTO_TEST_CASE (ReturnsFalseIfCatPadIdIsOutOfRange)
 
 BOOST_AUTO_TEST_CASE (ReturnsTrueIfPadIsConnected)
 
 BOOST_AUTO_TEST_CASE (ReturnsFalseIfPadIsNotConnected)
 
 BOOST_AUTO_TEST_CASE (HasPadByPosition)
 
 BOOST_AUTO_TEST_CASE (CheckPositionOfOnePadInDE100Bending)
 
 BOOST_AUTO_TEST_CASE (CheckCopy)
 
 BOOST_AUTO_TEST_CASE (CheckAssignment)
 

Macro Definition Documentation

◆ BOOST_TEST_DYN_LINK

#define BOOST_TEST_DYN_LINK

Definition at line 16 of file CathodeSegmentation.cxx.

◆ BOOST_TEST_MAIN

#define BOOST_TEST_MAIN

Definition at line 17 of file CathodeSegmentation.cxx.

◆ BOOST_TEST_MODULE

#define BOOST_TEST_MODULE   Test MCHMappingTest CathodeSegmentation
Author
Laurent Aphecetche

Definition at line 15 of file CathodeSegmentation.cxx.

Function Documentation

◆ BOOST_AUTO_TEST_CASE() [1/21]

BOOST_AUTO_TEST_CASE ( BendingBoundingBox  )

Definition at line 137 of file CathodeSegmentation.cxx.

◆ BOOST_AUTO_TEST_CASE() [2/21]

BOOST_AUTO_TEST_CASE ( CheckAssignment  )

Definition at line 380 of file CathodeSegmentation.cxx.

◆ BOOST_AUTO_TEST_CASE() [3/21]

BOOST_AUTO_TEST_CASE ( CheckCopy  )

Definition at line 373 of file CathodeSegmentation.cxx.

◆ BOOST_AUTO_TEST_CASE() [4/21]

BOOST_AUTO_TEST_CASE ( CheckPositionOfOnePadInDE100Bending  )

Definition at line 363 of file CathodeSegmentation.cxx.

◆ BOOST_AUTO_TEST_CASE() [5/21]

BOOST_AUTO_TEST_CASE ( CountPadsInCathodeSegmentations  )

Definition at line 241 of file CathodeSegmentation.cxx.

◆ BOOST_AUTO_TEST_CASE() [6/21]

BOOST_AUTO_TEST_CASE ( DualSampasWithLessThan64Pads  )

Definition at line 266 of file CathodeSegmentation.cxx.

◆ BOOST_AUTO_TEST_CASE() [7/21]

BOOST_AUTO_TEST_CASE ( GetCathodeSegmentationMustNotThrowIfDetElemIdIsValid  )

Definition at line 48 of file CathodeSegmentation.cxx.

◆ BOOST_AUTO_TEST_CASE() [8/21]

BOOST_AUTO_TEST_CASE ( GetCathodeSegmentationThrowsIfDetElemIdIsNotValid  )

Definition at line 56 of file CathodeSegmentation.cxx.

◆ BOOST_AUTO_TEST_CASE() [9/21]

BOOST_AUTO_TEST_CASE ( HasPadByPosition  )

Definition at line 358 of file CathodeSegmentation.cxx.

◆ BOOST_AUTO_TEST_CASE() [10/21]

BOOST_AUTO_TEST_CASE ( LoopOnCathodeSegmentations  )

Definition at line 257 of file CathodeSegmentation.cxx.

◆ BOOST_AUTO_TEST_CASE() [11/21]

BOOST_AUTO_TEST_CASE ( NofBendingFEC  )

Definition at line 187 of file CathodeSegmentation.cxx.

◆ BOOST_AUTO_TEST_CASE() [12/21]

BOOST_AUTO_TEST_CASE ( NofBendingPads  )

Definition at line 62 of file CathodeSegmentation.cxx.

◆ BOOST_AUTO_TEST_CASE() [13/21]

BOOST_AUTO_TEST_CASE ( NofNonBendingFEC  )

Definition at line 212 of file CathodeSegmentation.cxx.

◆ BOOST_AUTO_TEST_CASE() [14/21]

BOOST_AUTO_TEST_CASE ( NofNonBendingPads  )

Definition at line 91 of file CathodeSegmentation.cxx.

◆ BOOST_AUTO_TEST_CASE() [15/21]

BOOST_AUTO_TEST_CASE ( NonBendingBoundingBox  )

Definition at line 162 of file CathodeSegmentation.cxx.

◆ BOOST_AUTO_TEST_CASE() [16/21]

BOOST_AUTO_TEST_CASE ( NumberOfDetectionElementsIs156  )

Definition at line 41 of file CathodeSegmentation.cxx.

◆ BOOST_AUTO_TEST_CASE() [17/21]

BOOST_AUTO_TEST_CASE ( ReturnsFalseIfCatPadIdIsOutOfRange  )

Definition at line 329 of file CathodeSegmentation.cxx.

◆ BOOST_AUTO_TEST_CASE() [18/21]

BOOST_AUTO_TEST_CASE ( ReturnsFalseIfPadIsNotConnected  )

Definition at line 348 of file CathodeSegmentation.cxx.

◆ BOOST_AUTO_TEST_CASE() [19/21]

BOOST_AUTO_TEST_CASE ( ReturnsTrueIfPadIsConnected  )

Definition at line 343 of file CathodeSegmentation.cxx.

◆ BOOST_AUTO_TEST_CASE() [20/21]

BOOST_AUTO_TEST_CASE ( ThrowsIfDualSampaChannelIsNotBetween0And63  )

Definition at line 323 of file CathodeSegmentation.cxx.

◆ BOOST_AUTO_TEST_CASE() [21/21]

BOOST_AUTO_TEST_CASE ( TotalNofBendingFECInSegTypes  )

Definition at line 121 of file CathodeSegmentation.cxx.