EIC Software
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Groups Pages
Acts::IntegrationTest Namespace Reference

Classes

struct  StreamWrapper
 

Typedefs

using Box = Acts::Volume::BoundingBox
 
using Ray = Acts::Ray< double, 3 >
 
using BFieldType = InterpolatedBFieldMap
 
using SharedFieldType = SharedBField< InterpolatedBFieldMap >
 
using EigenStepperType = EigenStepper< SharedFieldType >
 
using AtlasStepperType = AtlasStepper< SharedFieldType >
 
using EigenPropagatorType = Propagator< EigenStepperType >
 
using AtlasPropagatorType = Propagator< AtlasStepperType >
 

Functions

std::tuple< std::vector< const
Volume * >, std::shared_ptr
< TrackingGeometry > > 
gridBoxFactory (size_t n=NBOXES, double hl=1000, size_t octd=5)
 
 BOOST_DATA_TEST_CASE (bvhnavigation_test, bdata::random((bdata::seed=7, bdata::engine=std::mt19937(), bdata::distribution=std::uniform_real_distribution<>(-5, 5)))^bdata::random((bdata::seed=2, bdata::engine=std::mt19937(), bdata::distribution=std::uniform_real_distribution<>(-M_PI, M_PI)))^bdata::random((bdata::seed=3, bdata::engine=std::mt19937(), bdata::distribution=std::uniform_real_distribution<>(-100, 100)))^bdata::random((bdata::seed=4, bdata::engine=std::mt19937(), bdata::distribution=std::uniform_real_distribution<>(-100, 100)))^bdata::random((bdata::seed=5, bdata::engine=std::mt19937(), bdata::distribution=std::uniform_real_distribution<>(-100, 100)))^bdata::xrange(NTESTS), eta, phi, x, y, z, index)
 
auto makeFieldMap (const SolenoidBField &field)
 
StreamWrapper valid (std::ofstream("magfield_lookup.csv"))
 
 BOOST_DATA_TEST_CASE (solenoid_interpolated_bfield_comparison, bdata::random((bdata::seed=1, bdata::engine=std::mt19937(), bdata::distribution=std::uniform_real_distribution<>(1.5 *(-L/2.), 1.5 *L/2.)))^bdata::random((bdata::seed=2, bdata::engine=std::mt19937(), bdata::distribution=std::uniform_real_distribution<>(0, R *1.5)))^bdata::random((bdata::seed=3, bdata::engine=std::mt19937(), bdata::distribution=std::uniform_real_distribution<>(-M_PI, M_PI)))^bdata::xrange(ntests), z, r, phi, index)
 
InterpolatedBFieldMap::FieldMapper< 3, 3 > readFieldXYZ (std::function< size_t(std::array< size_t, 3 > binsXYZ, std::array< size_t, 3 > nBinsXYZ)> localToGlobalBin, std::string fieldMapFile="Field.txt", double lengthUnit=1., double BFieldUnit=1., size_t nPoints=100000, bool firstOctant=false)
 
std::shared_ptr< const
InterpolatedBFieldMap
atlasBField (std::string fieldMapFile="Field.txt")
 
EigenPropagatorType epropagator (std::move(estepper))
 
AtlasPropagatorType apropagator (std::move(astepper))
 

Variables

GeometryContext tgContext = GeometryContext()
 
MagneticFieldContext mfContext = MagneticFieldContext()
 
 auto [volumes, tg] = gridBoxFactory()
 
const double L = 5.8_m
 
const double R = (2.56 + 2.46) * 0.5 * 0.5_m
 
const size_t nCoils = 1154
 
const double bMagCenter = 2_T
 
const size_t nBinsR = 150
 
const size_t nBinsZ = 200
 
Acts::SolenoidBField bSolenoidField ({R, L, nCoils, bMagCenter})
 
auto bFieldMap = makeFieldMap(bSolenoidField)
 
const int ntests = 10000
 
double Bz = 2_T
 
auto bField = atlasBField("Field.txt")
 
auto bFieldSharedA = SharedFieldType(bField)
 
auto bFieldSharedE = SharedFieldType(bField)
 
EigenStepperType estepper (bFieldSharedE)
 
AtlasStepperType astepper (bFieldSharedA)
 

Detailed Description

Typedef Documentation

Definition at line 113 of file PropagationTestsAtlasField.cpp.

View newest version in sPHENIX GitHub at line 113 of file PropagationTestsAtlasField.cpp

