|
ACTS
Experiment-independent tracking
|
Configuration for the random track generator. More...
#include <detray/test/common/event_generator/random_track_generator_config.hpp>
Public Types | |
| using | seed_t = std::uint64_t |
| Random engine seed type. | |
Public Member Functions | |
| random_track_generator_config & | seed (const seed_t s) |
| Setters. | |
| random_track_generator_config & | do_vertex_smearing (bool b) |
| random_track_generator_config & | n_tracks (std::size_t n) |
| random_track_generator_config & | phi_range (const scalar_t low, const scalar_t high) |
| template<typename o_scalar_t> | |
| random_track_generator_config & | phi_range (darray< o_scalar_t, 2 > r) |
| random_track_generator_config & | theta_range (scalar_t low, scalar_t high) |
| template<typename o_scalar_t> | |
| random_track_generator_config & | theta_range (darray< o_scalar_t, 2 > r) |
| random_track_generator_config & | eta_range (scalar_t low, scalar_t high) |
| template<typename o_scalar_t> | |
| random_track_generator_config & | eta_range (darray< o_scalar_t, 2 > r) |
| random_track_generator_config & | mom_range (scalar_t low, scalar_t high) |
| template<typename o_scalar_t> | |
| random_track_generator_config & | mom_range (darray< o_scalar_t, 2 > r) |
| random_track_generator_config & | pT_range (scalar_t low, scalar_t high) |
| template<typename o_scalar_t> | |
| random_track_generator_config & | pT_range (darray< o_scalar_t, 2 > r) |
| random_track_generator_config & | p_tot (scalar_t p) |
| random_track_generator_config & | p_T (scalar_t p) |
| random_track_generator_config & | origin (const scalar_t x, const scalar_t y, const scalar_t z) |
| template<concepts::point3D point3_t> | |
| random_track_generator_config & | origin (const point3_t &ori) |
| random_track_generator_config & | origin_stddev (const scalar_t x, const scalar_t y, const scalar_t z) |
| template<concepts::point3D point3_t> | |
| random_track_generator_config & | origin_stddev (point3_t stddev) |
| random_track_generator_config & | randomize_charge (bool rc) |
| random_track_generator_config & | time (scalar_t t) |
| random_track_generator_config & | charge (scalar_t q) |
| constexpr seed_t | seed () const |
| Getters. | |
| constexpr bool | do_vertex_smearing () const |
| constexpr std::size_t | n_tracks () const |
| constexpr const darray< scalar_t, 2 > & | phi_range () const |
| constexpr const darray< scalar_t, 2 > & | theta_range () const |
| constexpr const darray< scalar_t, 2 > & | mom_range () const |
| constexpr const auto & | origin () const |
| constexpr const auto & | origin_stddev () 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. | |
| bool | m_do_vtx_smearing = false |
| Gaussian vertex smearing. | |
| bool | m_is_pT {false} |
Whether to interpret the momentum m_mom_range as p_T. | |
| darray< scalar_t, 2 > | m_mom_range |
| Momentum range. | |
| std::size_t | m_n_tracks {10u} |
| How many tracks will be generated. | |
| darray< scalar_t, 3 > | m_origin {0.f, 0.f, 0.f} |
| Track origin. | |
| darray< scalar_t, 3 > | m_origin_stddev {0.f, 0.f, 0.f} |
| Vertex smearing standard deviations. | |
| darray< scalar_t, 2 > | m_phi_range |
| Range for phi [-pi, pi) and theta [0, pi). | |
| 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, constant<scalar_t>::pi} |
| Polar angle range. | |
| scalar_t | m_time {0.f * unit<scalar_t>::us} |
| Time parameter and charge of the track. | |
Configuration for the random track generator.
|
constexpr |
| random_track_generator_config & detray::random_track_generator_config< scalar_t >::charge | ( | scalar_t | q | ) |
| q | track charge |
|
constexpr |
| random_track_generator_config & detray::random_track_generator_config< scalar_t >::do_vertex_smearing | ( | bool | b | ) |
| b | whether Gaussian vertex smearing is enabled |
| random_track_generator_config & detray::random_track_generator_config< scalar_t >::eta_range | ( | darray< o_scalar_t, 2 > | r | ) |
| r | pseudorapidity range |
| random_track_generator_config & detray::random_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 |
|
constexpr |
| random_track_generator_config & detray::random_track_generator_config< scalar_t >::mom_range | ( | darray< o_scalar_t, 2 > | r | ) |
| r | momentum range |
| random_track_generator_config & detray::random_track_generator_config< scalar_t >::mom_range | ( | scalar_t | low, |
| scalar_t | high ) |
| low | lower bound of the momentum range |
| high | upper bound of the momentum range |
|
constexpr |
| random_track_generator_config & detray::random_track_generator_config< scalar_t >::n_tracks | ( | std::size_t | n | ) |
| n | number of tracks to generate |
|
constexpr |
| random_track_generator_config & detray::random_track_generator_config< scalar_t >::origin | ( | const point3_t & | ori | ) |
| ori | track origin |
| random_track_generator_config & detray::random_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 |
|
constexpr |
| random_track_generator_config & detray::random_track_generator_config< scalar_t >::origin_stddev | ( | const scalar_t | x, |
| const scalar_t | y, | ||
| const scalar_t | z ) |
| x | x component of the vertex smearing standard deviations |
| y | y component of the vertex smearing standard deviations |
| z | z component of the vertex smearing standard deviations |
| random_track_generator_config & detray::random_track_generator_config< scalar_t >::origin_stddev | ( | point3_t | stddev | ) |
| stddev | vertex smearing standard deviations |
| random_track_generator_config & detray::random_track_generator_config< scalar_t >::p_T | ( | scalar_t | p | ) |
| p | transverse momentum magnitude |
| random_track_generator_config & detray::random_track_generator_config< scalar_t >::p_tot | ( | scalar_t | p | ) |
| p | total momentum magnitude |
|
constexpr |
| random_track_generator_config & detray::random_track_generator_config< scalar_t >::phi_range | ( | const scalar_t | low, |
| const scalar_t | high ) |
| low | lower bound of the azimuthal angle range |
| high | upper bound of the azimuthal angle range |
| random_track_generator_config & detray::random_track_generator_config< scalar_t >::phi_range | ( | darray< o_scalar_t, 2 > | r | ) |
| r | azimuthal angle range |
| random_track_generator_config & detray::random_track_generator_config< scalar_t >::pT_range | ( | darray< o_scalar_t, 2 > | r | ) |
| r | transverse momentum range |
| random_track_generator_config & detray::random_track_generator_config< scalar_t >::pT_range | ( | scalar_t | low, |
| scalar_t | high ) |
| low | lower bound of the transverse momentum range |
| high | upper bound of the transverse momentum range |
|
constexpr |
| random_track_generator_config & detray::random_track_generator_config< scalar_t >::randomize_charge | ( | bool | rc | ) |
| rc | whether to randomize the charge sign |
|
constexpr |
Getters.
| random_track_generator_config & detray::random_track_generator_config< scalar_t >::seed | ( | const seed_t | s | ) |
Setters.
| s | random engine seed |
|
constexpr |
| random_track_generator_config & detray::random_track_generator_config< scalar_t >::theta_range | ( | darray< o_scalar_t, 2 > | r | ) |
| r | polar angle range |
| random_track_generator_config & detray::random_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 |
| random_track_generator_config & detray::random_track_generator_config< scalar_t >::time | ( | scalar_t | t | ) |
| t | track time |
| darray<scalar_t, 2> detray::random_track_generator_config< scalar_t >::m_mom_range |
Momentum range.
| darray<scalar_t, 2> detray::random_track_generator_config< scalar_t >::m_phi_range |
Range for phi [-pi, pi) and theta [0, pi).