|
ACTS
Experiment-independent tracking
|
Configuration for the uniform track generator. More...
#include <detray/test/common/event_generator/uniform_track_generator_config.hpp>
Public Types | |
| using | seed_t = std::uint64_t |
| Random engine seed type. | |
Public Member Functions | |
| uniform_track_generator_config & | seed (const seed_t s) |
| Setters. | |
| uniform_track_generator_config & | phi_range (scalar_t low, scalar_t high) |
| template<typename o_scalar_t> | |
| uniform_track_generator_config & | phi_range (darray< o_scalar_t, 2 > r) |
| uniform_track_generator_config & | theta_range (scalar_t low, scalar_t high) |
| template<typename o_scalar_t> | |
| uniform_track_generator_config & | theta_range (darray< o_scalar_t, 2 > r) |
| uniform_track_generator_config & | eta_range (scalar_t low, scalar_t high) |
| template<typename o_scalar_t> | |
| uniform_track_generator_config & | eta_range (darray< o_scalar_t, 2 > r) |
| uniform_track_generator_config & | phi_steps (std::size_t n) |
| uniform_track_generator_config & | theta_steps (std::size_t n) |
| uniform_track_generator_config & | eta_steps (std::size_t n) |
| uniform_track_generator_config & | uniform_eta (bool b) |
| uniform_track_generator_config & | origin (const scalar_t x, const scalar_t y, const scalar_t z) |
| template<concepts::point3D point3_t> | |
| uniform_track_generator_config & | origin (const point3_t &ori) |
| uniform_track_generator_config & | p_tot (scalar_t p) |
| uniform_track_generator_config & | p_T (scalar_t p) |
| uniform_track_generator_config & | randomize_charge (bool rc) |
| uniform_track_generator_config & | time (scalar_t t) |
| uniform_track_generator_config & | charge (scalar_t q) |
| constexpr seed_t | seed () const |
| Getters. | |
| constexpr std::size_t | n_tracks () const |
| constexpr darray< scalar_t, 2 > | phi_range () const |
| constexpr darray< scalar_t, 2 > | theta_range () const |
| constexpr darray< scalar_t, 2 > | eta_range () const |
| constexpr darray< scalar_t, 2 > | mom_range () const |
| constexpr std::size_t | phi_steps () const |
| constexpr std::size_t | theta_steps () const |
| constexpr std::size_t | eta_steps () const |
| constexpr bool | uniform_eta () const |
| constexpr const auto & | origin () const |
| constexpr bool | is_pT () const |
| constexpr bool | randomize_charge () const |
| constexpr scalar_t | time () const |
| constexpr scalar_t | charge () const |
Public Attributes | |
| scalar_t | m_charge {-1.f * unit<scalar_t>::e} |
| Track charge. | |
| darray< scalar_t, 2 > | m_eta_range {-5.f, 5.f} |
| Pseudorapidity range. | |
| bool | m_is_pT {false} |
Whether to interpret the momentum m_p_mag as p_T. | |
| darray< scalar_t, 3 > | m_origin {0.f, 0.f, 0.f} |
| Track origin. | |
| scalar_t | m_p_mag {1.f * unit<scalar_t>::GeV} |
| Magnitude of momentum: Default is one to keep directions normalized if no momentum information is needed (e.g. | |
| darray< scalar_t, 2 > | m_phi_range {-constant<scalar_t>::pi, k_max_pi} |
| Range for phi [-pi, pi) and theta [0, pi). | |
| std::size_t | m_phi_steps {50u} |
| Angular step size. | |
| bool | m_randomize_charge {false} |
| Randomly flip the charge sign? | |
| seed_t | m_seed {detail::random_numbers<scalar_t>::default_seed()} |
| Monte-Carlo seed. | |
| darray< scalar_t, 2 > | m_theta_range {0.f, k_max_pi} |
| Polar angle range. | |
| std::size_t | m_theta_steps {50u} |
| Number of polar angle or pseudorapidity steps. | |
| scalar_t | m_time {0.f * unit<scalar_t>::us} |
| Time parameter and charge of the track. | |
| bool | m_uniform_eta {false} |
| Do uniform eta steps instead of uniform theta steps (use same number of steps and range). | |
Static Public Attributes | |
| static constexpr scalar_t | k_max_pi |
| Ensure same angle space as random track generator. | |
Configuration for the uniform track generator.
|
constexpr |
| uniform_track_generator_config & detray::uniform_track_generator_config< scalar_t >::charge | ( | scalar_t | q | ) |
| q | track charge |
|
constexpr |
| uniform_track_generator_config & detray::uniform_track_generator_config< scalar_t >::eta_range | ( | darray< o_scalar_t, 2 > | r | ) |
| r | pseudorapidity range |
| uniform_track_generator_config & detray::uniform_track_generator_config< scalar_t >::eta_range | ( | scalar_t | low, |
| scalar_t | high ) |
| low | lower bound of the pseudorapidity range |
| high | upper bound of the pseudorapidity range |
|
constexpr |
| uniform_track_generator_config & detray::uniform_track_generator_config< scalar_t >::eta_steps | ( | std::size_t | n | ) |
| n | number of pseudorapidity steps |
|
constexpr |
|
constexpr |
|
constexpr |
|
constexpr |
| uniform_track_generator_config & detray::uniform_track_generator_config< scalar_t >::origin | ( | const point3_t & | ori | ) |
| ori | track origin |
| uniform_track_generator_config & detray::uniform_track_generator_config< scalar_t >::origin | ( | const scalar_t | x, |
| const scalar_t | y, | ||
| const scalar_t | z ) |
| x | x component of the track origin |
| y | y component of the track origin |
| z | z component of the track origin |
| uniform_track_generator_config & detray::uniform_track_generator_config< scalar_t >::p_T | ( | scalar_t | p | ) |
| p | transverse momentum magnitude |
| uniform_track_generator_config & detray::uniform_track_generator_config< scalar_t >::p_tot | ( | scalar_t | p | ) |
| p | total momentum magnitude |
|
constexpr |
| uniform_track_generator_config & detray::uniform_track_generator_config< scalar_t >::phi_range | ( | darray< o_scalar_t, 2 > | r | ) |
| r | azimuthal angle range |
| uniform_track_generator_config & detray::uniform_track_generator_config< scalar_t >::phi_range | ( | scalar_t | low, |
| scalar_t | high ) |
| low | lower bound of the azimuthal angle range |
| high | upper bound of the azimuthal angle range |
|
constexpr |
| uniform_track_generator_config & detray::uniform_track_generator_config< scalar_t >::phi_steps | ( | std::size_t | n | ) |
| n | number of azimuthal steps |
|
constexpr |
| uniform_track_generator_config & detray::uniform_track_generator_config< scalar_t >::randomize_charge | ( | bool | rc | ) |
| rc | whether to randomize the charge sign |
|
constexpr |
Getters.
| uniform_track_generator_config & detray::uniform_track_generator_config< scalar_t >::seed | ( | const seed_t | s | ) |
Setters.
| s | random engine seed |
|
constexpr |
| uniform_track_generator_config & detray::uniform_track_generator_config< scalar_t >::theta_range | ( | darray< o_scalar_t, 2 > | r | ) |
| r | polar angle range |
| uniform_track_generator_config & detray::uniform_track_generator_config< scalar_t >::theta_range | ( | scalar_t | low, |
| scalar_t | high ) |
| low | lower bound of the polar angle range |
| high | upper bound of the polar angle range |
|
constexpr |
| uniform_track_generator_config & detray::uniform_track_generator_config< scalar_t >::theta_steps | ( | std::size_t | n | ) |
| n | number of polar angle steps |
|
constexpr |
| uniform_track_generator_config & detray::uniform_track_generator_config< scalar_t >::time | ( | scalar_t | t | ) |
| t | track time |
|
constexpr |
| uniform_track_generator_config & detray::uniform_track_generator_config< scalar_t >::uniform_eta | ( | bool | b | ) |
| b | whether to step uniformly in pseudorapidity |
|
staticconstexpr |
Ensure same angle space as random track generator.
| scalar_t detray::uniform_track_generator_config< scalar_t >::m_p_mag {1.f * unit<scalar_t>::GeV} |
Magnitude of momentum: Default is one to keep directions normalized if no momentum information is needed (e.g.
for a ray)