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)
unsigned int fNOfFunctions
std::vector< Int_t > fCstIndexes
std::vector< double > GetParameters() const
Return array of parameters.
void SetScale(Double_t scale)
const char * GetParName(Int_t ipar) const
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)
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.
void SetParameters(const double *params)
Initialize array of all parameters.
std::vector< std::shared_ptr< TF1 > > fFunctions
Double_t GetScale() const
double operator()(double *x, double *p)
Overload the parenthesis to add the functions.