![]() |
Belle II Software development
|
Description: The simple helper class to generate arbitrary distribution based on a linear piece-wise approximation of it. More...
Public Member Functions | |
EvtLinSample () | |
The default constructor. | |
EvtLinSample (const std::vector< EvtPointf > &_v) | |
The primary constructor with an actual shape to generate. | |
void | init (const std::vector< EvtPointf > &_v) |
The method to initialize data. | |
std::pair< double, double > | operator() (double) const |
The operator to return <x,weight> depend on argument in [0,1] range which represent fraction of the total distribution integral. | |
Public Attributes | |
std::vector< EvtPointf > | m_v |
shape data | |
std::vector< double > | m_I |
cumulative integral data | |
Description: The simple helper class to generate arbitrary distribution based on a linear piece-wise approximation of it.
Definition at line 68 of file EvtbTosllNPR.cc.
|
inline |
|
inlineexplicit |
The primary constructor with an actual shape to generate.
Definition at line 77 of file EvtbTosllNPR.cc.
void init | ( | const std::vector< EvtPointf > & | _v | ) |
The method to initialize data.
The method to initialize a cumulative integral of the piece-wise approximation provided as input _v.
Definition at line 187 of file EvtbTosllNPR.cc.
std::pair< double, double > operator() | ( | double | r | ) | const |
The operator to return <x,weight> depend on argument in [0,1] range which represent fraction of the total distribution integral.
Sample from the cumulative integral and return q^2 and the associated weight.
Definition at line 202 of file EvtbTosllNPR.cc.
std::vector<double> m_I |
cumulative integral data
Definition at line 94 of file EvtbTosllNPR.cc.
std::vector<EvtPointf> m_v |
shape data
Definition at line 91 of file EvtbTosllNPR.cc.