Belle II Software development
MapHelperFunctionsTest Class Reference

function object that implements cosecans(x) == 1/cos(x) by tan(x) / sin(x). More...

Inheritance diagram for MapHelperFunctionsTest:

Protected Member Functions

virtual void SetUp ()
 set up the maps for the tests
 

Protected Attributes

i2dMap _map
 map filled with values obtained by sinHalf functor
 
i2dMultiMap _multimap
 multimap filled with values obtained by sinHalf functor
 
i2dMultiMap _nanMultiMap
 multimap filled with values obtained by secans functor -> contains a NaN!
 
i2dMap _nanMap
 map filled with values obtained by secans functor -> contains a NaN!
 
int _nEntries
 the number of pairs that will be put into the maps for the tests
 

Detailed Description

function object that implements cosecans(x) == 1/cos(x) by tan(x) / sin(x).

This construction should give a NaN if the argument is 0 (but hopefully cppcheck can be fooled to not raise a division by zero error) NOTE: it is tested if this actually is the case! function object that implements sin(i/2). This does give positive and negative weights, but no NaNs class for testing the helper functions from MapHelperFunctions.h

Definition at line 91 of file mapHelperFunctions.cc.

Member Function Documentation

◆ SetUp()

virtual void SetUp ( )
inlineprotectedvirtual

set up the maps for the tests

Definition at line 94 of file mapHelperFunctions.cc.

95 {
96 _nEntries = 20;
97 _map = createMap(_nEntries, sinHalf);
99 _nanMap = createMap(_nEntries, secans);
101 }
int _nEntries
the number of pairs that will be put into the maps for the tests
i2dMultiMap _multimap
multimap filled with values obtained by sinHalf functor
i2dMultiMap _nanMultiMap
multimap filled with values obtained by secans functor -> contains a NaN!
i2dMap _nanMap
map filled with values obtained by secans functor -> contains a NaN!
i2dMap _map
map filled with values obtained by sinHalf functor
i2dMap createMap(int nEntries, Functor funct)
create a multimap with
i2dMultiMap createMultiMap(int nEntries, Functor funct)
create a multimap with

Member Data Documentation

◆ _map

i2dMap _map
protected

map filled with values obtained by sinHalf functor

Definition at line 103 of file mapHelperFunctions.cc.

◆ _multimap

i2dMultiMap _multimap
protected

multimap filled with values obtained by sinHalf functor

Definition at line 104 of file mapHelperFunctions.cc.

◆ _nanMap

i2dMap _nanMap
protected

map filled with values obtained by secans functor -> contains a NaN!

Definition at line 106 of file mapHelperFunctions.cc.

◆ _nanMultiMap

i2dMultiMap _nanMultiMap
protected

multimap filled with values obtained by secans functor -> contains a NaN!

Definition at line 105 of file mapHelperFunctions.cc.

◆ _nEntries

int _nEntries
protected

the number of pairs that will be put into the maps for the tests

Definition at line 107 of file mapHelperFunctions.cc.


The documentation for this class was generated from the following file: