Project
Loading...
Searching...
No Matches
testRegularGeometry.cxx
Go to the documentation of this file.
1// Copyright 2019-2020 CERN and copyright holders of ALICE O2.
2// See https://alice-o2.web.cern.ch/copyright for details of the copyright holders.
3// All rights not expressly granted are reserved.
4//
5// This software is distributed under the terms of the GNU General Public
6// License v3 (GPL Version 3), copied verbatim in the file "COPYING".
7//
8// In applying this license CERN does not waive the privileges and immunities
9// granted to it by virtue of its status as an Intergovernmental Organization
10// or submit itself to any jurisdiction.
11
12#define BOOST_TEST_MODULE Test MCHSimulation RegularGeometry
13#define BOOST_TEST_DYN_LINK
14
15#include <boost/test/unit_test.hpp>
16#include "DetectorsPassive/Absorber.h"
20#include "DetectorsPassive/Pipe.h"
23#include "TGeoManager.h"
24#include <boost/test/data/test_case.hpp>
25#include <fstream>
26#include <iomanip>
27#include <iostream>
28
30{
31 if (gGeoManager && gGeoManager->GetTopVolume()) {
32 std::cerr << "Can only call this function with an empty geometry, i.e. gGeoManager==nullptr "
33 << " or gGeoManager->GetTopVolume()==nullptr\n";
34 }
35 TGeoManager* g = new TGeoManager("MCH-BASICS", "ALICE MCH Regular Geometry");
36 o2::passive::Cave("CAVE", "Cave (for MCH Basics)").ConstructGeometry();
37 o2::passive::Dipole("DIPO", "Alice Dipole (for MCH Basics)").ConstructGeometry();
38 o2::passive::Compensator("COMP", "Alice Compensator Dipole (for MCH Basics)").ConstructGeometry();
39 o2::passive::Pipe("PIPE", "Beam pipe (for MCH Basics)").ConstructGeometry();
40 o2::passive::Shil("SHIL", "Small angle beam shield (for MCH Basics)").ConstructGeometry();
41 o2::passive::Absorber("ABSO", "Absorber (for MCH Basics)").ConstructGeometry();
42 BOOST_CHECK_NO_THROW((o2::mch::Detector(true).ConstructGeometry()));
43}
void ConstructGeometry() override
Definition Absorber.cxx:226
void ConstructGeometry() override
Definition Cave.cxx:61
void ConstructGeometry() override
void ConstructGeometry() override
Definition Dipole.cxx:135
void ConstructGeometry() override
Definition Pipe.cxx:67
void ConstructGeometry() override
Definition Shil.cxx:97
GLboolean GLboolean g
Definition glcorearb.h:1233
BOOST_AUTO_TEST_CASE(DoNotThrow)
BOOST_CHECK_NO_THROW(algorithm::merge(target, other))