12#define BOOST_TEST_MODULE Test TOFIndex
13#define BOOST_TEST_MAIN
14#define BOOST_TEST_DYN_LINK
15#include <fairlogger/Logger.h>
18#include <TStopwatch.h>
19#include <boost/test/unit_test.hpp>
26 BOOST_TEST_CHECKPOINT(
"Starting");
27 Int_t indextof[5] = {0};
48 (
i == 15 ||
i == 14 ||
i == 13)) {
52 for (Int_t k = 0; k < nStrips; k++) {
60 Int_t indextofTest[5] = {0};
63 BOOST_CHECK_MESSAGE(indextof[0] == indextofTest[0],
64 "Different Sector ==> in:" << indextof[0]
67 BOOST_CHECK_MESSAGE(indextof[1] == indextofTest[1],
68 "Different Plate ==> in:" << indextof[1]
71 BOOST_CHECK_MESSAGE(indextof[2] == indextofTest[2],
72 "Different Strip ==> in:" << indextof[2]
75 BOOST_CHECK_MESSAGE(indextof[3] == indextofTest[3],
76 "Different PadZ ==> in:" << indextof[3]
79 BOOST_CHECK_MESSAGE(indextof[4] == indextofTest[4],
80 "Different PadX ==> in:" << indextof[4]
84 LOG(info) <<
"in:" << indextof[0] <<
", " << indextof[1] <<
", "
85 << indextof[2] <<
", " << indextof[3] <<
", "
86 << indextof[4] <<
" --> out:" << indextofTest[0] <<
", "
87 << indextofTest[1] <<
", " << indextofTest[2] <<
", "
88 << indextofTest[3] <<
", " << indextofTest[4]
89 <<
" (ch=" << chan <<
")";
96 BOOST_TEST_CHECKPOINT(
"Ending");
static constexpr Int_t NSECTORS
static constexpr Int_t NPADZ
static constexpr Int_t NSTRIPB
static constexpr Int_t NSTRIPC
static constexpr Int_t NSTRIPA
static void getVolumeIndices(Int_t index, Int_t *detId)
static Int_t getIndex(const Int_t *detId)
static constexpr Int_t NPLATES
static constexpr Int_t NPADX
static void InitIndices()
BOOST_AUTO_TEST_CASE(asynch_schedule_test)
LOG(info)<< "Compressed in "<< sw.CpuTime()<< " s"