Definition at line 111 of file PropagationTestsAtlasField.cpp.

View newest version in sPHENIX GitHub at line 111 of file PropagationTestsAtlasField.cpp

Definition at line 108 of file PropagationTestsAtlasField.cpp.

View newest version in sPHENIX GitHub at line 108 of file PropagationTestsAtlasField.cpp

Definition at line 11 of file BVHNavigationTest.cpp.

View newest version in sPHENIX GitHub at line 11 of file BVHNavigationTest.cpp

Definition at line 112 of file PropagationTestsAtlasField.cpp.

View newest version in sPHENIX GitHub at line 112 of file PropagationTestsAtlasField.cpp

Definition at line 110 of file PropagationTestsAtlasField.cpp.

View newest version in sPHENIX GitHub at line 110 of file PropagationTestsAtlasField.cpp

using Acts::IntegrationTest::Ray = typedef Acts::Ray<double, 3>

Definition at line 12 of file BVHNavigationTest.cpp.

View newest version in sPHENIX GitHub at line 12 of file BVHNavigationTest.cpp

Definition at line 109 of file PropagationTestsAtlasField.cpp.

View newest version in sPHENIX GitHub at line 109 of file PropagationTestsAtlasField.cpp

Function Documentation

AtlasPropagatorType Acts::IntegrationTest::apropagator ( std::  moveastepper)
std::shared_ptr<const InterpolatedBFieldMap> Acts::IntegrationTest::atlasBField ( std::string  fieldMapFile = "Field.txt")

Definition at line 85 of file PropagationTestsAtlasField.cpp.

View newest version in sPHENIX GitHub at line 85 of file PropagationTestsAtlasField.cpp

References configureMap::config, Acts::UnitConstants::mm, readFieldXYZ(), and Acts::UnitConstants::T.

+ Here is the call graph for this function:

Acts::IntegrationTest::BOOST_DATA_TEST_CASE ( bvhnavigation_test  ,
bdata::  random(bdata::seed=7, bdata::engine=std::mt19937(),bdata::distribution=std::uniform_real_distribution<>(-5,5)))^bdata::random((bdata::seed=2, bdata::engine=std::mt19937(),bdata::distribution=std::uniform_real_distribution<>(-M_PI, M_PI)))^bdata::random((bdata::seed=3, bdata::engine=std::mt19937(),bdata::distribution=std::uniform_real_distribution<>(-100, 100)))^bdata::random((bdata::seed=4, bdata::engine=std::mt19937(),bdata::distribution=std::uniform_real_distribution<>(-100, 100)))^bdata::random((bdata::seed=5, bdata::engine=std::mt19937(),bdata::distribution=std::uniform_real_distribution<>(-100, 100)))^bdata::xrange(NTESTS,
eta  ,
phi  ,
x  ,
y  ,
z  ,
index   
)

Definition at line 79 of file BVHNavigationTest.cpp.

View newest version in sPHENIX GitHub at line 79 of file BVHNavigationTest.cpp

Acts::IntegrationTest::BOOST_DATA_TEST_CASE ( solenoid_interpolated_bfield_comparison  ,
bdata::  random(bdata::seed=1, bdata::engine=std::mt19937(),bdata::distribution=std::uniform_real_distribution<>(1.5 *(-L/2.), 1.5 *L/2.)))^bdata::random((bdata::seed=2, bdata::engine=std::mt19937(),bdata::distribution=std::uniform_real_distribution<>(0, R *1.5)))^bdata::random((bdata::seed=3, bdata::engine=std::mt19937(),bdata::distribution=std::uniform_real_distribution<>(-M_PI, M_PI)))^bdata::xrange(ntests,
z  ,
,
phi  ,
index   
)

Definition at line 101 of file InterpolatedSolenoidBFieldTest.cpp.

View newest version in sPHENIX GitHub at line 101 of file InterpolatedSolenoidBFieldTest.cpp

References kdfinder::abs(), bFieldMap, bSolenoidField, CHECK_CLOSE_REL, cos(), Acts::SolenoidBField::getField(), L, Acts::IntegrationTest::StreamWrapper::m_ofstr, phi, pos(), R, Acts::UnitConstants::T, valid(), nlohmann::detail::void(), and z.

+ Here is the call graph for this function:

EigenPropagatorType Acts::IntegrationTest::epropagator ( std::  moveestepper)

