SHiP Geometry
SHiP experiment geometry implementation using GeoModel.
Loading...
Searching...
No Matches
test_trackers.cpp File Reference
#include "SHiP/geometry/Materials.h"
#include "SHiP/geometry/Trackers/TrackersFactory.h"
#include "SHiP/geometry/Units.h"
#include <GeoModelKernel/GeoBox.h>
#include <GeoModelKernel/GeoLogVol.h>
#include <GeoModelKernel/GeoPhysVol.h>
#include <GeoModelKernel/GeoVPhysVol.h>
#include <array>
#include <catch2/catch_test_macros.hpp>
#include <cstddef>
#include <optional>
#include <string>
Include dependency graph for test_trackers.cpp:

Classes

class  TrackersFactory
 Factory for the Trackers (straw tube tracking stations) geometry. More...

Functions

static const GeoVPhysVol * findChild (const GeoVPhysVol *parent, const std::string &name)
static std::optional< unsigned int > findChildIndex (const GeoVPhysVol *parent, const std::string &name)
 TEST_CASE ("TrackersStationsMatchConstants", "[trackers]")
 TEST_CASE ("TrackersHasFourStations", "[trackers]")
 TEST_CASE ("TrackersStationHasViews", "[trackers]")
 TEST_CASE ("TrackersViewHasFrameAndSubLayers", "[trackers]")
 TEST_CASE ("TrackersHasTrackerMagnet", "[trackers]")
template<auto U, typename Rep>
requires (U == mm || U == cm || U == m)
constexpr double gm (mp_units::quantity< U, Rep > q)
 Length quantity -> GeoModel raw double (GeoModel native unit: mm).

Function Documentation

◆ findChild()

const GeoVPhysVol * findChild ( const GeoVPhysVol * parent,
const std::string & name )
static

◆ findChildIndex()

std::optional< unsigned int > findChildIndex ( const GeoVPhysVol * parent,
const std::string & name )
static

◆ gm()

template<auto U, typename Rep>
requires (U == mm || U == cm || U == m)
double SHiP::geometry::units::gm ( mp_units::quantity< U, Rep > q)
nodiscardconstexpr

Length quantity -> GeoModel raw double (GeoModel native unit: mm).

◆ TEST_CASE() [1/5]

TEST_CASE ( "TrackersHasFourStations" ,
"" [trackers] )

◆ TEST_CASE() [2/5]

TEST_CASE ( "TrackersHasTrackerMagnet" ,
"" [trackers] )

◆ TEST_CASE() [3/5]

TEST_CASE ( "TrackersStationHasViews" ,
"" [trackers] )

◆ TEST_CASE() [4/5]

TEST_CASE ( "TrackersStationsMatchConstants" ,
"" [trackers] )

◆ TEST_CASE() [5/5]

TEST_CASE ( "TrackersViewHasFrameAndSubLayers" ,
"" [trackers] )