Analysis Software
Documentation for sPHENIX simulation software
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Groups Pages
DetectorVolumeFindersTests.cpp File Reference
#include <boost/test/unit_test.hpp>
#include "Acts/Definitions/Algebra.hpp"
#include "Acts/Detector/Detector.hpp"
#include "Acts/Detector/DetectorVolume.hpp"
#include "Acts/Detector/PortalGenerators.hpp"
#include "Acts/Geometry/CylinderVolumeBounds.hpp"
#include "Acts/Geometry/GeometryContext.hpp"
#include "Acts/Navigation/DetectorVolumeFinders.hpp"
#include "Acts/Navigation/NavigationState.hpp"
#include "Acts/Navigation/SurfaceCandidatesUpdators.hpp"
#include "Acts/Utilities/BinningType.hpp"
#include "Acts/Utilities/detail/Axis.hpp"
#include "Acts/Utilities/detail/AxisFwd.hpp"
#include "Acts/Utilities/detail/Grid.hpp"
#include <array>
#include <cstddef>
#include <memory>
#include <stdexcept>
#include <tuple>
#include <utility>
#include <vector>
+ Include dependency graph for DetectorVolumeFindersTests.cpp:

Go to the source code of this file.

Functions

 BOOST_AUTO_TEST_CASE (RootVolumeFinder)
 
 BOOST_AUTO_TEST_CASE (IndexedDetectorVolumeFinder)
 

Variables

Acts::GeometryContext tContext
 
Acts::Experimental::NavigationState nState
 
Acts::ActsScalar r0 = 0.
 
Acts::ActsScalar r1 = 10.
 
Acts::ActsScalar r2 = 100.
 
Acts::ActsScalar r3 = 200.
 
Acts::ActsScalar zHalfL = 200.
 
Acts::Transform3 nominal = Acts::Transform3::Identity()
 
auto cyl0Bounds = std::make_unique<Acts::CylinderVolumeBounds>(r0, r1, zHalfL)
 
auto cyl1Bounds = std::make_unique<Acts::CylinderVolumeBounds>(r1, r2, zHalfL)
 
auto cyl2Bounds = std::make_unique<Acts::CylinderVolumeBounds>(r2, r3, zHalfL)
 
auto portalGenerator = Acts::Experimental::defaultPortalGenerator()
 
auto cyl0
 
auto cyl1
 
auto cyl2
 
std::vector< std::shared_ptr
< Acts::Experimental::DetectorVolume > > 
volumes012
 
auto det012
 

Function Documentation

BOOST_AUTO_TEST_CASE ( RootVolumeFinder  )

Definition at line 75 of file DetectorVolumeFindersTests.cpp.

View newest version in sPHENIX GitHub at line 75 of file DetectorVolumeFindersTests.cpp

References Acts::Experimental::NavigationState::currentDetector, Acts::Experimental::NavigationState::currentVolume, cyl0, cyl1, cyl2, det012, Acts::Experimental::NavigationState::position, and Acts::Experimental::RootVolumeFinder::update().

+ Here is the call graph for this function:

BOOST_AUTO_TEST_CASE ( IndexedDetectorVolumeFinder  )

Definition at line 96 of file DetectorVolumeFindersTests.cpp.

View newest version in sPHENIX GitHub at line 96 of file DetectorVolumeFindersTests.cpp

References KFPMath::a, KFPMath::b, Acts::binR, Acts::Experimental::NavigationState::currentDetector, Acts::Experimental::NavigationState::currentVolume, cyl0, cyl1, cyl2, det012, Acts::UnitConstants::g, std::tr1::make_tuple(), testing::internal::move(), Acts::Experimental::NavigationState::position, r0, r1, r2, r3, and physmon_ckf_tracking::u.

+ Here is the call graph for this function:

Variable Documentation

auto cyl0Bounds = std::make_unique<Acts::CylinderVolumeBounds>(r0, r1, zHalfL)

Definition at line 47 of file DetectorVolumeFindersTests.cpp.

View newest version in sPHENIX GitHub at line 47 of file DetectorVolumeFindersTests.cpp

Referenced by BOOST_AUTO_TEST_CASE().

auto cyl1Bounds = std::make_unique<Acts::CylinderVolumeBounds>(r1, r2, zHalfL)

Definition at line 49 of file DetectorVolumeFindersTests.cpp.

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

Referenced by BOOST_AUTO_TEST_CASE().

auto cyl2Bounds = std::make_unique<Acts::CylinderVolumeBounds>(r2, r3, zHalfL)

Definition at line 51 of file DetectorVolumeFindersTests.cpp.

View newest version in sPHENIX GitHub at line 51 of file DetectorVolumeFindersTests.cpp

Referenced by BOOST_AUTO_TEST_CASE().

auto det012
Initial value:

Definition at line 69 of file DetectorVolumeFindersTests.cpp.

View newest version in sPHENIX GitHub at line 69 of file DetectorVolumeFindersTests.cpp

Referenced by BOOST_AUTO_TEST_CASE().

Acts::Transform3 nominal = Acts::Transform3::Identity()

Definition at line 44 of file DetectorVolumeFindersTests.cpp.

View newest version in sPHENIX GitHub at line 44 of file DetectorVolumeFindersTests.cpp

Referenced by BOOST_AUTO_TEST_CASE(), PYBIND11_MODULE(), and Acts::RiddersPropagator< propagator_t >::wiggleParameter().

Definition at line 53 of file DetectorVolumeFindersTests.cpp.

View newest version in sPHENIX GitHub at line 53 of file DetectorVolumeFindersTests.cpp

Definition at line 34 of file DetectorVolumeFindersTests.cpp.

View newest version in sPHENIX GitHub at line 34 of file DetectorVolumeFindersTests.cpp

std::vector<std::shared_ptr<Acts::Experimental::DetectorVolume> > volumes012
Initial value:
= {

Definition at line 67 of file DetectorVolumeFindersTests.cpp.

View newest version in sPHENIX GitHub at line 67 of file DetectorVolumeFindersTests.cpp

Referenced by BOOST_AUTO_TEST_CASE().

Acts::ActsScalar zHalfL = 200.

Definition at line 42 of file DetectorVolumeFindersTests.cpp.

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

Referenced by BOOST_AUTO_TEST_CASE().