Project
Loading...
Searching...
No Matches
testGeometryCreator.cxx File Reference
#include <boost/test/unit_test.hpp>
#include "MCHGeometryCreator/Geometry.h"
#include "MCHGeometryTest/Helpers.h"
#include "TGeoManager.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 Geometry
 
#define BOOST_TEST_DYN_LINK
 
#define BOOST_TEST_MAIN
 

Functions

 BOOST_AUTO_TEST_CASE (CanGetAllChambers)
 
std::vector< TGeoNode * > getSlatNodes ()
 
std::vector< TGeoNode * > getQuadrantNodes ()
 
 BOOST_AUTO_TEST_CASE (GetRightNumberOfSlats)
 
 BOOST_AUTO_TEST_CASE (GetRightNumberOfQuadrants)
 
 BOOST_AUTO_TEST_CASE (GetDetElemVolumePath, *boost::unit_test::disabled() *boost::unit_test::label("debug"))
 
 BOOST_AUTO_TEST_CASE (TextualTreeDump)
 
 BOOST_AUTO_TEST_CASE (GetAlignableHalfChambers)
 
 BOOST_AUTO_TEST_CASE (GetAlignableDetectionElements)
 

Variables

const std::array< std::string, 8 > quadrantChamberNames
 
const std::array< std::string, 12 > slatChamberNames
 
const std::vector< std::vector< std::string > > deSymNames
 

Macro Definition Documentation

◆ BOOST_TEST_DYN_LINK

#define BOOST_TEST_DYN_LINK

Definition at line 16 of file testGeometryCreator.cxx.

◆ BOOST_TEST_MAIN

#define BOOST_TEST_MAIN

Definition at line 17 of file testGeometryCreator.cxx.

◆ BOOST_TEST_MODULE

#define BOOST_TEST_MODULE   Test MCHSimulation Geometry
Author
Laurent Aphecetche

Definition at line 15 of file testGeometryCreator.cxx.

Function Documentation

◆ BOOST_AUTO_TEST_CASE() [1/7]

BOOST_AUTO_TEST_CASE ( CanGetAllChambers  )

Definition at line 72 of file testGeometryCreator.cxx.

◆ BOOST_AUTO_TEST_CASE() [2/7]

BOOST_AUTO_TEST_CASE ( GetAlignableDetectionElements  )

Definition at line 174 of file testGeometryCreator.cxx.

◆ BOOST_AUTO_TEST_CASE() [3/7]

BOOST_AUTO_TEST_CASE ( GetAlignableHalfChambers  )

Definition at line 165 of file testGeometryCreator.cxx.

◆ BOOST_AUTO_TEST_CASE() [4/7]

BOOST_AUTO_TEST_CASE ( GetDetElemVolumePath  ,
boost::unit_test::disabled) *boost::unit_test::label("debug" 
)

Definition at line 124 of file testGeometryCreator.cxx.

◆ BOOST_AUTO_TEST_CASE() [5/7]

BOOST_AUTO_TEST_CASE ( GetRightNumberOfQuadrants  )

Definition at line 118 of file testGeometryCreator.cxx.

◆ BOOST_AUTO_TEST_CASE() [6/7]

BOOST_AUTO_TEST_CASE ( GetRightNumberOfSlats  )

Definition at line 112 of file testGeometryCreator.cxx.

◆ BOOST_AUTO_TEST_CASE() [7/7]

BOOST_AUTO_TEST_CASE ( TextualTreeDump  )

Definition at line 155 of file testGeometryCreator.cxx.

◆ getQuadrantNodes()

std::vector< TGeoNode * > getQuadrantNodes ( )

Definition at line 99 of file testGeometryCreator.cxx.

◆ getSlatNodes()

std::vector< TGeoNode * > getSlatNodes ( )

Definition at line 84 of file testGeometryCreator.cxx.

Variable Documentation

◆ deSymNames

const std::vector<std::vector<std::string> > deSymNames
Initial value:
{
{"DE100", "DE103"},
{"DE101", "DE102"},
{"DE200", "DE203"},
{"DE201", "DE202"},
{"DE300", "DE303"},
{"DE301", "DE302"},
{"DE400", "DE403"},
{"DE401", "DE402"},
{"DE500", "DE501", "DE502", "DE503", "DE504", "DE514", "DE515", "DE516", "DE517"},
{"DE505", "DE506", "DE507", "DE508", "DE509", "DE510", "DE511", "DE512", "DE513"},
{"DE600", "DE601", "DE602", "DE603", "DE604", "DE614", "DE615", "DE616", "DE617"},
{"DE605", "DE606", "DE607", "DE608", "DE609", "DE610", "DE611", "DE612", "DE613"},
{"DE700", "DE701", "DE702", "DE703", "DE704", "DE705", "DE706", "DE720", "DE721", "DE722", "DE723", "DE724", "DE725"},
{"DE707", "DE708", "DE709", "DE710", "DE711", "DE712", "DE713", "DE714", "DE715", "DE716", "DE717", "DE718", "DE719"},
{"DE800", "DE801", "DE802", "DE803", "DE804", "DE805", "DE806", "DE820", "DE821", "DE822", "DE823", "DE824", "DE825"},
{"DE807", "DE808", "DE809", "DE810", "DE811", "DE812", "DE813", "DE814", "DE815", "DE816", "DE817", "DE818", "DE819"},
{"DE900", "DE901", "DE902", "DE903", "DE904", "DE905", "DE906", "DE920", "DE921", "DE922", "DE923", "DE924", "DE925"},
{"DE907", "DE908", "DE909", "DE910", "DE911", "DE912", "DE913", "DE914", "DE915", "DE916", "DE917", "DE918", "DE919"},
{"DE1000", "DE1001", "DE1002", "DE1003", "DE1004", "DE1005", "DE1006", "DE1020", "DE1021", "DE1022", "DE1023", "DE1024", "DE1025"},
{"DE1007", "DE1008", "DE1009", "DE1010", "DE1011", "DE1012", "DE1013", "DE1014", "DE1015", "DE1016", "DE1017", "DE1018", "DE1019"}}

Definition at line 48 of file testGeometryCreator.cxx.

◆ quadrantChamberNames

const std::array<std::string, 8> quadrantChamberNames
Initial value:
{"SC01I", "SC01O", "SC02I", "SC02O", "SC03I", "SC03O",
"SC04I", "SC04O"}

Definition at line 42 of file testGeometryCreator.cxx.

◆ slatChamberNames

const std::array<std::string, 12> slatChamberNames
Initial value:
{"SC05I", "SC05O", "SC06I", "SC06O", "SC07I", "SC07O",
"SC08I", "SC08O", "SC09I", "SC09O", "SC10I", "SC10O"}

Definition at line 45 of file testGeometryCreator.cxx.