Back to home page

EIC code displayed by LXR

 
 

    


File indexing completed on 2025-01-18 09:12:29

0001 // This file is part of the ACTS project.
0002 //
0003 // Copyright (C) 2016 CERN for the benefit of the ACTS project
0004 //
0005 // This Source Code Form is subject to the terms of the Mozilla Public
0006 // License, v. 2.0. If a copy of the MPL was not distributed with this
0007 // file, You can obtain one at https://mozilla.org/MPL/2.0/.
0008 
0009 #pragma once
0010 
0011 #include <boost/test/data/test_case.hpp>
0012 
0013 #include "Acts/Definitions/Units.hpp"
0014 
0015 namespace ActsTests::PropagationDatasets {
0016 
0017 namespace bdata = boost::unit_test::data;
0018 using namespace Acts::UnitLiterals;
0019 
0020 // direction angles
0021 // upper limit is max+eps to ensure max is included
0022 // this includes both 180° and -180° which refer to the same point
0023 const auto phi = bdata::xrange(-180_degree, 181_degree, 45_degree);
0024 // exclude 180° and -180° e.g. to avoid numerical issues
0025 const auto phiWithoutAmbiguity =
0026     bdata::xrange(-135_degree, 136_degree, 45_degree);
0027 // equivalent to |eta| < 1
0028 const auto thetaCentral = bdata::make({45_degree, 90_degree, 135_degree});
0029 // equivalent to 1 < |eta| <~ 4
0030 const auto thetaForwardBackward = bdata::make(
0031     {2_degree, 10_degree, 30_degree, 150_degree, 170_degree, 178_degree});
0032 const auto thetaBeam = bdata::make({0_degree, 180_degree});
0033 const auto thetaWithoutBeam = thetaCentral + thetaForwardBackward;
0034 const auto theta = thetaCentral + thetaForwardBackward + thetaBeam;
0035 
0036 // momentum and charge
0037 const auto absMomentum = bdata::make({0.5_GeV, 1_GeV, 10_GeV, 100_GeV});
0038 const auto chargeNonZero = bdata::make({1_e, -1_e});
0039 
0040 // how long to propagated (either relatively or absolute)
0041 const auto propagationFraction = bdata::make({0.125, 0.2, 0.4});
0042 // WARNING the maximum path length must be small enough to not exceed the track
0043 //         apogee of the lowest momentum and highest magnetic field
0044 const auto pathLength = bdata::make({1_cm, 10_cm});
0045 
0046 // magnetic field strength
0047 const auto magneticField = bdata::make({0.5_T, 2_T, 4_T});
0048 
0049 }  // namespace ActsTests::PropagationDatasets