Project
Loading...
Searching...
No Matches
testGeometry.cxx File Reference
#include <boost/test/unit_test.hpp>
#include <boost/test/data/test_case.hpp>
#include <fstream>
#include <iostream>
#include "MathUtils/Cartesian.h"
#include "TGeoManager.h"
#include "MIDSimulation/Geometry.h"
#include "MIDBase/GeometryTransformer.h"

Go to the source code of this file.

Classes

struct  LocalPoint
 

Macros

#define BOOST_TEST_MODULE   Test MID simulation
 
#define BOOST_TEST_DYN_LINK
 

Functions

void createStandaloneGeometry (const char *name)
 
std::vector< LocalPointgetPositions (int npoints)
 
bool areEqual (double a, double b)
 
bool areEqual (const o2::math_utils::Point3D< double > &p1, const o2::math_utils::Point3D< double > &p2)
 
int testOnePosition (const LocalPoint &localPt, const o2::mid::GeometryTransformer &geoTrans, const o2::mid::GeometryTransformer &geoTransFromManager)
 
 BOOST_AUTO_TEST_CASE (TestTransformations)
 

Macro Definition Documentation

◆ BOOST_TEST_DYN_LINK

#define BOOST_TEST_DYN_LINK

Definition at line 16 of file testGeometry.cxx.

◆ BOOST_TEST_MODULE

#define BOOST_TEST_MODULE   Test MID simulation
Author
Diego Stocco

Definition at line 15 of file testGeometry.cxx.

Function Documentation

◆ areEqual() [1/2]

bool areEqual ( const o2::math_utils::Point3D< double > &  p1,
const o2::math_utils::Point3D< double > &  p2 
)

Definition at line 76 of file testGeometry.cxx.

◆ areEqual() [2/2]

bool areEqual ( double  a,
double  b 
)

Definition at line 71 of file testGeometry.cxx.

◆ BOOST_AUTO_TEST_CASE()

BOOST_AUTO_TEST_CASE ( TestTransformations  )

Definition at line 102 of file testGeometry.cxx.

◆ createStandaloneGeometry()

void createStandaloneGeometry ( const char name)

Create standalone geometry for geometry transformation tests

Definition at line 33 of file testGeometry.cxx.

◆ getPositions()

std::vector< LocalPoint > getPositions ( int  npoints)

Definition at line 55 of file testGeometry.cxx.

◆ testOnePosition()

int testOnePosition ( const LocalPoint localPt,
const o2::mid::GeometryTransformer geoTrans,
const o2::mid::GeometryTransformer geoTransFromManager 
)

Definition at line 90 of file testGeometry.cxx.