Referenced by Acts::Test::BOOST_DATA_TEST_CASE().

+ Here is the caller graph for this function:

std::tuple<std::vector<const Volume*>, std::shared_ptr<TrackingGeometry> > Acts::IntegrationTest::gridBoxFactory ( size_t  n = NBOXES,
double  hl = 1000,
size_t  octd = 5 
)

Definition at line 18 of file BVHNavigationTest.cpp.

View newest version in sPHENIX GitHub at line 18 of file BVHNavigationTest.cpp

auto Acts::IntegrationTest::makeFieldMap ( const SolenoidBField &  field)

Definition at line 43 of file InterpolatedSolenoidBFieldTest.cpp.

View newest version in sPHENIX GitHub at line 43 of file InterpolatedSolenoidBFieldTest.cpp

References L, nBinsR, nBinsZ, R, and Acts::solenoidFieldMapper().

+ Here is the call graph for this function:

InterpolatedBFieldMap::FieldMapper<3, 3> Acts::IntegrationTest::readFieldXYZ ( std::function< size_t(std::array< size_t, 3 > binsXYZ, std::array< size_t, 3 > nBinsXYZ)>  localToGlobalBin,
std::string  fieldMapFile = "Field.txt",
double  lengthUnit = 1.,
double  BFieldUnit = 1.,
size_t  nPoints = 100000,
bool  firstOctant = false 
)

[1] Read in field map file

Definition at line 43 of file PropagationTestsAtlasField.cpp.

View newest version in sPHENIX GitHub at line 43 of file PropagationTestsAtlasField.cpp

References bField, Acts::fieldMapperXYZ(), getline, in, x, y, and z.

Referenced by atlasBField().

+ Here is the call graph for this function:

+ Here is the caller graph for this function:

StreamWrapper Acts::IntegrationTest::valid ( std::  ofstream"magfield_lookup.csv")

Referenced by BOOST_DATA_TEST_CASE(), QAG4Util::interpolate(), tofBarrel::maxP(), tofBarrel::numSigma(), eASTRunAction::SetAllPlotting(), eASTDetectorConstructionMessenger::SetNewValue(), and eASTRunActionMessenger::SetNewValue().

+ Here is the caller graph for this function:

Variable Documentation

AtlasStepperType Acts::IntegrationTest::astepper(bFieldSharedA)
Acts::IntegrationTest::auto[volumes, tg] = gridBoxFactory()

Definition at line 77 of file BVHNavigationTest.cpp.

View newest version in sPHENIX GitHub at line 77 of file BVHNavigationTest.cpp

auto Acts::IntegrationTest::bFieldMap = makeFieldMap(bSolenoidField)

Definition at line 88 of file InterpolatedSolenoidBFieldTest.cpp.

View newest version in sPHENIX GitHub at line 88 of file InterpolatedSolenoidBFieldTest.cpp

Referenced by BOOST_DATA_TEST_CASE(), and main().

auto Acts::IntegrationTest::bFieldSharedA = SharedFieldType(bField)

Definition at line 116 of file PropagationTestsAtlasField.cpp.

View newest version in sPHENIX GitHub at line 116 of file PropagationTestsAtlasField.cpp

auto Acts::IntegrationTest::bFieldSharedE = SharedFieldType(bField)

Definition at line 117 of file PropagationTestsAtlasField.cpp.

View newest version in sPHENIX GitHub at line 117 of file PropagationTestsAtlasField.cpp

const double Acts::IntegrationTest::bMagCenter = 2_T

Definition at line 39 of file InterpolatedSolenoidBFieldTest.cpp.

View newest version in sPHENIX GitHub at line 39 of file InterpolatedSolenoidBFieldTest.cpp

Referenced by main().

Acts::SolenoidBField Acts::IntegrationTest::bSolenoidField({R, L, nCoils, bMagCenter})

Referenced by BOOST_DATA_TEST_CASE(), and main().

EigenStepperType Acts::IntegrationTest::estepper(bFieldSharedE)
MagneticFieldContext Acts::IntegrationTest::mfContext = MagneticFieldContext()

Definition at line 15 of file BVHNavigationTest.cpp.

View newest version in sPHENIX GitHub at line 15 of file BVHNavigationTest.cpp

const size_t Acts::IntegrationTest::nBinsR = 150
const size_t Acts::IntegrationTest::nCoils = 1154

