18 #ifndef ROOT_TF1NormSum__ 19 #define ROOT_TF1NormSum__ 50 TF1NormSum(
const std::vector <TF1*>&functions,
const std::vector <Double_t> &coeffs,
Double_t scale = 1.);
std::vector< TString > fParNames
static double p3(double t, double a, double b, double c, double d)
const char * GetParName(Int_t ipar) const
unsigned int fNOfFunctions
std::vector< Int_t > fCstIndexes
void SetScale(Double_t scale)
static double p2(double t, double a, double b, double c)
void InitializeDataMembers(const std::vector< std::shared_ptr< TF1 >> &functions, const std::vector< Double_t > &coeffs, Double_t scale)
Double_t GetScale() const
Class adding two functions: c1*f1+c2*f2.
static double p1(double t, double a, double b)
std::vector< Double_t > fCoeffs
Double_t fScale
Number of functions to add.
std::vector< double > GetParameters() const
Return array of parameters.
void SetParameters(const double *params)
Initialize array of all parameters.
std::vector< std::shared_ptr< TF1 > > fFunctions
double operator()(double *x, double *p)
Overload the parenthesis to add the functions.