Analysis Software
Documentation for sPHENIX simulation software
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Groups Pages
Geant4ConvertersTests.cpp File Reference
#include <boost/test/unit_test.hpp>
#include "Acts/Definitions/Algebra.hpp"
#include "Acts/Geometry/GeometryContext.hpp"
#include "Acts/Material/ISurfaceMaterial.hpp"
#include "Acts/Material/Material.hpp"
#include "Acts/Material/MaterialSlab.hpp"
#include "Acts/Plugins/Geant4/Geant4Converters.hpp"
#include "Acts/Surfaces/CylinderBounds.hpp"
#include "Acts/Surfaces/LineBounds.hpp"
#include "Acts/Surfaces/RadialBounds.hpp"
#include "Acts/Surfaces/RectangleBounds.hpp"
#include "Acts/Surfaces/Surface.hpp"
#include "Acts/Surfaces/TrapezoidBounds.hpp"
#include "Acts/Tests/CommonHelpers/FloatComparisons.hpp"
#include <array>
#include <cmath>
#include <memory>
#include <stdexcept>
#include <tuple>
#include "G4Box.hh"
#include "G4LogicalVolume.hh"
#include "G4Material.hh"
#include "G4PVPlacement.hh"
#include "G4RotationMatrix.hh"
#include "G4SystemOfUnits.hh"
#include "G4ThreeVector.hh"
#include "G4Trd.hh"
#include "G4Tubs.hh"
#include "G4VPhysicalVolume.hh"
+ Include dependency graph for Geant4ConvertersTests.cpp:

Go to the source code of this file.

Functions

 BOOST_AUTO_TEST_CASE (Geant4AlgebraConversion)
 
 BOOST_AUTO_TEST_CASE (Geant4CylinderConversion)
 
 BOOST_AUTO_TEST_CASE (Geant4RadialConversion)
 
 BOOST_AUTO_TEST_CASE (Geant4LineConversion)
 
 BOOST_AUTO_TEST_CASE (Geant4BoxConversion)
 
 BOOST_AUTO_TEST_CASE (Geant4TrapzoidConversion)
 
 BOOST_AUTO_TEST_CASE (Geant4PlanarConversion)
 
 BOOST_AUTO_TEST_CASE (Geant4BoxVPhysConversion)
 
 BOOST_AUTO_TEST_CASE (Geant4CylVPhysConversion)
 
 BOOST_AUTO_TEST_CASE (Geant4VDiscVPhysConversion)
 
 BOOST_AUTO_TEST_CASE (Geant4LineVPhysConversion)
 

Variables

Acts::GeometryContext tContext
 
Acts::ActsScalar rho = 1.2345
 
G4Material * g4Material = new G4Material("Material", 6., 12., rho)
 

Function Documentation

BOOST_AUTO_TEST_CASE ( Geant4AlgebraConversion  )

Definition at line 49 of file Geant4ConvertersTests.cpp.

View newest version in sPHENIX GitHub at line 49 of file Geant4ConvertersTests.cpp

References Acts::Geant4AlgebraConverter::transform().

+ Here is the call graph for this function:

BOOST_AUTO_TEST_CASE ( Geant4CylinderConversion  )

Definition at line 66 of file Geant4ConvertersTests.cpp.

View newest version in sPHENIX GitHub at line 66 of file Geant4ConvertersTests.cpp

References bounds, CHECK_CLOSE_ABS, Acts::Geant4ShapeConverter::cylinderBounds(), Acts::UnitConstants::e, eR, and thickness.

+ Here is the call graph for this function:

BOOST_AUTO_TEST_CASE ( Geant4RadialConversion  )

Definition at line 83 of file Geant4ConvertersTests.cpp.

View newest version in sPHENIX GitHub at line 83 of file Geant4ConvertersTests.cpp

References bounds, CHECK_CLOSE_ABS, Acts::UnitConstants::e, Acts::Geant4ShapeConverter::radialBounds(), and thickness.

+ Here is the call graph for this function:

