Analysis Software
Documentation for sPHENIX simulation software
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Groups Pages
SurfaceIntersectionBenchmark.cpp File Reference
#include <boost/test/data/test_case.hpp>
#include <boost/test/tools/output_test_stream.hpp>
#include <boost/test/unit_test.hpp>
#include "Acts/Definitions/Units.hpp"
#include "Acts/Geometry/GeometryContext.hpp"
#include "Acts/Surfaces/CylinderBounds.hpp"
#include "Acts/Surfaces/CylinderSurface.hpp"
#include "Acts/Surfaces/DiscSurface.hpp"
#include "Acts/Surfaces/PlaneSurface.hpp"
#include "Acts/Surfaces/RadialBounds.hpp"
#include "Acts/Surfaces/RectangleBounds.hpp"
#include "Acts/Surfaces/StrawSurface.hpp"
#include "Acts/Tests/CommonHelpers/BenchmarkTools.hpp"
#include <cmath>
+ Include dependency graph for SurfaceIntersectionBenchmark.cpp:

Go to the source code of this file.

Namespaces

namespace  Acts
 Acts includes to create all necessary definitions.
 
namespace  Acts::Test
 

Functions

Vector3 Acts::Test::origin (0., 0., 0.)
 
Vector3 Acts::Test::originStraw (0.3_m,-0.2_m, 11_m)
 
template<typename surface_t >
MicroBenchmarkResult Acts::Test::intersectionTest (const surface_t &surface, double phi, double theta)
 
 Acts::Test::BOOST_DATA_TEST_CASE (benchmark_surface_intersections, bdata::random((bdata::seed=21, bdata::distribution=std::uniform_real_distribution<>(-M_PI, M_PI)))^bdata::random((bdata::seed=22, bdata::distribution=std::uniform_real_distribution<>(-0.3, 0.3)))^bdata::xrange(ntests), phi, theta, index)
 

Variables

unsigned int Acts::Test::ntests = 10
 
unsigned int Acts::Test::nrepts = 2000
 
const bool Acts::Test::boundaryCheck = false
 
const bool Acts::Test::testPlane = true
 
const bool Acts::Test::testDisc = true
 
const bool Acts::Test::testCylinder = true
 
const bool Acts::Test::testStraw = true
 
GeometryContext Acts::Test::tgContext = GeometryContext()
 
Transform3 Acts::Test::at
 
auto Acts::Test::rb = std::make_shared<RectangleBounds>(1_m, 1_m)
 
auto Acts::Test::aPlane = Surface::makeShared<PlaneSurface>(at, std::move(rb))
 
auto Acts::Test::db = std::make_shared<RadialBounds>(0.2_m, 1.2_m)
 
auto Acts::Test::aDisc = Surface::makeShared<DiscSurface>(at, std::move(db))
 
auto Acts::Test::cb = std::make_shared<CylinderBounds>(10_m, 100_m)
 
auto Acts::Test::aCylinder = Surface::makeShared<CylinderSurface>(at, std::move(cb))
 
auto Acts::Test::aStraw = Surface::makeShared<StrawSurface>(at, 50_cm, 2_m)