Project
Loading...
Searching...
No Matches
testGeometryTransformer.cxx File Reference
#include <boost/test/unit_test.hpp>
#include "MCHGeometryCreator/Geometry.h"
#include "MCHGeometryTest/Helpers.h"
#include "MCHGeometryTransformer/Transformations.h"
#include "TGeoManager.h"
#include "boost/format.hpp"
#include <boost/test/data/test_case.hpp>
#include <fstream>
#include <iomanip>
#include <iostream>
#include <fmt/format.h>
#include <random>

Go to the source code of this file.

Macros

#define BOOST_TEST_MODULE   Test MCHSimulation GeometryTransformer
 
#define BOOST_TEST_DYN_LINK
 

Functions

o2::mch::geo::TransformationCreator transformation (int i)
 
void dumpMat (gsl::span< double > m)
 
std::string asString (const CoarseLocation &q)
 
bool operator== (const CoarseLocation &a, const CoarseLocation &b)
 
CoarseLocation getDetElemCoarseLocation (int detElemId, o2::mch::geo::TransformationCreator transformation)
 
void setExpectation (int firstDeId, int lastDeId, CoarseLocation q, std::map< int, CoarseLocation > &expected)
 
 for (int i=0;i< 4;i++)
 
 for (auto detElemId :o2::mch::geo::allDeIds)
 
 BOOST_AUTO_TEST_CASE (Angle2Matrix2Angle)
 

Variables

constexpr int ntrans {2}
 
constexpr double rad2deg = 180.0 / 3.14159265358979323846
 
constexpr double deg2rad = 3.14159265358979323846 / 180.0
 
constexpr CoarseLocation topRight {true, true}
 
constexpr CoarseLocation topLeft {false, true}
 
constexpr CoarseLocation bottomRight {true, false}
 
constexpr CoarseLocation bottomLeft {false, false}
 

Macro Definition Documentation

◆ BOOST_TEST_DYN_LINK

#define BOOST_TEST_DYN_LINK

Definition at line 16 of file testGeometryTransformer.cxx.

◆ BOOST_TEST_MODULE

#define BOOST_TEST_MODULE   Test MCHSimulation GeometryTransformer
Author
Laurent Aphecetche

Definition at line 15 of file testGeometryTransformer.cxx.

Function Documentation

◆ asString()

std::string asString ( const CoarseLocation &  q)

Definition at line 99 of file testGeometryTransformer.cxx.

◆ BOOST_AUTO_TEST_CASE()

BOOST_AUTO_TEST_CASE ( Angle2Matrix2Angle  )

Definition at line 199 of file testGeometryTransformer.cxx.

◆ dumpMat()

void dumpMat ( gsl::span< double >  m)

Definition at line 62 of file testGeometryTransformer.cxx.

◆ for() [1/2]

for ( auto detElemId :o2::mch::geo::allDeIds  )

Definition at line 189 of file testGeometryTransformer.cxx.

◆ for() [2/2]

for ( )

Definition at line 167 of file testGeometryTransformer.cxx.

◆ getDetElemCoarseLocation()

CoarseLocation getDetElemCoarseLocation ( int  detElemId,
o2::mch::geo::TransformationCreator  transformation 
)

Definition at line 111 of file testGeometryTransformer.cxx.

◆ operator==()

bool operator== ( const CoarseLocation &  a,
const CoarseLocation &  b 
)

Definition at line 106 of file testGeometryTransformer.cxx.

◆ setExpectation()

void setExpectation ( int  firstDeId,
int  lastDeId,
CoarseLocation  q,
std::map< int, CoarseLocation > &  expected 
)

Definition at line 156 of file testGeometryTransformer.cxx.

◆ transformation()

Definition at line 38 of file testGeometryTransformer.cxx.

Variable Documentation

◆ bottomLeft

constexpr CoarseLocation bottomLeft {false, false}
constexpr

Definition at line 97 of file testGeometryTransformer.cxx.

◆ bottomRight

constexpr CoarseLocation bottomRight {true, false}
constexpr

Definition at line 96 of file testGeometryTransformer.cxx.

◆ deg2rad

constexpr double deg2rad = 3.14159265358979323846 / 180.0
constexpr

Definition at line 60 of file testGeometryTransformer.cxx.

◆ ntrans

constexpr int ntrans {2}
constexpr

Definition at line 36 of file testGeometryTransformer.cxx.

◆ rad2deg

constexpr double rad2deg = 180.0 / 3.14159265358979323846
constexpr

Definition at line 59 of file testGeometryTransformer.cxx.

◆ topLeft

constexpr CoarseLocation topLeft {false, true}
constexpr

Definition at line 95 of file testGeometryTransformer.cxx.

◆ topRight

constexpr CoarseLocation topRight {true, true}
constexpr

Definition at line 94 of file testGeometryTransformer.cxx.