9#include "CorrFitMath1DCF.h"
12 CorrFitMath1DCF::CorrFitMath1DCF(Int_t parameters_no, Int_t subfunc) :
CorrFit1DCF(parameters_no), fSubFunctionsNo(subfunc) {
16 void CorrFitMath1DCF::Draw(Option_t* draw_option) {
17 CorrFit1DCF::Draw(draw_option);
18 Int_t line_style[5] = {2, 3, 7, 9, 10};
19 for (
int i = 0; i < fSubFunctionsNo; i++) {
25 GetSubFunction(i)->Draw(
"SAME");
30 return fSubFunctions[subfucnt]->
CalculateCF(x, params);
33 CorrFitMath1DCF::~CorrFitMath1DCF() {
delete[] fSubFunctions; }
70 CorrFit1DCF_Sum::~CorrFit1DCF_Sum() {}
76 fNewParams[fSecondRadius] = params[fFirstRadius];
94 if (i ==
RadiusID()) { fFirstRadius = i; }
97 if (i ==
RadiusID()) { fSecondRadius = i; }
125 CorrFit1DCF_SumRsame::~CorrFit1DCF_SumRsame() {
delete[]
fNewParams; }
128 return Call(0, x, params) *
Call(1, x, params + fFirstFuncParams);
132 CorrFitMath1DCF(sign->GetParametersNo() + back->GetParametersNo(), 2), fFirstFuncParams(sign->GetParametersNo()) {
135 TString background_name = back->ClassName();
136 if (background_name ==
"CorrFit1DCF_Poly") { back->
FixParameter(0, 1); }
155 CorrFit1DCF_Multi::~CorrFit1DCF_Multi() {}
160 GetSubFunction(i)->
Check();
virtual Double_t CalculateCF(const Double_t *x, const Double_t *params) const
virtual Double_t CalculateCF(const Double_t *x, const Double_t *params) const
CorrFit1DCF_SumRsame(CorrFit1DCF *f1=NULL, CorrFit1DCF *f2=NULL)
CorrFit1DCF_Sum(CorrFit1DCF *f1=NULL, CorrFit1DCF *f2=NULL)
virtual Double_t CalculateCF(const Double_t *x, const Double_t *params) const
virtual Double_t CalculateCF(const Double_t *, const Double_t *) const
Int_t GetSubfucntionsNo() const
void SetSubfunction(CorrFit1DCF *f, Int_t i)
Double_t Call(Int_t subfucnt, const Double_t *x, const Double_t *params) const
Int_t GetParametersNo() const
TString GetParameterName(Int_t no) const
Double_t GetParMax(Int_t par) const
Double_t GetParMin(Int_t par) const
void SetLineColor(Color_t color)
void FixParameter(Int_t par, Double_t val)
void SetParameterName(Int_t par, TString name)
void SetParLimits(Int_t par, Double_t min, Double_t max)
void SetLineStyle(Style_t style)
Bool_t IsParFixed(Int_t par) const