Analysis Software
Documentation for sPHENIX simulation software
|
#include <acts-fatras/blob/master/Core/include/Fatras/Kernel/detail/RandomNumberDistributions.hpp>
Classes | |
struct | param_type |
A RandomNumberDistribution should provide a parameters struct. More... | |
Public Types | |
using | result_type = double |
Public Member Functions | |
LandauDist ()=default | |
LandauDist (double mean, double scale) | |
LandauDist (const param_type &cfg) | |
LandauDist (const LandauDist &)=default | |
A distribution should be copy-constructible and copy-assignable. | |
LandauDist & | operator= (const LandauDist &)=default |
void | reset () |
Some standard ways to control the distribution's state should be provided. | |
param_type | param () const |
void | param (const param_type &p) |
result_type | min () const |
result_type | max () const |
template<typename Generator > | |
result_type | operator() (Generator &engine) |
Generate a random number following a Landau distribution. | |
template<typename Generator > | |
result_type | operator() (Generator &engine, const param_type ¶ms) |
Do the same, but using custom Landau distribution parameters. | |
bool | operator== (const LandauDist &other) const |
Provide standard comparison operators. | |
bool | operator!= (const LandauDist &other) const |
Private Attributes | |
param_type | m_cfg |
configuration struct | |
< Poisson In addition, the Landau distribution is provided
Definition at line 25 of file RandomNumberDistributions.hpp.
View newest version in sPHENIX GitHub at line 25 of file RandomNumberDistributions.hpp
A RandomNumberDistribution should provide a result type typedef and some bounds on the values that can be emitted as output
Definition at line 66 of file RandomNumberDistributions.hpp.
View newest version in sPHENIX GitHub at line 66 of file RandomNumberDistributions.hpp
|
default |
There should be a default constructor, a constructor from raw parameters, and a constructor from a parameters struct
Definition at line 18 of file RandomNumberDistributions.cpp.
View newest version in sPHENIX GitHub at line 18 of file RandomNumberDistributions.cpp
Fatras::LandauDist::LandauDist | ( | const param_type & | cfg | ) |
Definition at line 21 of file RandomNumberDistributions.cpp.
View newest version in sPHENIX GitHub at line 21 of file RandomNumberDistributions.cpp
|
default |
A distribution should be copy-constructible and copy-assignable.
Fatras::LandauDist::result_type Fatras::LandauDist::max | ( | void | ) | const |
Definition at line 27 of file RandomNumberDistributions.cpp.
View newest version in sPHENIX GitHub at line 27 of file RandomNumberDistributions.cpp
Fatras::LandauDist::result_type Fatras::LandauDist::min | ( | void | ) | const |
Definition at line 23 of file RandomNumberDistributions.cpp.
View newest version in sPHENIX GitHub at line 23 of file RandomNumberDistributions.cpp
|
inline |
Definition at line 85 of file RandomNumberDistributions.hpp.
View newest version in sPHENIX GitHub at line 85 of file RandomNumberDistributions.hpp
|
inline |
Generate a random number following a Landau distribution.
Definition at line 71 of file RandomNumberDistributions.hpp.
View newest version in sPHENIX GitHub at line 71 of file RandomNumberDistributions.hpp
|
inline |
Do the same, but using custom Landau distribution parameters.
Definition at line 77 of file RandomNumberDistributions.hpp.
View newest version in sPHENIX GitHub at line 77 of file RandomNumberDistributions.hpp
References engine, landau_quantile(), Fatras::LandauDist::param_type::mean, Fatras::LandauDist::param_type::scale, and ambiguity_solver_full_chain::x.
|
default |
bool Fatras::LandauDist::operator== | ( | const LandauDist & | other | ) | const |
Provide standard comparison operators.
Definition at line 31 of file RandomNumberDistributions.cpp.
View newest version in sPHENIX GitHub at line 31 of file RandomNumberDistributions.cpp
References m_cfg(), and m_cfg.
|
inline |
Definition at line 61 of file RandomNumberDistributions.hpp.
View newest version in sPHENIX GitHub at line 61 of file RandomNumberDistributions.hpp
References m_cfg.
|
inline |
Definition at line 62 of file RandomNumberDistributions.hpp.
View newest version in sPHENIX GitHub at line 62 of file RandomNumberDistributions.hpp
References m_cfg, and merge_hashes::p.
|
inline |
Some standard ways to control the distribution's state should be provided.
Definition at line 59 of file RandomNumberDistributions.hpp.
View newest version in sPHENIX GitHub at line 59 of file RandomNumberDistributions.hpp
|
private |
configuration struct
Definition at line 88 of file RandomNumberDistributions.hpp.
View newest version in sPHENIX GitHub at line 88 of file RandomNumberDistributions.hpp
Referenced by operator()(), operator==(), and param().