Project
Loading...
Searching...
No Matches
testElectronicMapper.cxx File Reference
#include "ElectronicMapperImplHelper.h"
#include <boost/test/unit_test.hpp>
#include "MCHRawElecMap/Mapper.h"
#include "dslist.h"
#include <array>
#include <boost/mpl/list.hpp>
#include <fmt/format.h>
#include <gsl/span>
#include <set>

Go to the source code of this file.

Macros

#define BOOST_TEST_MODULE   Test MCHRaw CRUEncoder
 
#define BOOST_TEST_MAIN
 
#define BOOST_TEST_DYN_LINK
 

Typedefs

typedef boost::mpl::list< o2::mch::raw::ElectronicMapperDummy, o2::mch::raw::ElectronicMapperGeneratedtestTypes
 
typedef boost::mpl::list< o2::mch::raw::ElectronicMapperGeneratedrealTypes
 

Functions

template<size_t N>
std::set< intnofDualSampas (std::array< int, N > deIds)
 
template<typename T >
std::set< intnofDualSampasFromMapper (gsl::span< int > deids)
 
 BOOST_AUTO_TEST_CASE_TEMPLATE (MustContainAllSampaCH1R, T, testTypes)
 
 BOOST_AUTO_TEST_CASE_TEMPLATE (MustContainAllSampaCH1L, T, testTypes)
 
 BOOST_AUTO_TEST_CASE_TEMPLATE (MustContainAllSampaCH2R, T, testTypes)
 
 BOOST_AUTO_TEST_CASE_TEMPLATE (MustContainAllSampaCH2L, T, testTypes)
 
 BOOST_AUTO_TEST_CASE_TEMPLATE (MustContainAllSampaCH3R, T, testTypes)
 
 BOOST_AUTO_TEST_CASE_TEMPLATE (MustContainAllSampaCH3L, T, testTypes)
 
 BOOST_AUTO_TEST_CASE_TEMPLATE (MustContainAllSampaCH4R, T, testTypes)
 
 BOOST_AUTO_TEST_CASE_TEMPLATE (MustContainAllSampaCH4L, T, testTypes)
 
 BOOST_AUTO_TEST_CASE_TEMPLATE (MustContainAllSampaCH5R, T, testTypes)
 
 BOOST_AUTO_TEST_CASE_TEMPLATE (MustContainAllSampaCH5L, T, testTypes)
 
 BOOST_AUTO_TEST_CASE_TEMPLATE (MustContainAllSampaCH6R, T, testTypes)
 
 BOOST_AUTO_TEST_CASE_TEMPLATE (MustContainAllSampaCH6L, T, testTypes)
 
 BOOST_AUTO_TEST_CASE_TEMPLATE (MustContainAllSampaCH7R, T, testTypes)
 
 BOOST_AUTO_TEST_CASE_TEMPLATE (MustContainAllSampaCH7L, T, testTypes)
 
 BOOST_AUTO_TEST_CASE_TEMPLATE (MustContainAllSampaCH8R, T, testTypes)
 
 BOOST_AUTO_TEST_CASE_TEMPLATE (MustContainAllSampaCH8L, T, testTypes)
 
 BOOST_AUTO_TEST_CASE_TEMPLATE (MustContainAllSampaCH9R, T, testTypes)
 
 BOOST_AUTO_TEST_CASE_TEMPLATE (MustContainAllSampaCH9L, T, testTypes)
 
 BOOST_AUTO_TEST_CASE_TEMPLATE (MustContainAllSampaCH10R, T, testTypes)
 
 BOOST_AUTO_TEST_CASE_TEMPLATE (MustContainAllSampaCH10L, T, testTypes)
 
 BOOST_AUTO_TEST_CASE_TEMPLATE (CheckNumberOfSolarsPerDetectionElement, T, realTypes)
 
template<typename T >
int expectedNumberOfSolars ()
 
template<>
int expectedNumberOfSolars< ElectronicMapperDummy > ()
 
template<>
int expectedNumberOfSolars< ElectronicMapperGenerated > ()
 
template<typename T >
int expectedNumberOfDs ()
 
template<>
int expectedNumberOfDs< ElectronicMapperDummy > ()
 
template<>
int expectedNumberOfDs< ElectronicMapperGenerated > ()
 
 BOOST_AUTO_TEST_CASE_TEMPLATE (AllSolarsMustGetAFeeLinkAndTheReverse, T, testTypes)
 
 BOOST_AUTO_TEST_CASE_TEMPLATE (CheckNumberOfSolars, T, testTypes)
 
 BOOST_AUTO_TEST_CASE_TEMPLATE (CheckNumberOfDsElecId, T, testTypes)
 
 BOOST_AUTO_TEST_CASE_TEMPLATE (CheckAFewSolarIdThatMustHaveAFeeLinkd, T, testTypes)
 
 BOOST_AUTO_TEST_CASE (SpotCheck)
 
 BOOST_AUTO_TEST_CASE (NumberOfSolarsPerFeeId)
 
 BOOST_AUTO_TEST_CASE (NumberOfDualSampasPerFeeId)
 
 BOOST_AUTO_TEST_CASE (CircularSolarId2IndexCheck)
 

