1 #ifndef __BCPARAMETER__H
2 #define __BCPARAMETER__H
47 BCParameter(
const char* name,
double lowerlimit,
double upperlimit,
const char* latexname =
"");
61 {
return (fLatexName.empty()) ? fName : fLatexName; }
66 {
return fLowerLimit; }
71 {
return fUpperLimit; }
78 {
return (fUpperLimit > fLowerLimit) ? fUpperLimit - fLowerLimit : fLowerLimit - fUpperLimit; }
80 bool FillHistograms()
const
81 {
return fFillHistograms; }
86 double GetFixedValue()
const
87 {
return fFixedValue; }
89 unsigned GetNbins()
const
102 void SetLatexName(
const char * latex_name)
103 { fLatexName = latex_name; }
109 { fLowerLimit = limit; }
115 { fUpperLimit = limit; }
121 void SetLimits(
double lowerlimit = 0,
double upperlimit = 1)
122 { fLowerLimit = lowerlimit; fUpperLimit = upperlimit; }
124 void Fix(
double value)
133 void FillHistograms(
bool flag)
134 { fFillHistograms = flag; }
136 void SetNbins(
unsigned nbins)
148 bool IsValid(
double value)
const
149 {
return (fLowerLimit <= value) && (value <= fUpperLimit) ?
true :
false; }
168 std::string fLatexName;
177 bool fFillHistograms;
void SetUpperLimit(double limit=1)
double GetLowerLimit() const
void SetName(const char *name)
double GetRangeWidth() const
A class representing a parameter of a model.
const std::string & GetLatexName() const
void SetLimits(double lowerlimit=0, double upperlimit=1)
double GetUpperLimit() const
void SetLowerLimit(double limit=0)
const std::string & GetName() const
bool IsAtLimit(double value) const
void PrintSummary() const