4 #ifndef ROOT_TFractionFitter 5 #define ROOT_TFractionFitter 7 #ifndef ROOT_TVirtualFitter 11 #ifndef ROOT_TObjArray 42 void ExcludeBin(
Int_t bin);
43 void IncludeBin(
Int_t bin);
45 void UnConstrain(
Int_t parm);
46 void SetData(
TH1 *data);
48 void SetWeight(
Int_t parm,
TH1* weight);
63 TH1* GetMCPrediction(
Int_t parm)
const;
68 ComputeFCN(f, par, 0);
73 void CheckParNo(
Int_t parm)
const;
74 void CheckConsistency();
75 void FindPrediction(
int bin,
double& t_i,
int& k_0,
double& A_ki)
const;
79 void ComputeChisquareLambda();
80 bool IsExcluded(
Int_t bin)
const;
121 #endif // ROOT_TFractionFitter Double_t EvaluateFCN(const Double_t *par)
Namespace for new ROOT classes and functions.
std::vector< Int_t > fExcludedBins
void TFractionFitFCN(Int_t &npar, Double_t *gin, Double_t &f, Double_t *par, Int_t flag)
#define ClassDef(name, id)
ROOT::Fit::Fitter * fFractionFitter
Fitter class, entry point for performing all type of fits.
Provides an indirection to the TFitResult class and with a semantics identical to a TFitResult pointe...
TFitResultPtr Fit(FitObject *h1, TF1 *f1, Foption_t &option, const ROOT::Math::MinimizerOptions &moption, const char *goption, ROOT::Fit::DataRange &range)
Mother of all ROOT objects.
Fits MC fractions to data histogram.
RooCmdArg Constrain(const RooArgSet ¶ms)