Project
Loading...
Searching...
No Matches
testGeometry.cxx File Reference
#include <boost/test/unit_test.hpp>
#include <fmt/format.h>
#include "EMCALBase/Geometry.h"
#include <iostream>
#include <fstream>

Go to the source code of this file.

Macros

#define BOOST_TEST_MODULE   Test EMCAL Base
 
#define BOOST_TEST_MAIN
 
#define BOOST_TEST_DYN_LINK
 

Functions

std::tuple< int, int, int, intGetRefCellIndex (int CellId)
 
 BOOST_AUTO_TEST_CASE (Geometry_test)
 

Macro Definition Documentation

◆ BOOST_TEST_DYN_LINK

#define BOOST_TEST_DYN_LINK

Definition at line 13 of file testGeometry.cxx.

◆ BOOST_TEST_MAIN

#define BOOST_TEST_MAIN

Definition at line 12 of file testGeometry.cxx.

◆ BOOST_TEST_MODULE

#define BOOST_TEST_MODULE   Test EMCAL Base

Definition at line 11 of file testGeometry.cxx.

Function Documentation

◆ BOOST_AUTO_TEST_CASE()

BOOST_AUTO_TEST_CASE ( Geometry_test  )

\macro Test implementation of the EMCAL Geometry

Test coverage:

  • GetCellIndex (get #sm, #mod, phi index and eta index): all cells (0-17663)
  • Invalid CellId: exception test for cell -1 and 17664

Definition at line 27 of file testGeometry.cxx.

◆ GetRefCellIndex()

std::tuple< int, int, int, int > GetRefCellIndex ( int  CellId)

Definition at line 44 of file testGeometry.cxx.