BOOST_AUTO_TEST_CASE ( Geant4LineConversion  )

Definition at line 98 of file Geant4ConvertersTests.cpp.

View newest version in sPHENIX GitHub at line 98 of file Geant4ConvertersTests.cpp

References bounds, CHECK_CLOSE_ABS, Acts::UnitConstants::e, eR, line, and Acts::Geant4ShapeConverter::lineBounds().

+ Here is the call graph for this function:

BOOST_AUTO_TEST_CASE ( Geant4BoxConversion  )

Definition at line 106 of file Geant4ConvertersTests.cpp.

View newest version in sPHENIX GitHub at line 106 of file Geant4ConvertersTests.cpp

References Acts::Svg::axesXY(), CHECK_CLOSE_ABS, Acts::UnitConstants::e, and Acts::Geant4ShapeConverter::rectangleBounds().

+ Here is the call graph for this function:

BOOST_AUTO_TEST_CASE ( Geant4TrapzoidConversion  )

Definition at line 146 of file Geant4ConvertersTests.cpp.

View newest version in sPHENIX GitHub at line 146 of file Geant4ConvertersTests.cpp

References Acts::Svg::axesXY(), CHECK_CLOSE_ABS, Acts::UnitConstants::e, and Acts::Geant4ShapeConverter::trapezoidBounds().

+ Here is the call graph for this function:

BOOST_AUTO_TEST_CASE ( Geant4PlanarConversion  )

Definition at line 216 of file Geant4ConvertersTests.cpp.

View newest version in sPHENIX GitHub at line 216 of file Geant4ConvertersTests.cpp

References Acts::Geant4ShapeConverter::planarBounds(), and rBounds.

+ Here is the call graph for this function:

BOOST_AUTO_TEST_CASE ( Geant4BoxVPhysConversion  )

Definition at line 230 of file Geant4ConvertersTests.cpp.

View newest version in sPHENIX GitHub at line 230 of file Geant4ConvertersTests.cpp

References CHECK_CLOSE_ABS, CHECK_CLOSE_REL, g4Material, material, rho, Acts::Geant4PhysicalVolumeConverter::surface(), and thickness.

+ Here is the call graph for this function:

BOOST_AUTO_TEST_CASE ( Geant4CylVPhysConversion  )

CHECK exception throwing

Definition at line 281 of file Geant4ConvertersTests.cpp.

View newest version in sPHENIX GitHub at line 281 of file Geant4ConvertersTests.cpp

References CHECK_CLOSE_ABS, CHECK_CLOSE_REL, g4Material, material, rho, Acts::Geant4PhysicalVolumeConverter::surface(), and thickness.

+ Here is the call graph for this function:

BOOST_AUTO_TEST_CASE ( Geant4VDiscVPhysConversion  )

Definition at line 323 of file Geant4ConvertersTests.cpp.

View newest version in sPHENIX GitHub at line 323 of file Geant4ConvertersTests.cpp

References CHECK_CLOSE_ABS, g4Material, material, rho, Acts::Geant4PhysicalVolumeConverter::surface(), and thickness.

+ Here is the call graph for this function:

BOOST_AUTO_TEST_CASE ( Geant4LineVPhysConversion  )

Definition at line 355 of file Geant4ConvertersTests.cpp.

View newest version in sPHENIX GitHub at line 355 of file Geant4ConvertersTests.cpp

References g4Material, Acts::Geant4PhysicalVolumeConverter::surface(), and thickness.

+ Here is the call graph for this function:

Variable Documentation

G4Material* g4Material = new G4Material("Material", 6., 12., rho)

Definition at line 45 of file Geant4ConvertersTests.cpp.

View newest version in sPHENIX GitHub at line 45 of file Geant4ConvertersTests.cpp

Referenced by BOOST_AUTO_TEST_CASE(), and Acts::Geant4PhysicalVolumeConverter::surface().

Definition at line 42 of file Geant4ConvertersTests.cpp.

View newest version in sPHENIX GitHub at line 42 of file Geant4ConvertersTests.cpp