-
Notifications
You must be signed in to change notification settings - Fork 5
06. Fitting Algorithms
Kamil edited this page Sep 25, 2024
·
5 revisions
There are a few fitting algorithms available.
Standard Metropolis–Rosenbluth–Rosenbluth–Teller–Teller
Uses ROOT-based library, for more see: https://root.cern.ch/root/htmldoc/guides/minuit2/Minuit2.html
To use MCMC you need:
mcmc* Fitter = new mcmc(Manager);
If you are interested in MINUIT
MinuitFit* Fitter = new MinuitFit(Manager);
Then simply
for(unsigned int i = 0; sample.size(); i++)
Fitter ->addSamplePDF(sample[i]);
for(unsigned int i = 0; Cov.size(); i++)
Fitter ->addSystObj(Cov[i]);
Fitter ->RunLLHScan(); // can run LLH scan
Fitter ->runMCMC(); //or run actual fit
There is implemented Factory method which allow to select algorithm based on config setting
General:
FittingAlgorithm: "MCMC"
or
General:
FittingAlgorithm: "PSO"
The MaCh3 Collaboration