#include <Weight.h>
Definition at line 14 of file Weight.h.
◆ Weight()
Exhume::Weight::Weight |
( |
| ) |
|
|
inline |
◆ ~Weight()
virtual Exhume::Weight::~Weight |
( |
| ) |
|
|
inlinevirtual |
◆ AddPoint()
void Exhume::Weight::AddPoint |
( |
const double & |
, |
|
|
const double & |
|
|
) |
| |
|
protected |
◆ GetFunc()
double Exhume::Weight::GetFunc |
( |
const double & |
xx_ | ) |
|
|
inlineprotected |
Definition at line 27 of file Weight.h.
References FuncMap, Max_, and WeightFunc().
32 std::map<double, double>::iterator high_, low_;
33 high_ =
FuncMap.upper_bound(xx_);
37 return (low_->second + (high_->second - low_->second) * (xx_ - low_->first) / (high_->first - low_->first));
std::map< double, double > FuncMap
virtual double WeightFunc(const double &)=0
◆ GetFuncMap()
std::map<double, double> Exhume::Weight::GetFuncMap |
( |
| ) |
|
|
inline |
Definition at line 18 of file Weight.h.
References FuncMap.
std::map< double, double > FuncMap
◆ GetLineShape()
std::map<double, double> Exhume::Weight::GetLineShape |
( |
| ) |
|
|
inline |
Definition at line 21 of file Weight.h.
References LineShape.
std::map< double, double > LineShape
◆ GetTotalIntegral()
double Exhume::Weight::GetTotalIntegral |
( |
| ) |
|
|
inline |
◆ GetValue()
double Exhume::Weight::GetValue |
( |
const double & |
xx_ | ) |
|
|
inlineprotected |
Definition at line 40 of file Weight.h.
References LineShape.
41 std::map<double, double>::iterator high_, low_;
50 return (low_->second + (high_->second - low_->second) * (xx_ - low_->first) / (high_->first - low_->first));
std::map< double, double > LineShape
◆ WeightFunc()
virtual double Exhume::Weight::WeightFunc |
( |
const double & |
| ) |
|
|
protectedpure virtual |
◆ WeightInit()
void Exhume::Weight::WeightInit |
( |
const double & |
, |
|
|
const double & |
|
|
) |
| |
|
protected |
◆ FuncMap
std::map<double, double> Exhume::Weight::FuncMap |
|
private |
◆ LineShape
std::map<double, double> Exhume::Weight::LineShape |
|
private |
◆ Max_
double Exhume::Weight::Max_ |
|
protected |
◆ NPoints
unsigned int Exhume::Weight::NPoints |
|
private |
◆ TotalIntegral
double Exhume::Weight::TotalIntegral |
|
protected |