Project
Loading...
Searching...
No Matches
testGeometryMisAligner.cxx File Reference
#include <boost/test/unit_test.hpp>
#include "MCHGeometryCreator/Geometry.h"
#include "MCHGeometryTest/Helpers.h"
#include "MCHGeometryMisAligner/MisAligner.h"
#include "MCHGeometryTransformer/Transformations.h"
#include "TGeoManager.h"
#include "CommonConstants/MathConstants.h"
#include "MathUtils/Cartesian.h"
#include "Math/GenVector/Cartesian3D.h"
#include "boost/format.hpp"
#include <boost/test/data/test_case.hpp>
#include <iomanip>
#include <iostream>
#include <fmt/format.h>

Go to the source code of this file.

Classes

struct  GEOMETRY
 

Macros

#define BOOST_TEST_MODULE   Test MCHSimulation GeometryMisAligner
 
#define BOOST_TEST_DYN_LINK
 

Functions

aGMA misAlign (params)
 
 for (int i=0;i< nvols;i++)
 
aGMA setModuleCartMisAlig (0.1, 0.0, 0.2, 0.0, 0.3, 0.0)
 
aGMA setModuleAngMisAlig (0.0, 0.0, 0.0, 0.0, 0.0, 0.0)
 
tB100 LocalToMaster (o2::math_utils::Point3D< double >{0, 0, 0}, poB)
 
t100 LocalToMaster (o2::math_utils::Point3D< double >{0, 0, 0}, po)
 
 BOOST_TEST (po.X() - poB.X()==0.1)
 
 BOOST_TEST (po.Y() - poB.Y()==0.2)
 
 BOOST_TEST (po.Z() - poB.Z()==0.3)
 
aGMA setCartMisAlig (0.01, 0.0, 0.02, 0.0, 0.03, 0.0)
 
aGMA setAngMisAlig (0.0, 0.0, 0.0, 0.0, 0.0, 0.0)
 

Variables

std::vector< o2::detectors::AlignParamparams
 
o2::mch::geo::MisAligner aGMA
 
int nvols = params.size()
 
auto transformationB = o2::mch::geo::transformationFromTGeoManager(*gGeoManager)
 
auto tB100 = transformationB(100)
 
auto tB1000 = transformationB(1000)
 
o2::math_utils::Point3D< double > poB
 
auto transformation = o2::mch::geo::transformationFromTGeoManager(*gGeoManager)
 
auto t100 = transformation(100)
 
auto t1000 = transformation(1000)
 
o2::math_utils::Point3D< double > po
 

Macro Definition Documentation

◆ BOOST_TEST_DYN_LINK

#define BOOST_TEST_DYN_LINK

Definition at line 16 of file testGeometryMisAligner.cxx.

◆ BOOST_TEST_MODULE

#define BOOST_TEST_MODULE   Test MCHSimulation GeometryMisAligner
Author
Javier Castillo

Definition at line 15 of file testGeometryMisAligner.cxx.

Function Documentation

◆ BOOST_TEST() [1/3]

BOOST_TEST ( po.  X) - poB.X( = =0.1)

◆ BOOST_TEST() [2/3]

BOOST_TEST ( po.  Y) - poB.Y( = =0.2)

◆ BOOST_TEST() [3/3]

BOOST_TEST ( po.  Z) - poB.Z( = =0.3)

◆ for()

for ( )

Definition at line 64 of file testGeometryMisAligner.cxx.

◆ LocalToMaster() [1/2]

t1000 LocalToMaster ( o2::math_utils::Point3D< double >{0, 0, 0}  ,
po   
)

◆ LocalToMaster() [2/2]

tB1000 LocalToMaster ( o2::math_utils::Point3D< double >{0, 0, 0}  ,
poB   
)

◆ misAlign()

aGMA misAlign ( params  )

◆ setAngMisAlig()

aGMA setAngMisAlig ( 0.  0,
0.  0,
0.  0,
0.  0,
0.  0,
0.  0 
)

◆ setCartMisAlig()

aGMA setCartMisAlig ( 0.  01,
0.  0,
0.  02,
0.  0,
0.  03,
0.  0 
)

◆ setModuleAngMisAlig()

aGMA setModuleAngMisAlig ( 0.  0,
0.  0,
0.  0,
0.  0,
0.  0,
0.  0 
)

◆ setModuleCartMisAlig()

aGMA setModuleCartMisAlig ( 0.  1,
0.  0,
0.  2,
0.  0,
0.  3,
0.  0 
)

Variable Documentation

◆ aGMA

Definition at line 59 of file testGeometryMisAligner.cxx.

◆ nvols

int nvols = params.size()

Definition at line 63 of file testGeometryMisAligner.cxx.

◆ params

Initial value:
{
BOOST_REQUIRE(gGeoManager != nullptr)

Definition at line 56 of file testGeometryMisAligner.cxx.

◆ po

Definition at line 97 of file testGeometryMisAligner.cxx.

◆ poB

o2::math_utils::Point3D< double > poB

Definition at line 90 of file testGeometryMisAligner.cxx.

◆ t100

auto t100 = transformation(100)

Definition at line 95 of file testGeometryMisAligner.cxx.

◆ t1000

auto t1000 = transformation(1000)

Definition at line 96 of file testGeometryMisAligner.cxx.

◆ tB100

auto tB100 = transformationB(100)

Definition at line 88 of file testGeometryMisAligner.cxx.

◆ tB1000

auto tB1000 = transformationB(1000)

Definition at line 89 of file testGeometryMisAligner.cxx.

◆ transformation

auto transformation = o2::mch::geo::transformationFromTGeoManager(*gGeoManager)

Definition at line 94 of file testGeometryMisAligner.cxx.

◆ transformationB

auto transformationB = o2::mch::geo::transformationFromTGeoManager(*gGeoManager)

Definition at line 87 of file testGeometryMisAligner.cxx.