17#define BOOST_TEST_MODULE Test TrackResidualsTest class
18#define BOOST_TEST_MAIN
19#define BOOST_TEST_DYN_LINK
20#include <boost/test/unit_test.hpp>
35 std::vector<float> binY2X;
36 for (
int iBin = 0; iBin <= residUniform.
getNY2XBins(); ++iBin) {
37 binY2X.push_back(-1. + 2. / residUniform.
getNY2XBins() * iBin);
41 std::vector<float> binZ2X;
42 for (
int iBin = 0; iBin <= residUniform.
getNZ2XBins(); ++iBin) {
43 binZ2X.push_back(1. / residUniform.
getNZ2XBins() * iBin);
48 float x, p,
z, xRef, pRef, zRef;
49 for (
int ix = 0; ix < residUniform.
getNXBins(); ++ix) {
50 for (
int ip = 0; ip < residUniform.
getNY2XBins(); ++ip) {
51 for (
int iz = 0; iz < residUniform.
getNZ2XBins(); ++iz) {
54 BOOST_CHECK_SMALL(
x - xRef, 1e-6f);
55 BOOST_CHECK_SMALL(p - pRef, 1e-6f);
56 BOOST_CHECK_SMALL(
z - zRef, 1e-6f);
68 for (
int ix = 0; ix < resid.
getNXBins(); ++ix) {
69 const float halfWidth = 0.5f * mapper.getNumberOfPadsInRowSector(ix) * mapper.getPadRegionInfo(
Mapper::REGION[ix]).getPadWidth();
70 BOOST_CHECK_CLOSE(resid.
getMaxY2X(ix) * resid.
getX(ix), halfWidth, 1
e-3);
Timeframe settings Average distance in cm of events merged into Randomize distance around average distance of merged events Simulate correct bunch interactions instead of placing only the average number of events A value[n] sets TFlen for[n] collisions in Number of bunches per trainsort Number of bunch trains Instantaneous interaction rate Do not simulate border Total number of collisions to be placed in the interior of all time Do not select random but walk over array of events in stride steps h Event generator settings h configStandalone Use CPU for GPU Force usage of the specified GPU device no CPU fallback Continue processing after an error First event to Number of events to Number of iterations to Number of iterations to Number of initial iterations excluded from const char e
Definition of the TrackResiduals class.
static Mapper & instance(const std::string mappingDir="")
static constexpr unsigned REGION[PADROWS]
region for global pad row
void setY2XBinning(const std::vector< float > &binning)
void setZ2XBinning(const std::vector< float > &binning)
void getVoxelCoordinates(int isec, int ix, int ip, int iz, float &x, float &p, float &z) const
void initBinning()
Initializes the binning in X, Y/X and Z.
float getMaxY2X(int ix) const
GLdouble GLdouble GLdouble z
Global TPC definitions and constants.
BOOST_AUTO_TEST_CASE(ClusterHardware_test1)