Public Methods | |
CalcPeak (const ParticleParameters &pp, HaloDepositor::HaloFnsIter hfIter) | |
CalcPeak is designed to be used with the STL generate algorithm. | |
double | operator() () |
Private Attributes | |
const ParticleParameters & | m_pp |
SplitDecision | m_sp |
ProcessedFlat | m_pf |
HaloDepositor::HaloFnsIter | m_hfIter |
|
CalcPeak is designed to be used with the STL generate algorithm. A value of ParticleParameters is stored at construction. An iterator pointing to the first element of a container of pointers to function objects is stored at construction. On subsequent calls function operator uses the ParticleParamters to calculate the the area in the "peak", and then points at the next function to use. uses a SplitDecision to determine whether to sample from peak or tail. if peak is sampled returns a flat random variable in range [0.0, 0.01] otherwise returns a triangle random variable in range [0.01, 1.0] Definition at line 43 of file HaloDepositor.cxx.
|
|
in peak Definition at line 45 of file HaloDepositor.cxx.
|
|
Definition at line 56 of file HaloDepositor.cxx. |
|
Definition at line 57 of file HaloDepositor.cxx. |
|
Definition at line 58 of file HaloDepositor.cxx. |
|
Definition at line 59 of file HaloDepositor.cxx. |