Variables

auto dslist = createDualSampaMapper()
 

Macro Definition Documentation

◆ BOOST_TEST_DYN_LINK

#define BOOST_TEST_DYN_LINK

Definition at line 15 of file testElectronicMapper.cxx.

◆ BOOST_TEST_MAIN

#define BOOST_TEST_MAIN

Definition at line 14 of file testElectronicMapper.cxx.

◆ BOOST_TEST_MODULE

#define BOOST_TEST_MODULE   Test MCHRaw CRUEncoder

Definition at line 13 of file testElectronicMapper.cxx.

Typedef Documentation

◆ realTypes

Definition at line 35 of file testElectronicMapper.cxx.

◆ testTypes

Function Documentation

◆ BOOST_AUTO_TEST_CASE() [1/4]

BOOST_AUTO_TEST_CASE ( CircularSolarId2IndexCheck  )

Definition at line 685 of file testElectronicMapper.cxx.

◆ BOOST_AUTO_TEST_CASE() [2/4]

BOOST_AUTO_TEST_CASE ( NumberOfDualSampasPerFeeId  )

Definition at line 600 of file testElectronicMapper.cxx.

◆ BOOST_AUTO_TEST_CASE() [3/4]

BOOST_AUTO_TEST_CASE ( NumberOfSolarsPerFeeId  )

Definition at line 522 of file testElectronicMapper.cxx.

◆ BOOST_AUTO_TEST_CASE() [4/4]

BOOST_AUTO_TEST_CASE ( SpotCheck  )

Definition at line 514 of file testElectronicMapper.cxx.

◆ BOOST_AUTO_TEST_CASE_TEMPLATE() [1/25]

BOOST_AUTO_TEST_CASE_TEMPLATE ( AllSolarsMustGetAFeeLinkAndTheReverse  ,
,
testTypes   
)

Definition at line 478 of file testElectronicMapper.cxx.

◆ BOOST_AUTO_TEST_CASE_TEMPLATE() [2/25]

BOOST_AUTO_TEST_CASE_TEMPLATE ( CheckAFewSolarIdThatMustHaveAFeeLinkd  ,
,
testTypes   
)

Definition at line 503 of file testElectronicMapper.cxx.

◆ BOOST_AUTO_TEST_CASE_TEMPLATE() [3/25]

BOOST_AUTO_TEST_CASE_TEMPLATE ( CheckNumberOfDsElecId  ,
,
testTypes   
)

Definition at line 495 of file testElectronicMapper.cxx.

◆ BOOST_AUTO_TEST_CASE_TEMPLATE() [4/25]

BOOST_AUTO_TEST_CASE_TEMPLATE ( CheckNumberOfSolars  ,
,
testTypes   
)

Definition at line 489 of file testElectronicMapper.cxx.

◆ BOOST_AUTO_TEST_CASE_TEMPLATE() [5/25]

BOOST_AUTO_TEST_CASE_TEMPLATE ( CheckNumberOfSolarsPerDetectionElement  ,
,
realTypes   
)

Definition at line 258 of file testElectronicMapper.cxx.

◆ BOOST_AUTO_TEST_CASE_TEMPLATE() [6/25]

BOOST_AUTO_TEST_CASE_TEMPLATE ( MustContainAllSampaCH10L  ,
,
testTypes   
)

Definition at line 248 of file testElectronicMapper.cxx.

◆ BOOST_AUTO_TEST_CASE_TEMPLATE() [7/25]

BOOST_AUTO_TEST_CASE_TEMPLATE ( MustContainAllSampaCH10R  ,
,
testTypes   
)

Definition at line 241 of file testElectronicMapper.cxx.

◆ BOOST_AUTO_TEST_CASE_TEMPLATE() [8/25]

BOOST_AUTO_TEST_CASE_TEMPLATE ( MustContainAllSampaCH1L  ,
,
testTypes   
)

Definition at line 114 of file testElectronicMapper.cxx.

◆ BOOST_AUTO_TEST_CASE_TEMPLATE() [9/25]

BOOST_AUTO_TEST_CASE_TEMPLATE ( MustContainAllSampaCH1R  ,
,
testTypes   
)

Definition at line 106 of file testElectronicMapper.cxx.

◆ BOOST_AUTO_TEST_CASE_TEMPLATE() [10/25]

BOOST_AUTO_TEST_CASE_TEMPLATE ( MustContainAllSampaCH2L  ,
,
testTypes   
)

Definition at line 130 of file testElectronicMapper.cxx.

◆ BOOST_AUTO_TEST_CASE_TEMPLATE() [11/25]

BOOST_AUTO_TEST_CASE_TEMPLATE ( MustContainAllSampaCH2R  ,
,
testTypes   
)

Definition at line 122 of file testElectronicMapper.cxx.

◆ BOOST_AUTO_TEST_CASE_TEMPLATE() [12/25]

BOOST_AUTO_TEST_CASE_TEMPLATE ( MustContainAllSampaCH3L  ,
,
testTypes   
)

