Garfield++ 4.0
A toolkit for the detailed simulation of particle detectors based on ionisation measurement in gases and semiconductors
|
#include <PointsRan.h>
Public Member Functions | |
PointsRan () | |
PointsRan (const std::vector< double > &fx, const std::vector< double > &fy, double fxmin, double fxmax) | |
double | ran (double flat_ran) const |
double | get_integ_total () const |
double | get_integ_active () const |
void | print (std::ostream &file) const |
Generates random numbers according to array. This class generates random numbers according to a pointwise distribution, with linear interpolation between given points and also with linear extrapolation.
Definition at line 24 of file PointsRan.h.
|
inline |
Definition at line 46 of file PointsRan.h.
Heed::PointsRan::PointsRan | ( | const std::vector< double > & | fx, |
const std::vector< double > & | fy, | ||
double | fxmin, | ||
double | fxmax | ||
) |
Constructor
fx | x values |
fy | y values |
fxmin | Minimum of generated distribution. If less then x[0], extend the distribution by linear extrapolation. If the extrapolated line crosses zero, the extension stops there. Otherwise it stops at fxmin. |
fxmax | Maximum of generated distribution. If greater than x[q-1], extend the distribution by linear extrapolation. |
Definition at line 19 of file PointsRan.cpp.
|
inline |
Definition at line 68 of file PointsRan.h.
|
inline |
Definition at line 66 of file PointsRan.h.
void Heed::PointsRan::print | ( | std::ostream & | file | ) | const |
Definition at line 120 of file PointsRan.cpp.
Referenced by Heed::PairProd::print().
double Heed::PointsRan::ran | ( | double | flat_ran | ) | const |
Definition at line 91 of file PointsRan.cpp.
Referenced by Heed::PairProd::get_eloss().