Definition at line 38 of file InterpolatedSolenoidBFieldTest.cpp.

View newest version in sPHENIX GitHub at line 38 of file InterpolatedSolenoidBFieldTest.cpp

Referenced by main().

const int Acts::IntegrationTest::ntests = 10000

Definition at line 100 of file InterpolatedSolenoidBFieldTest.cpp.

View newest version in sPHENIX GitHub at line 100 of file InterpolatedSolenoidBFieldTest.cpp

const double Acts::IntegrationTest::R = (2.56 + 2.46) * 0.5 * 0.5_m

Definition at line 37 of file InterpolatedSolenoidBFieldTest.cpp.

View newest version in sPHENIX GitHub at line 37 of file InterpolatedSolenoidBFieldTest.cpp

Referenced by dfe::Dispatcher::add(), FluxMonitorGrid::AddEntry(), ALICEKF::ALICEKalmanFilter(), Acts::CylinderSurface::binningPosition(), BOOST_DATA_TEST_CASE(), Acts::Test::BOOST_FIXTURE_TEST_CASE(), CbmRichRingFitterQa::CalculateFitErrors(), GFKalman::chi2Increment(), kdfinder::CircleFit< T >::CircleFitByChernovHoussam(), ALICEKF::CircleFitByTaubin(), PHTruthTrackSeeding::circleFitSeed(), PHActsSiliconSeeding::circleFitSeed(), Acts::Sycl::createSeedsForGroupSycl(), PHActsSiliconSeeding::createSvtxTrack(), Acts::GeometryView3D::drawSurfaceArray(), fbst(), nucleus::formFactor(), Gammaavectormeson::Gammaavectormeson(), CylinderGeom_Mvtx::get_local_from_world_coords(), PHGenFitTrkFitter::get_rotation_matrix(), PHGenFitTrkFitter::get_vertex_error_uvn(), CylinderGeom_Mvtx::get_world_from_local_coords(), ALICEKF::GetCircleClusterResiduals(), PHG4OuterHcalField::GetFieldValue(), GFTools::getSmoothedChiSqu(), Gammaavectormeson::getSpinMatrixElement(), kdfinder::CircleFit< T >::GradientHessian(), EicTpcDigiHitProducer::HandleHit(), PHActsSiliconSeeding::identifyBestSeed(), EicKfNodeTemplate::IncrementLinearTrackFitMatrices(), Acts::CylinderSurface::intersectionSolver(), linear_expansion_sum(), linear_expansion_sum_zeroelim(), Acts::HelicalTrackLinearizer< propagator_t, propagator_options_t >::linearizeTrack(), Acts::ConeSurface::localCartesianToBoundLocalDerivative(), Acts::CylinderSurface::localCartesianToBoundLocalDerivative(), main(), makeFieldMap(), FwdHoughTree::MappingCall(), PHSimpleKFProp::MoveToFirstTPCCluster(), PHGenFitTrkFitter::pos_cov_uvn_to_rz(), PHGenFitTrkFitter::pos_cov_XYZ_to_RZ(), PHTpcTrackSeedCircleFit::process_event(), PHTpcClusterMover::process_event(), genfit::KalmanFitter::processTrackPoint(), genfit::KalmanFitterRefTrack::processTrackPointSqrt(), Acts::Legacy::AtlasSeedfinder< SpacePoint >::production3Sp(), PHCASeeding::RemoveBadClusters(), PHSimpleKFProp::RemoveBadClusters(), genfit::RKTrackRep::RKPropagate(), genfit::RKTrackRep::RKutta(), RKTrackRep::RKutta(), Rossegger::Rmn(), Rossegger::Rmn1(), Rossegger::Rmn1_(), Rossegger::Rmn2(), Rossegger::Rmn2_(), Rossegger::Rmn_(), Rossegger::RPrime(), Rossegger::RPrime_(), PHPy8JetTrigger::SetJetR(), PHPy6JetTrigger::SetJetR(), Similarity(), Acts::AtlasStepper< bfield_t >::step(), Acts::SurfaceArrayCreator::surfaceArrayOnCylinder(), PHG4GDMLWriteStructure::TraverseVolumeTree(), and PHG4GDMLWrite::Write().

GeometryContext Acts::IntegrationTest::tgContext = GeometryContext()

Definition at line 14 of file BVHNavigationTest.cpp.

View newest version in sPHENIX GitHub at line 14 of file BVHNavigationTest.cpp