Definition at line 146 of file testElectronicMapper.cxx.

◆ BOOST_AUTO_TEST_CASE_TEMPLATE() [13/25]

BOOST_AUTO_TEST_CASE_TEMPLATE ( MustContainAllSampaCH3R  ,
,
testTypes   
)

Definition at line 138 of file testElectronicMapper.cxx.

◆ BOOST_AUTO_TEST_CASE_TEMPLATE() [14/25]

BOOST_AUTO_TEST_CASE_TEMPLATE ( MustContainAllSampaCH4L  ,
,
testTypes   
)

Definition at line 162 of file testElectronicMapper.cxx.

◆ BOOST_AUTO_TEST_CASE_TEMPLATE() [15/25]

BOOST_AUTO_TEST_CASE_TEMPLATE ( MustContainAllSampaCH4R  ,
,
testTypes   
)

Definition at line 154 of file testElectronicMapper.cxx.

◆ BOOST_AUTO_TEST_CASE_TEMPLATE() [16/25]

BOOST_AUTO_TEST_CASE_TEMPLATE ( MustContainAllSampaCH5L  ,
,
testTypes   
)

Definition at line 178 of file testElectronicMapper.cxx.

◆ BOOST_AUTO_TEST_CASE_TEMPLATE() [17/25]

BOOST_AUTO_TEST_CASE_TEMPLATE ( MustContainAllSampaCH5R  ,
,
testTypes   
)

Definition at line 170 of file testElectronicMapper.cxx.

◆ BOOST_AUTO_TEST_CASE_TEMPLATE() [18/25]

BOOST_AUTO_TEST_CASE_TEMPLATE ( MustContainAllSampaCH6L  ,
,
testTypes   
)

Definition at line 192 of file testElectronicMapper.cxx.

◆ BOOST_AUTO_TEST_CASE_TEMPLATE() [19/25]

BOOST_AUTO_TEST_CASE_TEMPLATE ( MustContainAllSampaCH6R  ,
,
testTypes   
)

Definition at line 185 of file testElectronicMapper.cxx.

◆ BOOST_AUTO_TEST_CASE_TEMPLATE() [20/25]

BOOST_AUTO_TEST_CASE_TEMPLATE ( MustContainAllSampaCH7L  ,
,
testTypes   
)

Definition at line 206 of file testElectronicMapper.cxx.

◆ BOOST_AUTO_TEST_CASE_TEMPLATE() [21/25]

BOOST_AUTO_TEST_CASE_TEMPLATE ( MustContainAllSampaCH7R  ,
,
testTypes   
)

Definition at line 199 of file testElectronicMapper.cxx.

◆ BOOST_AUTO_TEST_CASE_TEMPLATE() [22/25]

BOOST_AUTO_TEST_CASE_TEMPLATE ( MustContainAllSampaCH8L  ,
,
testTypes   
)

Definition at line 220 of file testElectronicMapper.cxx.

◆ BOOST_AUTO_TEST_CASE_TEMPLATE() [23/25]

BOOST_AUTO_TEST_CASE_TEMPLATE ( MustContainAllSampaCH8R  ,
,
testTypes   
)

Definition at line 213 of file testElectronicMapper.cxx.

◆ BOOST_AUTO_TEST_CASE_TEMPLATE() [24/25]

BOOST_AUTO_TEST_CASE_TEMPLATE ( MustContainAllSampaCH9L  ,
,
testTypes   
)

Definition at line 234 of file testElectronicMapper.cxx.

◆ BOOST_AUTO_TEST_CASE_TEMPLATE() [25/25]

BOOST_AUTO_TEST_CASE_TEMPLATE ( MustContainAllSampaCH9R  ,
,
testTypes   
)

Definition at line 227 of file testElectronicMapper.cxx.

◆ expectedNumberOfDs()

template<typename T >
int expectedNumberOfDs ( )

◆ expectedNumberOfDs< ElectronicMapperDummy >()

Definition at line 467 of file testElectronicMapper.cxx.

◆ expectedNumberOfDs< ElectronicMapperGenerated >()

Definition at line 473 of file testElectronicMapper.cxx.

◆ expectedNumberOfSolars()

template<typename T >
int expectedNumberOfSolars ( )

◆ expectedNumberOfSolars< ElectronicMapperDummy >()

Definition at line 453 of file testElectronicMapper.cxx.

◆ expectedNumberOfSolars< ElectronicMapperGenerated >()

Definition at line 458 of file testElectronicMapper.cxx.

◆ nofDualSampas()

template<size_t N>
std::set< int > nofDualSampas ( std::array< int, N >  deIds)

Definition at line 65 of file testElectronicMapper.cxx.

◆ nofDualSampasFromMapper()

template<typename T >
std::set< int > nofDualSampasFromMapper ( gsl::span< int deids)

Definition at line 78 of file testElectronicMapper.cxx.

Variable Documentation

◆ dslist

auto dslist = createDualSampaMapper()

Definition at line 62 of file testElectronicMapper.cxx.